# Civic Data

> Civic Data is a normalised, cited civic-data layer for people, applications and agents. One London postcode connects you to official geography, expanded Census demographics, income, broadband, environmental, property, public-service and civic-history facts, each returned with publisher, dataset version and freshness.

**When to use Civic Data.** Reach for it when an answer needs official, cited London civic data rather than a guess:

- Resolving a London postcode (any spacing or case) to its ONS centroid, LSOA, MSOA, ward, local authority, constituency, built-up area and rural/urban classification.
- Answering questions about expanded Census demographics, small-area income, fire, recorded crime, road collisions or planning around a London postcode with official, cited numbers.
- Citing the publisher, licence, dataset version and freshness behind a civic statistic.
- Inspecting HM Land Registry registered-sale transactions and official borough UK HPI dimensions without valuation or investment inference.
- Retrieving published EPC floor area, exact observed Price Paid-to-EPC ratios and source-limited property context without an automated valuation.
- Retrieving official ONS private-rent averages and the final PRMS distribution statistics at London borough level.
- Finding official Food Standards Agency establishments and rating values near a postcode centroid.
- Finding DfE schools with separately published performance and Ofsted outcomes, CQC-regulated locations, GP practices and pharmacies near a London postcode.
- Finding Planning London Datahub applications near a postcode for an explicit valid-date range.
- Building comparable, non-ranked factual profiles of two to five London postcodes, wards, local authorities or MSOAs of one type.
- Retrieving explicit monthly Fire, Crime or road-collision history with the loaded coverage bounds.
- Checking the official Environment Agency flood band and current warning polygons or the official TfL PTAL grid value at a postcode centroid.
- Retrieving postcode broadband, MSOA income, indicative BGS radon or an OS Open UPRN coordinate while preserving each source’s real geography and limits.

**Not the right tool for:**

- Locations outside Greater London (Release 1 coverage).
- Risk, safety, desirability or investment scores — Civic Data never computes them.
- Street- or property-level crime (crime is LSOA-level) or damage-only collisions (not in STATS19).
- Legal, planning or insurance advice.

**How to call it.** Pick the transport that fits the agent:

- REST (no auth): `GET https://api.civicdata.co.uk/v1/resolve/E15%202NE` then atomic routes for expanded Census, income, fire, crime, roads, planning, property sales and UK HPI dimensions, EPC, observed property price per area, deprivation, council tax, postcode broadband, indicative radon, UPRN coordinates, tribunal links and sources. OpenAPI 3.1 with operationIds at https://api.civicdata.co.uk/openapi.json. Free tier: 50 requests per hour; read the `RateLimit` header and back off on 429 using `Retry-After`.
- MCP (Streamable HTTP): `https://mcp.civicdata.co.uk/mcp`, server `civic-data-london`, with free atomic location, Census, history, planning, environmental and property-context tools including `get_income_data`, `get_radon_data`, `resolve_uprn`, `get_epc_data`, `get_property_price_per_area`, `get_deprivation_data`, `get_council_tax_rates`, `get_connectivity_data` and `get_property_tribunal_decisions`; `get_area_profile` and `compare_areas` are x402 paid.
- CLI: `npx civicdata resolve "E15 2NE"` prints the same JSON.
- Paid composed calls cost 0.05 USDC (area profile) and 0.10 USDC (compare 2–5 same-type identifiers) via x402 on Base; an unpaid request returns 402 with a `PAYMENT-REQUIRED` header.

Every page on this site returns Markdown when requested with `Accept: text/markdown`. Always cite the `sources` array (publisher, dataset, `as_of`) returned with each result.

## Developers

