Monthly crimes
England
Wales
gethttps://crystalroof.co.uk/customer-api/crime/monthly-crimes/postcode/v1/{location}
Description
This method returns monthly crimes (total and by crime type) starting from December 2010. The results are determined by the inclusion of the submitted postcode/coordinates/UPRN within the corresponding LSOA.
Parameters
Name | Description |
---|---|
location path string | Postcode, coordinates in the lat,long format or UPRN in the uprn12345678 format. Postcode with or without space. This argument is case-insensitive. |
month query enum | Month and year when the crimes occurred. |
api_key query enum | Your API key.
|
Request URL:
https://crystalroof.co.uk/customer-api/crime/monthly-crimes/postcode/v1/W60WW?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
{
"data": {
"Total": 6,
"Anti-social behaviour": 0,
"Bicycle theft": 0,
"Burglary": 0,
"Criminal damage and arson": 0,
"Drugs": 0,
"Possession of weapons": 0,
"Public order": 0,
"Robbery": 1,
"Shoplifting": 0,
"Theft from the person": 0,
"Vehicle crime": 2,
"Violence and sexual offences": 3,
"Other crime": 0,
"Other theft": 0
},
"dataDate": "2023-12",
"refreshedDate": "2024-02-28"
}
401
Unauthorized
{
"error": "No such API key or it is not valid anymore."
}
402
Payment Required
{
"error": "You have exhausted the available calls provided by your package."
}
403
Forbidden
{
"error": "API key is invalid for the given action."
}
404
Not Found
{
"error": "Can't find such location."
}
429
Too Many Requests
{
"error": "Too many requests have been sent in one second."
}
500
Internal Server Error
{
"error": "We have already started working on a resolution!"
}