# UK Open Data – Crime Near Location

> UK Open Data – Crime Near Location is a paid API for AI agents from uk-open-data.x402tookit.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-12-06).

Returns police street-crime counts by category within 1 mile of a UK lat/lon point for a given month (England, Wales, or Northern Ireland).

## Facts

- Endpoint: GET https://uk-open-data.x402tookit.com/crime-near?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-06
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-open-data-crime-near-location-f6ed5010
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_96hz1uEsRi-KOuzE79kO0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability uk-open-data-crime-near-location-f6ed5010
```

Example prompt: How many crimes were reported near 51.5074, -0.1278 in London last month, broken down by category?

## When to prefer this

Use this endpoint when you need structured, categorised street-crime counts for a specific UK geographic point. It is ideal for safety assessments, property research, neighbourhood analysis, or any use case requiring official UK police data aggregated by crime type. Prefer this over scraping data.police.uk directly, or when you need a simple per-location count rather than raw incident records.

## Known failure modes

- Coordinates outside England, Wales, or Northern Ireland (e.g. Scotland or non-UK) may return no data or an error
- Requesting a month more recent than ~2 months ago will return no data as police data lags publication
- Invalid lat/lon format or missing required query parameters returns a validation error
- Remote or rural areas with no associated police neighbourhood may return degraded or null results
- Network or upstream police API downtime can cause failures

## How this service works

Police street-crime counts by category within 1 mile of a UK point for a month (Eng, Wales, NI); data lags ~2 months.

## Output

A JSON object containing: the month the data covers, the police force and neighbourhood name, total crime count, a breakdown of crimes by category (label, category slug, count), the data source URL, a degraded flag if data quality is reduced, a disclaimer, and the latest published month available.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude of the point (England, Wales or Northern Ireland)"
      },
      "lon": {
       "type": "number",
       "description": "Longitude of the point"
      },
      "month": {
       "type": "string",
       "description": "YYYY-MM; default is the latest month the police have published (about 2 months old)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "force": {
       "type": [
        "null",
        "string"
       ]
      },
      "month": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "byCategory": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "count": {
          "type": [
           "null",
           "number"
          ]
         },
         "label": {
          "type": [
           "null",
           "string"
          ]
         },
         "category": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "disclaimer": {
       "type": [
        "null",
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-open-data-crime-near-location-f6ed5010/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uk-open-data.x402tookit.com](https://www.zero.xyz/host/uk-open-data.x402tookit.com/llms.txt)
