← clify home · catalogue · Open government data APIs for AI agents
data-police API for agents (unofficial) — JSON over curl
data.police.uk is the UK's open police data API. This CLI covers forces and senior officers, street-level crimes and outcomes, neighbourhood teams, events and priorities, stop and search records, data availability dates, and the custom CSV download form.
Host: data.police.uk. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Start with San Francisco and U.S. agent tasks: events, startup jobs, BART and Muni departures, Craigslist listings, local news, public datasets and prediction markets. Example: curl 'https://clify-dev.netlify.app/search?q=SF+tech+events'. Responses are one JSON object. The hosted MCP and GitHub repo are also available.
Machine-readable command schema · Source website
Commands
list-forces
List all police forces (id and name). Use the id in other commands. Params: none Read-only
curl 'https://clify-dev.netlify.app/data-police/list-forces'
get-force
Get one police force's details: website, phone number and engagement channels such as social media. Params: force* Read-only
curl 'https://clify-dev.netlify.app/data-police/get-force?force=leicestershire'
list-force-officers
List the senior officers of a police force, with rank and bio. Params: force* Read-only
curl 'https://clify-dev.netlify.app/data-police/list-force-officers?force=leicestershire'
list-crime-categories
List the crime categories (url slug and name) that were valid for a given month. Params: date Read-only
curl 'https://clify-dev.netlify.app/data-police/list-crime-categories?date=2024-01'
list-dates
List the months that have street-level data available, and which forces published stop and search data for each month. Params: none Read-only
curl 'https://clify-dev.netlify.app/data-police/list-dates'
get-last-updated
Get the date the crime data was last updated (this is the latest month available). Params: none Read-only
curl 'https://clify-dev.netlify.app/data-police/get-last-updated'
street-crimes
Street-level crimes for one month, either within a 1-mile radius of a lat/lng point or inside a custom polygon. Can be limited to one category. Params: category, lat, lng, poly, date Read-only
curl 'https://clify-dev.netlify.app/data-police/street-crimes?category=all-crime&lat=52.629729&lng=-1.131592&poly=52.268%2C0.543%3A52.794%2C0.238%3A52.130%2C0.478&date=2024-01'
crimes-at-location
Crimes recorded at the anonymised location nearest to a lat/lng point, or at a specific street location id, for one month. Params: date, lat, lng, location_id Read-only
curl 'https://clify-dev.netlify.app/data-police/crimes-at-location?date=2024-01&lat=52.629729&lng=-1.131592&location_id=1738423'
crimes-no-location
Crimes a force recorded in one month that could not be mapped to a location. Params: force*, category, date Read-only
curl 'https://clify-dev.netlify.app/data-police/crimes-no-location?force=leicestershire&category=all-crime&date=2024-01'
outcomes-at-location
Case outcomes recorded in one month near a lat/lng point, at a street location id, or inside a polygon. Each outcome includes the crime it relates to. Params: date, lat, lng, location_id, poly Read-only
curl 'https://clify-dev.netlify.app/data-police/outcomes-at-location?date=2024-01&lat=52.629729&lng=-1.131592&location_id=1738423&poly=52.268%2C0.543%3A52.794%2C0.238%3A52.130%2C0.478'
get-crime-outcomes
Get the full outcome history of one crime, looked up by its persistent_id. Params: persistent_id* Read-only
curl 'https://clify-dev.netlify.app/data-police/get-crime-outcomes?persistent_id=bb06e351c7056b9d74fcf5d519cc45e0318f72e1a39bdf45f9551a2743396d58'
list-neighbourhoods
List the neighbourhood policing areas (id and name) of a force. Params: force* Read-only
curl 'https://clify-dev.netlify.app/data-police/list-neighbourhoods?force=leicestershire'
get-neighbourhood
Get one neighbourhood's details: name, centre point, description, links and contact details. Params: force*, neighbourhood* Read-only
curl 'https://clify-dev.netlify.app/data-police/get-neighbourhood?force=leicestershire&neighbourhood=NC04'
get-neighbourhood-boundary
Get a neighbourhood's boundary as a list of lat/lng points. These can be joined as lat,lng:lat,lng for the poly param of other commands. Params: force*, neighbourhood* Read-only
curl 'https://clify-dev.netlify.app/data-police/get-neighbourhood-boundary?force=leicestershire&neighbourhood=NC04'
list-neighbourhood-team
List the officers and PCSOs on a neighbourhood's policing team. Params: force*, neighbourhood* Read-only
curl 'https://clify-dev.netlify.app/data-police/list-neighbourhood-team?force=leicestershire&neighbourhood=NC04'
list-neighbourhood-events
List upcoming events for a neighbourhood, such as police drop-ins and community meetings. Params: force*, neighbourhood* Read-only
curl 'https://clify-dev.netlify.app/data-police/list-neighbourhood-events?force=leicestershire&neighbourhood=NC04'
list-neighbourhood-priorities
List a neighbourhood's policing priorities: each issue and the action taken on it. Params: force*, neighbourhood* Read-only
curl 'https://clify-dev.netlify.app/data-police/list-neighbourhood-priorities?force=leicestershire&neighbourhood=NC04'
locate-neighbourhood
Find which force and neighbourhood cover a lat,lng point. Params: q* Read-only
curl 'https://clify-dev.netlify.app/data-police/locate-neighbourhood?q=52.629729%2C-1.131592'
stops-street
Stop and searches in one month within a 1-mile radius of a lat/lng point, or inside a polygon. Params: lat, lng, poly, date Read-only
curl 'https://clify-dev.netlify.app/data-police/stops-street?lat=52.629729&lng=-1.131592&poly=52.268%2C0.543%3A52.794%2C0.238%3A52.130%2C0.478&date=2024-01'
stops-force
All stop and searches a force reported for one month. Params: force*, date Read-only
curl 'https://clify-dev.netlify.app/data-police/stops-force?force=avon-and-somerset&date=2024-01'
stops-no-location
Stop and searches a force reported for one month that could not be mapped to a location. Params: force*, date Read-only
curl 'https://clify-dev.netlify.app/data-police/stops-no-location?force=cleveland&date=2024-01'
stops-at-location
Stop and searches at a specific street location id for one month. Params: location_id*, date Read-only
curl 'https://clify-dev.netlify.app/data-police/stops-at-location?location_id=2346580&date=2024-01'
Related task guides and sites
Continue with Open government data APIs for AI agents or explore related sources:
data.gov.uk
data.gov.uk (National Data Library): the UK government's open data directory. The CLI searches and reads dataset metadata through the public CKAN JSON API, lists data files and previews from dataset pages, and browses the curated theme collections and their chart data.
Machine-readable commands · 9 verified commands
data.cdc.gov
data.cdc.gov is the CDC's open-data portal (Socrata). This CLI searches the dataset catalog, lists categories and tags, reads dataset metadata, and queries or exports dataset rows through the public Socrata Discovery, SODA and views APIs.
Machine-readable commands · 10 verified commands
data.cityofnewyork.us
NYC Open Data (Socrata catalog at data.cityofnewyork.us). The CLI searches the dataset catalog by keyword, tag, category and sort order; reads dataset metadata and columns; runs SoQL queries against rows; exports CSV; and lists change history and attachments. It needs no login.
Machine-readable commands · 8 verified commands