<commit_before># Versions

* **1.0-beta-1** - Provides daily summary, crime report, community area, 
and crime classification API endpoints.<br />**Base URL** - http://crime.chicagotribune.com/api/1.0-beta1/

# Available endpoints

* http://crime.chicagotribune.com/api/1.0-beta1/datesummary/?format=json - Daily summary data [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#daily-summary-data)]
* http://crime.chicagotribune.com/api/1.0-beta1/crime/?format=json - Report-level crime data [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#crime-reports)]
* http://crime.chicagotribune.com/api/1.0-beta1/communityarea/?format=json - Community areas [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#community-area)]
* http://crime.chicagotribune.com/api/1.0-beta1/crimeclassification/?format=json - Crime classifications [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#crime-classifications)]

# Data formats

Specify data format with the `format` querystring parameter. 

**Supported formats**: `json`, `jsonp`, `xml`, `csv`

# Including fields

Specifying the `include=fieldname1,fieldname2` parameter will include only the fields specified in the querystring, 
plus any required fields (like unique identifier). Omitting the `include` parameter means all available fields will 
be returned.

# Endpoint details

## Daily summary data

Provides counts for every major crime type, by day and community area.

### Fields

**Filterable**:

* `crime_date`
* `community_area` (filter by community area number)
* `year`
* `arson` (arson count)
* `assault` (assault count)
* `battery` (battery count)
* `burglary` (burglary count)<commit_msg>reformat endpoints<commit_after># Versions

* **1.0-beta-1** - Provides daily summary, crime report, community area, 
and crime classification API endpoints.<br />**Base URL** - http://crime.chicagotribune.com/api/1.0-beta1/

# Available endpoints

* Daily summary data [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#daily-summary-data)]
<br />http://crime.chicagotribune.com/api/1.0-beta1/datesummary/?format=json - 
* Report-level crime data [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#crime-reports)]
<br />http://crime.chicagotribune.com/api/1.0-beta1/crime/?format=json
* Community areas [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#community-area)]
<br />http://crime.chicagotribune.com/api/1.0-beta1/communityarea/?format=json
* Crime classifications [[jump to details](https://github.com/newsapps/chicagocrime/blob/master/api_docs.md#crime-classifications)]
<br />http://crime.chicagotribune.com/api/1.0-beta1/crimeclassification/?format=json

# Data formats

Specify data format with the `format` querystring parameter. 

**Supported formats**: `json`, `jsonp`, `xml`, `csv`

# Including fields

Specifying the `include=fieldname1,fieldname2` parameter will include only the fields specified in the querystring, 
plus any required fields (like unique identifier). Omitting the `include` parameter means all available fields will 
be returned.

# Endpoint details

## Daily summary data

Provides counts for every major crime type, by day and community area.

### Fields

**Filterable**:

* `crime_date`
* `community_area` (filter by community area number)
* `year`
* `arson` (arson count)
* `assault` (assault count)
* `battery` (battery count)
* `burglary` (burglary count)
{'fraction_non_alphanumeric': 0.14017907106883043, 'fraction_numerical': 0.01119194180190263, 'mean_word_length': 5.3051146384479715, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4456525', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1143, 'n_words': 272}