← UK Geography Codes
geo by fourzerotwo
Find a code by name
Search ward, local-authority, county, region, constituency or parish names for their ONS codes.
Find a code by name Free
Search ward, local-authority, county, region, constituency or parish names for their ONS codes.
- cost
- Free then $0.001 / call
- MCP tool
- uk-geography__search
- 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/search
| Param | Type | Description |
|---|---|---|
| name | string | Name or part of it |
| type? | string | ward (default) | local-authority | county | region | constituency | parish |
# free: send a free key from https://fourzerotwo.si/free curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-geography/search?name=Hartlepool" # no key: returns 402 with the price, for x402 agents curl -i "https://fourzerotwo.si/v1/uk-geography/search?name=Hartlepool"
by fourzerotwo
Report this endpoint
Use it from an AI agent (MCP)
Add the server once, then ask for this data in plain English. The agent finds the endpoint with search_apis and runs it with call_api.
{
"mcpServers": {
"fourzerotwo": { "type": "http", "url": "https://fourzerotwo.si/mcp" }
}
}
# the call the agent makes
call_api {"tool": "uk-geography__search", "arguments": {"name":"Hartlepool","type":"local-authority"}}
More from UK Geography Codes
- Ward — A ward's local authority, county/unitary, region, country and Westminster constituency.
- Local authority — A local authority district's county/unitary, region and country, with all its wards and constituencies.
- Westminster constituency — The wards (split wards flagged) and local authorities making up a 2024 Westminster constituency.
- LSOA — The ward and local authority for a 2021 Lower Layer Super Output Area.
- MSOA — The wards and local authority for a 2021 Middle Layer Super Output Area.
- Parish — The ward(s) and local authority for a civil parish.
- Region — The local authority districts in an English region.
- County or unitary authority — The local authority districts in a county or unitary authority.
Source: Office for National Statistics licensed under the Open Government Licence v.3.0.