fourzerotwo
← Catalog
geo by fourzerotwo

UK Geography Codes

Official ONS lookup tables (2025 wards and local authorities, 2024 constituencies, 2021 census small areas) from the Open Geography Portal.

cost
Free every endpoint, within the daily allowance
after that
from $0.001 / call · card or USDC
endpoints
9

No signup needed over MCP: 100 free calls a day, or 500 with a free key.

Ward Free

A ward's local authority, county/unitary, region, country and Westminster constituency.

cost
Free then $0.001 / call
MCP tool
uk-geography__ward
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/ward

ParamTypeDescription
code string ONS ward code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/ward?code=E05009292"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/ward?code=E05009292"

by fourzerotwo

Report this endpoint

Local authority Free

A local authority district's county/unitary, region and country, with all its wards and constituencies.

cost
Free then $0.001 / call
MCP tool
uk-geography__local-authority
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/local-authority

ParamTypeDescription
code string ONS local authority district code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/local-authority?code=E06000001"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/local-authority?code=E06000001"

by fourzerotwo

Report this endpoint

Westminster constituency Free

The wards (split wards flagged) and local authorities making up a 2024 Westminster constituency.

cost
Free then $0.001 / call
MCP tool
uk-geography__constituency
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/constituency

ParamTypeDescription
code string ONS constituency code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/constituency?code=E14001463"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/constituency?code=E14001463"

by fourzerotwo

Report this endpoint

LSOA Free

The ward and local authority for a 2021 Lower Layer Super Output Area.

cost
Free then $0.001 / call
MCP tool
uk-geography__lsoa
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/lsoa

ParamTypeDescription
code string ONS LSOA code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/lsoa?code=E01012152"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/lsoa?code=E01012152"

by fourzerotwo

Report this endpoint

MSOA Free

The wards and local authority for a 2021 Middle Layer Super Output Area.

cost
Free then $0.001 / call
MCP tool
uk-geography__msoa
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/msoa

ParamTypeDescription
code string ONS MSOA code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/msoa?code=E02002489"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/msoa?code=E02002489"

by fourzerotwo

Report this endpoint

Parish Free

The ward(s) and local authority for a civil parish.

cost
Free then $0.001 / call
MCP tool
uk-geography__parish
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/parish

ParamTypeDescription
code string ONS parish code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/parish?code=E04000253"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/parish?code=E04000253"

by fourzerotwo

Report this endpoint

Region Free

The local authority districts in an English region.

cost
Free then $0.001 / call
MCP tool
uk-geography__region
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/region

ParamTypeDescription
code string ONS region code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/region?code=E12000001"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/region?code=E12000001"

by fourzerotwo

Report this endpoint

County or unitary authority Free

The local authority districts in a county or unitary authority.

cost
Free then $0.001 / call
MCP tool
uk-geography__county
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/uk-geography/county

ParamTypeDescription
code string ONS county/unitary code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/county?code=E10000016"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-geography/county?code=E10000016"

by fourzerotwo

Report this endpoint

Source: Office for National Statistics licensed under the Open Government Licence v.3.0.