postcodes.io
GeoGBapi.postcodes.io
UK postcode lookup and geocoding: administrative, electoral and health geographies, latitude/longitude, and reverse geocoding from a point, built on Ordnance Survey and Royal Mail data.
Capabilities (4)
GET /v1/data/postcodes-io/bulk-postcodes1 creditUp to 100 postcode records in one response, keyed by the query order.
GET /v1/data/postcodes-io/outcode1 creditThe geographic centroid and bounding box of a postcode district (outcode), such as SW1A.
GET /v1/data/postcodes-io/postcode1 creditFull record for one UK postcode: coordinates, local authority, ward, constituency, region, country, LSOA/MSOA and quality indicators.
GET /v1/data/postcodes-io/reverse-geocode1 creditThe nearest postcodes to a latitude/longitude with their distance in metres, plus the administrative areas covering the point.
Response example
The shape of data from postcodes-io/bulk-postcodes (Bulk postcode lookup). A sample, not live data.
{
"status": 200,
"result": null
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Bulk postcode lookup
Use postcodes.io (postcodes-io) from fastCRW Pergamon, capability "Bulk postcode lookup" (bulk-postcodes). You have a list of UK postcodes and want their geographies in one call. Example options: q=SW1A1AA,SW1A2AA. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "postcodes-io" and capability "bulk-postcodes". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Outcode lookup
Use postcodes.io (postcodes-io) from fastCRW Pergamon, capability "Outcode lookup" (outcode). You only know the first part of a postcode and need its approximate location and extent. Example options: outcode=SW1A. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "postcodes-io" and capability "outcode". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Postcode lookup
Use postcodes.io (postcodes-io) from fastCRW Pergamon, capability "Postcode lookup" (postcode). You hold a UK postcode and need its coordinates and administrative areas. Example options: postcode=SW1A 1AA. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "postcodes-io" and capability "postcode". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Reverse geocode
Use postcodes.io (postcodes-io) from fastCRW Pergamon, capability "Reverse geocode" (reverse-geocode). You have GPS coordinates in the UK and want the postcodes and areas that cover them. Example options: lon=-0.1276, lat=51.5034, limit=10. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "postcodes-io" and capability "reverse-geocode". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
The postcodes.io site states "Open Source MIT licensed" and its source repository is MIT. That MIT grant covers the SOFTWARE (the API server), not the postcode dataset, which the site attributes to "Ordnance Survey and other UK data providers" without restating their terms. No explicit data-reuse licence is reproduced on the site, so no reuse right is claimed here beyond reading the API.
https://postcodes.io/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: postcodes.io. Postcode data from Ordnance Survey and Royal Mail via postcodes.io.
Cache: up to 3600s
