<commit_before>---
layout: card_list
title: "API"
---

## Basic Information

* a live version of the API (using [Swagger](http://swagger.io/)) is [here](/api)
* version 7 of the API was released April 11, 2016 (Lagotto 5.0).

### Base URL
* API calls start with `/api/`. API versioning is done via the request header, e.g. `Accept: application/json; version=7`, and currently defaults to `version=7`. Previous API versions are no longer supported because of breaking changes in the data model.

### Supported Media Types
* application/json
<commit_msg>don't link to swagger documentation<commit_after>---
layout: card_list
title: "API"
---

## Basic Information

* version 7 of the API was released April 11, 2016 (Lagotto 5.0).

### Base URL
* API calls start with `/api/`. API versioning is done via the request header, e.g. `Accept: application/json; version=7`, and currently defaults to `version=7`. Previous API versions are no longer supported because of breaking changes in the data model.

### Supported Media Types
* application/json

{'fraction_non_alphanumeric': 0.11302681992337164, 'fraction_numerical': 0.0210727969348659, 'mean_word_length': 4.199004975124378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7165258', 'n_tokens_mistral': 313, 'n_tokens_neox': 291, 'n_words': 138}