Skip to content

Postcodes.io API: Get postcode details

Looks up a UK postcode on Postcodes.io, including its location, administrative areas and whether it is still in use. Retired postcodes return location and retirement year only.

postcodes.io (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Postcodes.io.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Postcode, requiredpostcode

UK postcode, with or without a space and in any letter case, for example SW1A 1AA.

SW1A 1AA

Output

From a run on Oct 23, 2026.
{  "ward": "St James's",  "county": null,  "in_use": true,  "parish": "Westminster, unparished area",  "region": "London",  "country": "England",  "eastings": 529090,  "latitude": 51.50101,  "postcode": "SW1A 1AA",  "longitude": -0.141563,  "northings": 179645,  "page_link": "https://postcodes.io/postcodes/SW1A1AA",  "area_codes": {    "ward": "E05013806",    "county": null,    "parish": "E43000236",    "local_council": "E09000033",    "integrated_care_board": "E54000071",    "parliamentary_constituency": "E14001172"  },  "year_retired": null,  "local_council": "Westminster",  "parliamentary_constituency": "Cities of London and Westminster",  "health_board_or_integrated_care_board": "NHS West and North London Integrated Care Board"}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
postcodes.io/get_postcode
Returns
postcode, country, region, council, ward, parish, constituency, health board, coordinates, in_use, year_retired, area codes

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method postcodes.io/get_postcode with the inputs above.

Ask your agent

  • What council and ward does the postcode SW1A 1AA fall under?
  • Is the UK postcode M1 1AE still active or has it been retired, and if retired, when?
  • Give me the constituency, region and coordinates for EH1 2NG on postcodes.io.
  • Which parish and health board cover the postcode bs81uh?
  • I need the country, latitude and longitude for the UK postcode ls1 4ap, plus its administrative area codes.
  • Lists UK postcodes nearest to a postcode or named place, with distance, ward, council and coordinates. For places sharing a name, a city or town is preferred.

    postcodes.io/list_nearby_postcodes
  • Finds the neighbourhood policing team for a UK postcode (England, Wales, Northern Ireland) with its force, contacts, officers, priorities and upcoming events.

    police.uk/get_neighbourhood_team
  • Looks up the places, regions and coordinates for a postal code in a supported country on Zippopotam.us.

    zippopotam.us/get_postal_code
  • Finds postal codes, place names and coordinates for a town and state or region in a country covered by Zippopotam.us.

    zippopotam.us/search_postal_codes
  • Gets crimes reported within one mile of a UK postcode or place in England, Wales or Northern Ireland for a month (latest published by default), with category totals, up to 100 sampled incidents, the previous month's total and the local police.uk crime-map link.

    data.police.uk/get_crimes_near_postcode
  • Finds the public location and network operator of an IPv4 or IPv6 address. Private and reserved addresses have no public location.

    ipinfo.io/get_ip_location
  • Looks up an Indian six-digit PIN code and lists its post offices with branch type, delivery status and postal area.

    postalpincode.in/get_pin_code
  • Finds Indian post offices matching a place name, with PIN codes, branch types, delivery statuses, districts and states. Optionally narrows by state or district.

    postalpincode.in/search_pin_codes