# UK Crime Data by Location

> UK Crime Data by Location is a paid API for AI agents from 2s.io, paid per call via x402, $0.00108/call, status unknown (last checked 2026-09-15).

Returns street-level crime records near a given latitude/longitude for a specified month, sourced from the UK Home Office (data.police.uk).

## Facts

- Endpoint: GET https://2s.io/api/gov/uk-crime
- Price: $0.00108/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-crime-data-by-location-17f31b5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_deeCXw6IVsAnPeC6xMNux

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-crime-data-by-location-17f31b5a
```

Example prompt: Can you pull up the crime data near latitude 51.5074, longitude -0.1278 in London for January 2024, showing up to 20 records? I want to see what categories of crime were reported and their outcomes.

## When to prefer this

Use this endpoint when you need authoritative, ground-truth UK street-level crime data from the official Home Office source (data.police.uk), especially when you need geospatial crime lookups by coordinate with category breakdowns. Prefer this over generic web searches or unofficial aggregators when accuracy, licensing (Open Government Licence), and structured output are required. Ideal for property research, neighbourhood safety analysis, or journalistic/research workflows focused on England, Wales, or Northern Ireland.

## Known failure modes

- Missing lat or lng parameters returns a validation error
- Coordinates outside UK coverage area return empty results or an error
- Invalid month format (not YYYY-MM) causes query failure
- Month too far in the past or future may return no data if not available from data.police.uk
- Limit value outside 1–50 range may be rejected or clamped
- Payment failure via x402/USDC results in 402 response before data is returned

## How this service works

UK street-level crime around a location from the Home Office data.police.uk service. Give a latitude/longitude (and optional month YYYY-MM, defaults to the latest available — UK data lags ~2 months) and get the total crime count, a breakdown by category (anti-social behaviour, burglary, violent crime, vehicle crime, etc.), and recent individual records (category, approximate street, lat/lon, and outcome status). Free, Open Government Licence (commercial use permitted). Location-risk signal an LLM cannot recall — for property, insurance, and safety agents. Locations are anonymised to nearby map points by the Home Office.

## Output

A JSON object containing an array of crime result sets for the queried location, each including total crime count, a list of individual crimes (with street, category, outcome, and coordinates), a breakdown by crime category (e.g. violent-crime, anti-social-behaviour, theft-from-the-person), and source attribution from the UK Home Office under Open Government Licence v3.0.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "lat",
      "lng"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "lng": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "limit": {
       "type": "integer",
       "description": "Max individual records (1-50, default 20)."
      },
      "month": {
       "type": "string",
       "description": "YYYY-MM (default latest available)."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-crime-data-by-location-17f31b5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
