data.police.uk API: Get crimes near a UK postcode or place
Gets crimes reported within one mile of a UK postcode or place in England, Wales or Northern Ireland for a month (latest published by default), with category totals, up to 100 sampled incidents, the previous month's total and the local police.uk crime-map link.
Unofficial. Not affiliated with or endorsed by data.police.uk.
Inputs
Values from the run on Oct 31, 2026, shown under Output.
- Month optional
month Crime reporting month in YYYY-MM, such as 2026-06. Defaults to the latest published month.
Not set
Exactly 7 characters.
- Location, required
location UK postcode or place, such as SW1A 1AA or Camden, London.
SW1A 1AA
2 characters or more.
Input as JSON
{ "location": "SW1A 1AA"}Output
{ "month": "2026-07", "crimes": [ { "street": "On or near Chapone Place", "category": "Anti-social behaviour", "crime_id": 136370872, "latest_outcome": null }, { "street": "On or near Palace Street", "category": "Anti-social behaviour", "crime_id": 136369360, "latest_outcome": null }, { "street": "On or near Ebury Bridge Road", "category": "Anti-social behaviour", "crime_id": 136360180, "latest_outcome": null } ], "latitude": 51.50101, "area_link": "https://www.police.uk/pu/your-area/metropolitan-police-service/st-jamess/?tab=CrimeMap" , "longitude": -0.141563, "total_crimes": 3483, "category_counts": [ { "count": 710, "category": "Other theft" }, { "count": 612, "category": "Violence and sexual offences" }, { "count": 598, "category": "Theft from the person" } ], "matched_location": "SW1A 1AA", "previous_month_total": 3256, "change_from_previous_month": 227}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"data.police.uk/get_crimes_near_postcode","input":{"location":"SW1A 1AA"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "data.police.uk/get_crimes_near_postcode" , "input": { "location": "SW1A 1AA" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "data.police.uk/get_crimes_near_postcode" , "input": { "location": "SW1A 1AA" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run data.police.uk/get_crimes_near_postcode# with {"location":"SW1A 1AA"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "location" ], "properties": { "month": { "type": "string", "examples": [ "2026-06" ], "maxLength": 7, "minLength": 7, "description": "Crime reporting month in YYYY-MM, such as 2026-06. Defaults to the latest published month." }, "location": { "type": "string", "minLength": 2, "description": "UK postcode or place, such as SW1A 1AA or Camden, London." } }}Output schema
{ "type": "object", "required": [ "matched_location", "month", "total_crimes", "category_counts", "previous_month_total", "change_from_previous_month", "crimes", "area_link", "latitude", "longitude" ], "properties": { "month": { "type": "string", "description": "Month of the crime reports, YYYY-MM." }, "crimes": { "type": "array", "items": { "type": "object", "required": [ "category", "street", "latest_outcome", "crime_id" ], "properties": { "street": { "type": [ "string", "null" ], "description": "Approximate anonymised street location." }, "category": { "type": "string", "description": "Crime category in plain words." }, "crime_id": { "type": [ "integer", "null" ], "description": "Police.uk crime data record ID.", "x-fous-developer": true }, "latest_outcome": { "type": [ "string", "null" ], "description": "Latest recorded outcome in words, if available." } }, "additionalProperties": false }, "description": "Up to 100 crimes sampled from the month, including different crime categories where possible." }, "latitude": { "type": "number", "description": "Latitude of the matched location.", "x-fous-developer": true }, "area_link": { "type": "string", "description": "Police.uk crime map for the local policing area." }, "longitude": { "type": "number", "description": "Longitude of the matched location.", "x-fous-developer": true }, "total_crimes": { "type": "integer", "description": "Total crimes within one mile in the selected month." }, "category_counts": { "type": "array", "items": { "type": "object", "required": [ "category", "count" ], "properties": { "count": { "type": "integer", "description": "Number of crimes in this category." }, "category": { "type": "string", "description": "Crime category in plain words." } }, "additionalProperties": false }, "description": "Counts for each crime category, most frequent first. Empty when there are no crimes." }, "matched_location": { "type": "string", "description": "The matched postcode or place name." }, "previous_month_total": { "type": [ "integer", "null" ], "description": "Total for the prior month, or null if there are no data for that month." }, "change_from_previous_month": { "type": [ "integer", "null" ], "description": "Current total minus previous month total, or null when the previous month is unavailable." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
data.police.uk/get_crimes_near_postcode- Returns
- matched location, month, total crimes, category counts, previous month total, change, sampled crimes, area link, coordinates
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method data.police.uk/get_crimes_near_postcode with the inputs above.
Ask your agent
- How much crime was reported within a mile of M1 1AE last month? Break it down by category please.
- Pull police.uk street crime figures around Headingley, Leeds for 2025-09, including how it compares to the month before.
- I'm thinking of renting near CF10 1EP in Cardiff. What kinds of crimes happen around there, and are they going up or down?
- Using data.police.uk, show me the burglary and vehicle crime counts near BT7 1NN for March 2025, plus some example incidents.
- Get the latest monthly crime totals near Brixton, London, with the crime-map link for the area.
See more
Finds the neighbourhood policing team for a UK postcode (England, Wales, Northern Ireland) with its force, contacts, officers, priorities and upcoming events.
police.uk/get_neighbourhood_teamLists UK postcodes nearest to a postcode or named place, with distance, ward, council and coordinates. For places sharing a name, a city or town is preferred.
postcodes.io/list_nearby_postcodesLooks up a UK postcode on Postcodes.io, including its location, administrative areas and whether it is still in use. Retired postcodes return location and retirement year only.
postcodes.io/get_postcodeFinds Open Charge Map charging locations near an address, city, or postcode, nearest first.
openchargemap.org/search_chargersSearches Zoopla homes for sale or to rent in a UK town, area or postcode, with price, bedroom, property type and sort options. Prices are in GBP; rents are monthly.
zoopla.co.uk/search_propertiesGets current conditions and RealFeel for a city or postal code on AccuWeather. The UV level follows standard UV-index ranges. Air quality is null unless it is shown with the current conditions.
accuweather.com/get_current_weatherLooks up the places, regions and coordinates for a postal code in a supported country on Zippopotam.us.
zippopotam.us/get_postal_codeFinds postal codes, place names and coordinates for a town and state or region in a country covered by Zippopotam.us.
zippopotam.us/search_postal_codes