Crimes at a location

Returns just the crimes which occurred at the specified location, rather than those within a radius. If given latitude and longitude, finds the nearest pre-defined location and returns the crimes which occurred there.

If you're allowing users to search for locations in Scotland, please make it clear that, since only the British Transport Police provide data for Scotland, crime levels may appear much lower than they really are.

Request parameters

Specific location ID

Parameter Description
date YYYY-MM
location_id Crimes and outcomes are mapped to specific locations on the map.
Valid IDs are returned by other methods (new and existing) which return location information.

Latitude/longitude

Parameter Description
date YYYY-MM
lat Latitude of the requested crime area
lng Longitude of the requested crime area

Example request

Specific location ID

https://data.police.uk/api/crimes-at-location?date=2017-02&location_id=884227

Latitude/longitude

https://data.police.uk/api/crimes-at-location?date=2017-02&lat=52.629729&lng=-1.131592

Example response

[
    {
        "category": "violent-crime",
        "location_type": "Force",
        "location": {
            "latitude": "52.643950",
            "street": {
                "id": 884227,
                "name": "On or near Abbey Gate"
            },
            "longitude": "-1.143042"
        },
        "context": "",
        "outcome_status": {
            "category": "Unable to prosecute suspect",
            "date": "2017-02"
        },
        "persistent_id": "4d83433f3117b3a4d2c80510c69ea188a145bd7e94f3e98924109e70333ff735",
        "id": 54726925,
        "location_subtype": "",
        "month": "2017-02"
    }
]

Response description

Tag Description
category Category of the crime
location_type The type of the location. Either Force or BTP: Force indicates a normal police force location; BTP indicates a British Transport Police location. BTP locations fall within normal police force boundaries.
location_subtype For BTP locations, the type of location at which this crime was recorded.
persistent_id 64-character unique identifier for that crime. (This is different to the existing 'id' attribute, which is not guaranteed to always stay the same for each crime.)
month Month of the crime
location Approximate location of the incident
latitude Latitude
street The approximate street the crime occurred
id Unique identifier for the street
name Name of the location.
This is only an approximation of where the crime happened
longitude Longitude
context Extra information about the crime (if applicable)
id ID of the crime.
This ID only relates to the API, it is NOT a police identifier
outcome_status The category and date of the latest recorded outcome for the crime
category Category of the outcome
The full category name is returned

Code Name
awaiting-court-result Awaiting court outcome
court-result-unavailable Court result unavailable
unable-to-proceed Court case unable to proceed
local-resolution Local resolution
no-further-action Investigation complete; no suspect identified
deprived-of-property Offender deprived of property
fined Offender fined
absolute-discharge Offender given absolute discharge
cautioned Offender given a caution
drugs-possession-warning Offender given a drugs possession warning
penalty-notice-issued Offender given a penalty notice
community-penalty Offender given community sentence
conditional-discharge Offender given conditional discharge
suspended-sentence Offender given suspended prison sentence
imprisoned Offender sent to prison
other-court-disposal Offender otherwise dealt with
compensation Offender ordered to pay compensation
sentenced-in-another-case Suspect charged as part of another case
charged Suspect charged
not-guilty Defendant found not guilty
sent-to-crown-court Defendant sent to Crown Court
unable-to-prosecute Unable to prosecute suspect
formal-action-not-in-public-interest Formal action is not in the public interest
action-taken-by-another-organisation Action to be taken by another organisation
further-investigation-not-in-public-interest Further investigation is not in the public interest
further-action-not-in-public-interest Further action is not in the public interest
under-investigation Under investigation
status-update-unavailable Status update unavailable
date Date of the outcome