Concepts
Areas and boundaries
Area codes
Every official area has a code. Birmingham City Council is E08000025, and a code's first letter usually tells you the country: E for England, W for Wales, S for Scotland and N for Northern Ireland. Some Northern Ireland statistics use their own codes, like 95AA01S1.
Codes are the reliable way to name an area. Names aren't unique, but codes are.
Geographies
A geography is a kind of area. You'll see these most often:
| Geography | What it is |
|---|---|
ward | Electoral wards, the building blocks of councils |
localAuthority | Councils, like Leeds or Cornwall |
constituency | Westminster parliamentary constituencies |
region | The English regions, like the North West |
lsoa | Small statistical areas in England and Wales |
dataZone | Small statistical areas in Scotland |
List geographies returns every one the Atlas knows about.
Boundary releases
A boundary release is a dated snapshot of one geography's boundaries, as its publisher released them. Its id tells you what it is:
2024-07-uk-bgcis the July 2024 release covering the UK.- The middle part is the coverage, such as
uk,gb,ew(England and Wales),enorsc. - The last part is the publisher's boundary type:
bgcis generalised and clipped to the coastline, andbfcis full resolution. - A year can have more than one release. Use the full id, including its month and coverage, when you need one exact set of shapes.
Not sure which release to use for a date? Find boundaries for a date picks the right one. The geography pages list every available release and its coverage.
Naming an exact area
Because the same code can appear in several releases, an area's full identity has three parts: its geography, its boundary release and its code. You'll see them together in URLs:
curl "https://api.ukdataatlas.com/v1/areas/constituency/2024-07-uk-bgc/E14001262"Which areas data is on
Publishers release statistics against the area codes that were current when they made them. When you ask for data, you name that set of codes with two parameters:
geography: the kind of area the publisher used, such asward.boundaryYear: the year of the codes they used, such as2023.
This doesn't choose which boundaries to draw. To put values on a map, add a release. The API only accepts one that contains every area code in the data, so nothing silently goes missing. Check which boundaries fit lists the releases that work.
Shapes
Shapes come back as GeoJSON in ordinary longitude and latitude (WGS 84). Full detail can be heavy, so geometry endpoints take a tier of full, high, medium or low. medium or low is usually right for web maps.
Useful endpoints
get/boundary-releasesList boundary releasesget/areas/{geography}/{release}/{code}Get an areaget/areas:validateCheck codes or namesget/areas/{geography}/{release}/{code}/geometryGet an area's shape