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=2024-01&location_id=1738423
Latitude and longitude
https://data.police.uk/api/crimes-at-location?date=2024-01&lat=52.629729&lng=-1.131592
Example response
[
{
"category": "other-theft",
"persistent_id": "bb06e351c7056b9d74fcf5d519cc45e0318f72e1a39bdf45f9551a2743396d58",
"location_subtype": "",
"id": 116206187,
"location": {
"latitude": "52.629831",
"street": {
"id": 1738423,
"name": "On or near Marquis Street"
},
"longitude": "-1.132503"
},
"context": "",
"month": "2024-01",
"location_type": "Force",
"outcome_status": {
"category": "Unable to prosecute suspect",
"date": "2024-02"
}
},
{
"category": "violent-crime",
"persistent_id": "4f8e06f87cb05c4a19f690aa1531cd94a4736fd7f5ad99328c00a3cde3d68c85",
"location_subtype": "",
"id": 116206306,
"location": {
"latitude": "52.629831",
"street": {
"id": 1738423,
"name": "On or near Marquis Street"
},
"longitude": "-1.132503"
},
"context": "",
"month": "2024-01",
"location_type": "Force",
"outcome_status": {
"category": "Unable to prosecute suspect",
"date": "2024-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
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
date | Date of the outcome |