- [Civic Data for developers and agents](https://civicdata.co.uk/developers): Use free atomic London civic-data tools or paid composed intelligence through REST, CLI and MCP.
- [Civic Data REST API](https://civicdata.co.uk/developers/api): Free atomic London civic-data endpoints and x402-protected composed intelligence with OpenAPI schemas, rate-limit headers and structured errors.
- [Civic Data MCP server](https://civicdata.co.uk/developers/mcp): Connect agents to free atomic and x402-protected composed London civic-data tools through a Streamable HTTP MCP server.
- [Civic Data command-line tool](https://civicdata.co.uk/developers/cli): The civicdata CLI scripts Civic Data lookups from a terminal or agent sandbox using the public REST API.
- [Civic Data API versioning and deprecation policy](https://civicdata.co.uk/developers/versioning): How Civic Data versions its REST API, MCP tools and CLI, and how deprecation and sunset are signalled.
- [Built with Civic Data](https://civicdata.co.uk/built-with): Show that a page, report or agent uses Civic Data: the attribution badge, embed snippets, how to credit the official publishers, and how to tell us what you built.

- [OpenAPI specification](https://api.civicdata.co.uk/openapi.json): machine-readable REST contract with typed schemas.
- [Full text of this site](https://civicdata.co.uk/llms-full.txt): every page as one Markdown document.

## Data

- [London civic datasets](https://civicdata.co.uk/data): Clean, cited London Census, fire, recorded crime, road safety, planning and property-sale data available through free atomic tools.
- [London environmental context](https://civicdata.co.uk/data/environment): Official flood and indicative radon context, strategic noise bands, LAEI modelled air concentrations and TfL PTAL for a London postcode centroid.
- [London boroughs compared](https://civicdata.co.uk/boroughs): Every London borough with the same official figures: Census 2021 residents, recorded crime per 1,000 residents, fire brigade incidents and response, injury collisions and UK HPI house prices. Sortable, cited, never ranked.
- [London postcode districts](https://civicdata.co.uk/london): Every London postcode district with the same official Census, recorded-crime, fire, road-collision and Price Paid facts, with boundary coverage made explicit.
- [Compare two London boroughs](https://civicdata.co.uk/compare): Put two London boroughs side by side on the same official figures with per-resident rates from Census 2021. Factual comparison with sources; no ranking.
- [London Census 2021 data](https://civicdata.co.uk/data/census): Twelve ONS Census 2021 demographic and household topic summaries for the LSOA containing a London postcode.
- [London fire incident data](https://civicdata.co.uk/data/fire): London Fire Brigade incident categories, dwelling-fire counts, annual history and appliance-response statistics around a London postcode.
- [London recorded crime data](https://civicdata.co.uk/data/crime): Metropolitan Police recorded-crime totals, categories and year-over-year trend for the LSOA containing a London postcode.
- [London road collision data](https://civicdata.co.uk/data/road-safety): Department for Transport STATS19 fatal, serious and slight personal-injury collision counts around a London postcode.
- [London planning constraints](https://civicdata.co.uk/data/planning): Source-backed Planning Data designations that intersect a resolved London postcode centroid.
- [London planning applications](https://civicdata.co.uk/data/planning-applications): Planning London Datahub applications near a London postcode, with published status, decision, dates and provenance.
- [London private-rent statistics](https://civicdata.co.uk/data/rents): Official ONS PIPR monthly private-rent statistics and final VOA-based PRMS quartiles for Greater London boroughs.
- [London property sales data](https://civicdata.co.uk/data/property-sales): HM Land Registry Price Paid transactions, factual quartiles and official borough UK House Price Index context for London postcodes.
- [London property and neighbourhood context](https://civicdata.co.uk/data/property-context): Published EPC floor area, exact observed price-per-area, deprivation, income, council-tax, broadband, UPRN and tribunal context without automated valuations.
- [London food hygiene ratings](https://civicdata.co.uk/data/food-hygiene): Food Standards Agency establishments and official food hygiene rating values near a London postcode centroid.
- [Public places and services near a London postcode](https://civicdata.co.uk/data/public-services): Official education, care, health, public-transport, cycle-hire and open-greenspace locations through the free find_nearby tool.

## Who it is for

- [Who Civic Data is for](https://civicdata.co.uk/for): Guides for journalists, agent developers, proptech teams and residents using official London civic data.
- [Civic Data for journalists](https://civicdata.co.uk/for/journalists): Cited ward tables, monthly history and registered property sales for reproducible London reporting.
- [Civic Data for agent developers](https://civicdata.co.uk/for/agent-developers): Connect agents to cited London civic facts through Streamable HTTP MCP and shared REST schemas.
- [Civic Data for property and proptech teams](https://civicdata.co.uk/for/proptech): Official registered sales, borough rents and environmental context without valuations, yields or rankings.
- [Civic Data for residents and community groups](https://civicdata.co.uk/for/residents): Start with a London postcode, understand its ward and compare neighbouring wards on the same factual basis.

## Reference

- [Official data sources](https://civicdata.co.uk/sources): Inspect official publishers, licences, imported dataset versions and live-query upstream freshness behind Civic Data responses.
- [Methodology](https://civicdata.co.uk/methodology): How Civic Data resolves postcodes, calculates fire, crime and road metrics, queries planning data and preserves provenance.
- [Pricing](https://civicdata.co.uk/pricing): Free atomic civic-data access and transparent per-call USDC pricing for composed London area intelligence.

## Start here

- [Civic Data — London public data, made usable](https://civicdata.co.uk): Resolve a London postcode and access cited Census, fire, crime, road safety and planning data through the web, REST API, CLI or MCP.
- [Look up a London postcode](https://civicdata.co.uk/area): Resolve a London postcode to coordinates, LSOA, MSOA, ward, local authority, parliamentary constituency, built-up area and rural/urban classification using the ONS Postcode Directory.

## Optional

- [About Civic Data](https://civicdata.co.uk/about): Who Civic Data is for, what it does with official UK public data, and the principles the service commits to.
- [Contact Civic Data](https://civicdata.co.uk/contact): How to reach Civic Data for support, data corrections, security reports and commercial enquiries.
- [Privacy notice](https://civicdata.co.uk/privacy): What Civic Data records when you use the website, REST API, CLI or MCP server, why, and for how long.
