# 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.

- Page: https://fous.com/methods/data.police.uk/get-crimes-near-postcode
- Method: `data.police.uk/get_crimes_near_postcode`, version 1
- Website: data.police.uk
- Returns: matched location, month, total crimes, category counts, previous month total, change, sampled crimes, area link, coordinates
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `month` | string | no |  | Crime reporting month in YYYY-MM, such as 2026-06. Defaults to the latest published month. |
| `location` | string | yes | `"SW1A 1AA"` | UK postcode or place, such as SW1A 1AA or Camden, London. |

## Output

From a run on Oct 31, 2026, shortened. Its input:

```json
{
  "location": "SW1A 1AA"
}
```

Its output:

```json
{
  "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
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
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"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## 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.

## Input schema

```json
{
  "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

```json
{
  "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
}
```

## See more

- [police.uk API: Get neighbourhood policing team by postcode](https://fous.com/methods/police.uk/get-neighbourhood-team.md): Finds the neighbourhood policing team for a UK postcode (England, Wales, Northern Ireland) with its force, contacts, officers, priorities and upcoming events.
- [Postcodes.io API: List nearby postcodes](https://fous.com/methods/postcodes.io/list-nearby-postcodes.md): Lists 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 API: Get postcode details](https://fous.com/methods/postcodes.io/get-postcode.md): Looks 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.
- [Open Charge Map API: Search EV chargers near a place](https://fous.com/methods/openchargemap.org/search-chargers.md): Finds Open Charge Map charging locations near an address, city, or postcode, nearest first.
- [Zoopla API: Search properties](https://fous.com/methods/zoopla.co.uk/search-properties.md): Searches 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.
- [AccuWeather API: Get current weather](https://fous.com/methods/accuweather.com/get-current-weather.md): Gets 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.
- [Zippopotam.us API: Get postal code](https://fous.com/methods/zippopotam.us/get-postal-code.md): Looks up the places, regions and coordinates for a postal code in a supported country on Zippopotam.us.
- [Zippopotam.us API: Search postal codes](https://fous.com/methods/zippopotam.us/search-postal-codes.md): Finds postal codes, place names and coordinates for a town and state or region in a country covered by Zippopotam.us.
