Crime rate

England
Wales
gethttps://crystalroof.co.uk/customer-api/crime/crime-rate/postcode/v1/{location}

Description

This method returns total crime rates, crime rates by crime types, area ratings by total crime, and area ratings by crime type for small areas (Lower Layer Super Output Areas, or LSOAs) and Local Authority Districts (LADs). The results are determined by the inclusion of the submitted postcode/coordinates/UPRN within the corresponding LSOA or LAD.

All figures are annual (for the last 12 months).

The crime rates are calculated per 1,000 resident population derived from the census 2021.

The dataset is updated on a monthly basis, with a 3-month lag between the current date and the most recent data.

Parameters

NameDescription
location
path
string
Postcode, coordinates in the lat,long format or UPRN in the uprn12345678 format.
area_type
query
enum
  • lsoa - Lower layer Super Output Area (LSOA), a small geographical area used in the census, comprises 400-1200 households and a population of 1000-3000 persons. Lower layer Super Output Areas (LSOAs) are made up of groups of OAs, usually four or five.
  • lad - Local Authority District. There are a total of 296 districts in England made up of 36 metropolitan boroughs, 32 London boroughs, 164 two-tier non-metropolitan districts and 62 unitary authorities, City of London district and Isles of Scilly district. In Wales there are 22 local authorities made up of 22 principal areas.
api_key
query
enum

Your API key.

DEMO key allows you to test the method in the W6 0 postcode sector, or in the [[51.492, -0.25], [51.502, -0.225]] rectangle.

Request URL:
https://crystalroof.co.uk/customer-api/crime/crime-rate/postcode/v1/{location}?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
401
Unauthorized
402
Payment Required
403
Forbidden
429
Too Many Requests
500
Internal Server Error