Pushbuild

UK Postcode API - Lookup, Reverse Geocode & Autocomplete

Bulk UK postcode lookup with latitude/longitude, district, ward, county, region, constituency, NHS and police areas and deprivation index; reverse geocode coordinates to nearest postcodes; autocomplete partial postcodes; outcode data; terminated postcode detection.

$0.16 per 1,000 postcodes

Get an API key

What it returns

Every current UK postcode, from Office for National Statistics and Ordnance Survey open data.

Postcode, latitude/longitude, eastings/northings, country, region, district, county, ward, parish, parliamentary constituency, NHS and police areas, LSOA/MSOA, deprivation index and ONS codes. Invalid and terminated postcodes are flagged and not charged.

Common uses

Address forms, delivery zones, store locators, CRM cleaning, property and demographic analysis. Pay per postcode.

Request

POST https://api.pushbuild.com/uk-postcodes/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
postcodeslist of stringsFull UK postcodes, any spacing or case.
coordinateslist of strings"lat,lon" points; returns nearest postcodes.
autocompletelist of stringsPartial postcodes, e.g. SW1A 1.
outcodeslist of stringsPostcode districts, e.g. SW1A, M1.
radiusMetersintegerSearch radius for coordinates (max 2000). Default: 1000.
maxResultsPerPointintegerPostcodes per coordinate or autocomplete (max 100). Default: 10.
autocompleteDetailsbooleanReturn full records instead of postcode strings. Default: true.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/uk-postcodes/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"postcodes": ["SW1A 1AA", "M1 1AE"], "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.16 per 1,000 postcodes. No charge for errors or empty searches.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.