Historical crime rates
England
Wales
gethttps://crystalroof.co.uk/customer-api/crime/historical-crime-rates/postcode/v1/{location}
Description
This method returns historical annual crime rates (total and by crime type) for the years starting 2011. The results are determined by the inclusion of the submitted postcode/coordinates/UPRN within the corresponding LSOA, LAD or region.
The crime rates are calculated per 1,000 resident population derived from the census 2011 and 2021.
The dataset is updated annually.
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. |
area_type query enum |
|
api_key query enum | Your API key.
|
Request URL:
https://crystalroof.co.uk/customer-api/crime/historical-crime-rates/postcode/v1/W60WW?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
{
"data": {
"2011": {
"Total": 78.261,
"Anti-social behaviour": 16.722,
"Bicycle theft": 0,
"Burglary": 12.04,
"Criminal damage and arson": 1.338,
"Drugs": 0,
"Possession of weapons": 0,
"Public order": 0.669,
"Robbery": 0.669,
"Shoplifting": 0,
"Theft from the person": 0,
"Vehicle crime": 12.04,
"Violence and sexual offences": 16.054,
"Other crime": 14.047,
"Other theft": 4.682
},
"2012": {
"Total": 101.439,
"Anti-social behaviour": 26.045,
"Bicycle theft": 0,
"Burglary": 10.281,
"Criminal damage and arson": 10.281,
"Drugs": 2.742,
"Possession of weapons": 0,
"Public order": 2.056,
"Robbery": 2.056,
"Shoplifting": 0,
"Theft from the person": 0,
"Vehicle crime": 12.337,
"Violence and sexual offences": 17.135,
"Other crime": 1.371,
"Other theft": 17.135
},
"2013": {
"Total": 82.562,
"Anti-social behaviour": 25.623,
"Bicycle theft": 2.135,
"Burglary": 12.1,
"Criminal damage and arson": 5.694,
"Drugs": 2.135,
"Possession of weapons": 0,
"Public order": 0,
"Robbery": 0.712,
"Shoplifting": 1.423,
"Theft from the person": 1.423,
"Vehicle crime": 9.964,
"Violence and sexual offences": 13.523,
"Other crime": 0,
"Other theft": 7.829
},
"2014": {
"Total": 73.279,
"Anti-social behaviour": 11.103,
"Bicycle theft": 5.922,
"Burglary": 5.181,
"Criminal damage and arson": 2.221,
"Drugs": 4.441,
"Possession of weapons": 0.74,
"Public order": 2.221,
"Robbery": 0.74,
"Shoplifting": 0,
"Theft from the person": 2.221,
"Vehicle crime": 17.024,
"Violence and sexual offences": 14.064,
"Other crime": 0,
"Other theft": 7.402
},
"2015": {
"Total": 63.504,
"Anti-social behaviour": 9.181,
"Bicycle theft": 1.53,
"Burglary": 9.181,
"Criminal damage and arson": 4.591,
"Drugs": 2.295,
"Possession of weapons": 0,
"Public order": 0,
"Robbery": 0,
"Shoplifting": 0,
"Theft from the person": 0,
"Vehicle crime": 16.067,
"Violence and sexual offences": 13.007,
"Other crime": 0.765,
"Other theft": 6.886
},
"2016": {
"Total": 59.809,
"Anti-social behaviour": 7.974,
"Bicycle theft": 2.392,
"Burglary": 9.569,
"Criminal damage and arson": 3.987,
"Drugs": 0.797,
"Possession of weapons": 0,
"Public order": 1.595,
"Robbery": 0.797,
"Shoplifting": 0,
"Theft from the person": 0,
"Vehicle crime": 18.341,
"Violence and sexual offences": 11.962,
"Other crime": 0,
"Other theft": 2.392
},
"2017": {
"Total": 71.885,
"Anti-social behaviour": 5.591,
"Bicycle theft": 2.396,
"Burglary": 11.182,
"Criminal damage and arson": 4.792,
"Drugs": 3.195,
"Possession of weapons": 0,
"Public order": 2.396,
"Robbery": 0,
"Shoplifting": 0.799,
"Theft from the person": 0.799,
"Vehicle crime": 16.773,
"Violence and sexual offences": 16.773,
"Other crime": 0.799,
"Other theft": 6.39
},
"2018": {
"Total": 71.54,
"Anti-social behaviour": 9.331,
"Bicycle theft": 3.888,
"Burglary": 10.887,
"Criminal damage and arson": 3.888,
"Drugs": 0.778,
"Possession of weapons": 0,
"Public order": 3.11,
"Robbery": 0,
"Shoplifting": 0,
"Theft from the person": 1.555,
"Vehicle crime": 10.109,
"Violence and sexual offences": 20.995,
"Other crime": 0,
"Other theft": 6.998
},
"2019": {
"Total": 82.031,
"Anti-social behaviour": 10.156,
"Bicycle theft": 4.688,
"Burglary": 7.031,
"Criminal damage and arson": 7.813,
"Drugs": 0,
"Possession of weapons": 0,
"Public order": 3.125,
"Robbery": 1.563,
"Shoplifting": 0,
"Theft from the person": 0.781,
"Vehicle crime": 20.313,
"Violence and sexual offences": 21.094,
"Other crime": 0,
"Other theft": 5.469
},
"2020": {
"Total": 98.756,
"Anti-social behaviour": 31.882,
"Bicycle theft": 5.443,
"Burglary": 8.554,
"Criminal damage and arson": 6.221,
"Drugs": 1.555,
"Possession of weapons": 0,
"Public order": 2.333,
"Robbery": 1.555,
"Shoplifting": 0,
"Theft from the person": 5.443,
"Vehicle crime": 8.554,
"Violence and sexual offences": 20.218,
"Other crime": 0,
"Other theft": 6.998
},
"2021": {
"Total": 92.593,
"Anti-social behaviour": 15.432,
"Bicycle theft": 13.889,
"Burglary": 11.574,
"Criminal damage and arson": 2.315,
"Drugs": 0,
"Possession of weapons": 0,
"Public order": 6.173,
"Robbery": 0,
"Shoplifting": 0.772,
"Theft from the person": 1.543,
"Vehicle crime": 10.803,
"Violence and sexual offences": 20.062,
"Other crime": 0.772,
"Other theft": 9.259
},
"2022": {
"Total": 77.161,
"Anti-social behaviour": 12.346,
"Bicycle theft": 1.543,
"Burglary": 1.543,
"Criminal damage and arson": 6.944,
"Drugs": 0,
"Possession of weapons": 0,
"Public order": 6.944,
"Robbery": 0.772,
"Shoplifting": 0,
"Theft from the person": 3.086,
"Vehicle crime": 14.661,
"Violence and sexual offences": 21.605,
"Other crime": 0.772,
"Other theft": 6.944
},
"2023": {
"Total": 54.784,
"Anti-social behaviour": 13.889,
"Bicycle theft": 0.772,
"Burglary": 4.63,
"Criminal damage and arson": 2.315,
"Drugs": 0,
"Possession of weapons": 0,
"Public order": 1.543,
"Robbery": 0.772,
"Shoplifting": 0,
"Theft from the person": 0.772,
"Vehicle crime": 10.031,
"Violence and sexual offences": 13.117,
"Other crime": 0.772,
"Other theft": 6.173
}
},
"dataDate": "2023-12",
"refreshedDate": "2024-02-25"
}
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!"
}