fourzerotwo
← 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.

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.