Guide
Locate a batch of points
Send the points
POST the coordinates as a JSON
pointsarray, each one{lng},{lat}. This example sends a point in Leeds and another outside UK coverage, asking for local authorities as they were published on 1 June 2025.curl -X POST "https://api.ukdataatlas.com/v1/areas:containsBatch?geography=localAuthority&date=2025-06-01" \ -H "Content-Type: application/json" \ --data '{"points":["-1.5491,53.8008","1.0,54.5"]}'Response200 { "apiVersion": "v1", "atlasRelease": "sha256:da4898229392e8fa52cd5098cf24c52f11abf454b0adcab178c6c82e30032c15", "data": { "date": "2025-06-01", "boundaryRule": "included", "releases": [ { "geography": "localAuthority", "boundaryRelease": "2025-05-uk-bgc-v2", "selection": { "policy": "latest-release-dated-on-or-before", "date": "2025-06-01" }, "boundaryResolution": { "generalisation": "generalised-20m", "toleranceM": 20 }, "geometrySource": { "sourceCrs": "EPSG:4326" } } ], "summary": { "points": 2, "lookups": 2, "matched": 1, "noMatch": 0, "outsideCoverage": 1, "unresolved": 0, "nearBoundary": 0 }, "points": [ { "index": 0, "point": { "lng": -1.5491, "lat": 53.8008 }, "country": { "code": "GB-ENG", "determinedBy": "area-code", "area": "localAuthority/2025-05-uk-bgc-v2/E08000035" }, "results": [ { "geography": "localAuthority", "boundaryRelease": "2025-05-uk-bgc-v2", "status": "matched", "positionalToleranceM": 25.57, "matches": [ { "id": "localAuthority/2025-05-uk-bgc-v2/E08000035", "code": "E08000035", "name": "Leeds", "containment": "interior", "distanceToBoundaryM": 6460.39, "nearBoundary": false } ] } ] }, { "index": 1, "point": { "lng": 1, "lat": 54.5 }, "country": { "code": null, "determinedBy": "country-boundary", "boundaryRelease": "2024-12-uk-bgc" }, "results": [ { "geography": "localAuthority", "status": "outside-coverage", "reason": "outside-uk-boundaries", "matches": [] } ] } ] } }Read every result
Use
points[].indexto join the answer back to your input row. A matched point has an area id and code; anoutside-coveragepoint is still a successful response, with an explanation and no invented area.Keep
summary.outsideCoverage,summary.unresolvedandnearBoundaryin your import report. They tell you how much of your input needs review.Join your data
For matched rows, store the complete area
id, not only its code. The id preserves the geography and boundary release, so a later data request uses the same area vintage as the lookup.You can then request a measure for the matched codes, or keep the point-to-area table as a reusable spatial join. The batch endpoint is capped at 100 points; page your own input into bounded batches.
Postcodes instead of points
A list of addresses usually has postcodes rather than coordinates. Send up to 100 full postcodes as a JSON postcodes array, and each is placed by its centroid from the ONS Postcode Directory, in its local authority, ward and Westminster constituency unless you ask for other geographies:
curl -X POST "https://api.ukdataatlas.com/v1/postcodes:batch?geography=localAuthority" \
-H "Content-Type: application/json" \
--data '{"postcodes":["SW1A1AA","M11AE","CF101EP","BT11AA"]}'Each postcode keeps its place in the order you sent, with a status. A postcode that is invalid, not-found, has no grid reference (not-placed) or is in Northern Ireland (not-served) doesn't fail the batch, and summary counts each outcome for your import report. Add view=compact if you only need each postcode's point and areas.
/areas:containsBatchFind areas for many pointspost/postcodes:batchFind areas for postcodesget/data/{measure-id}Get observations