All appsMaps & Travel
Postcodes.io API
Look up UK postcodes and geocode from a workflow, with no account and no API key. No key needed. Call it from Lodol with no code and send what it returns to any other app.
- actions
- 18
Actions
Steps a workflow can run in Postcodes.io.
- Look up a postcodeLook up everything Postcodes.io holds for one UK postcode: its coordinates, its country, region, local authority district, ward, parish and parliamentary constituency, its NHS and statistical areas, and the GSS code for each. Spacing and capitalization do not matter. A postcode that no longer exists is not a failure: the step reports when it was terminated, so a workflow can tell a retired postcode from a typo. Comes with a plain-English reading of how accurate the coordinates are and a map link. No API key required.
- Validate a postcodeCheck whether a string is a live UK postcode. This is a real existence check against the Office for National Statistics postcode directory, not a format check: 'ZZ99 9ZZ' is correctly shaped and is not a postcode, and this says so. When the answer is no, the step also says whether the postcode used to exist and when it was withdrawn, so an address form can tell a customer 'that postcode was retired in 2018' rather than just rejecting it. Ideal in a condition before the rest of a workflow runs. No API key required.
- Look up postcodes in bulkLook up many UK postcodes in one step, which is what to use instead of a loop: a column from a spreadsheet, a list of customer addresses, a delivery run. The answers come back in the order they were sent, so they line up with the column they came from, and the ones that could not be matched are listed separately rather than left as gaps to sift out. Postcodes.io takes 100 per request and refuses a longer list outright, so this step splits a longer one into batches automatically, up to 1,000. Trim the fields to keep a large answer small. No API key required.
- Search postcodesFind live UK postcodes that start with a string, each with its full record. Use it to turn a partial postcode into real ones, or an outward code into the postcodes inside it. Exact matches win: searching for a postcode the service holds returns that one rather than everything sharing its prefix. Terminated postcodes are never returned. Use Autocomplete a postcode instead when only the postcode strings are wanted. No API key required.
- Autocomplete a postcodeComplete a partial postcode into a list of real ones. The same search as Search postcodes, but it returns the postcode strings alone rather than a full record for each, which is what an address form or a chat reply wants and a fraction of the data. Terminated postcodes are never suggested. No API key required.
- Find nearest postcodesList the postcodes around another postcode, nearest first, each with how far away it is in meters, kilometers and miles. The postcode itself comes back first at zero. Use it to find neighboring delivery areas, to widen a catchment, or to check what else is on a street. The default radius is 100 meters, which is a street rather than a neighborhood, so raise it for a rural address, or turn on wide search for a remote one whose neighbors are more than 2km away. No API key required.
- Reverse geocode coordinatesTurn a longitude and latitude into the UK postcodes around it, nearest first, each with its distance and its full record. This is the step for a GPS reading, a map click or a photo's location. The default radius is 100 meters, which finds nothing in open country: turn on wide search for a rural point and it looks out to 20km instead, though it then ignores the radius and returns at most 10 results. No API key required.
- Reverse geocode coordinates in bulkTurn many coordinate pairs into UK postcodes in one step: a day of GPS readings, a set of pins, a list of site locations. Every point gets its own row with the nearest postcode and everything else in range, and the points that matched nothing are counted rather than left as gaps. Postcodes.io takes 100 points per request and refuses more, so a longer list is batched automatically, up to 1,000. No API key required.
- Measure the distance between two postcodesMeasure how far apart two UK postcodes are, in meters, kilometers and miles, and say whether they fall in the same local authority district, constituency and country. This is the step for 'is this customer within 20 miles of the depot?' or 'which of our sites is closest?'. Both postcodes are read in a single request. The distance is as the crow flies between the two postcode centroids, not a driving distance and not door to door. No API key required.
- Get a random postcodeGet a random live UK postcode with its full record, optionally from one outward code. Useful for seeding test data with an address that really exists, for sampling, or for a daily 'somewhere in the UK' post. An outward code the service does not hold is reported as such rather than coming back as an empty result. No API key required.
- Look up a terminated postcodeLook up a UK postcode that no longer exists and find out when it was withdrawn, together with its last known coordinates. Postcodes are retired all the time as streets are redeveloped, so an old customer record can hold an address that a normal lookup simply cannot find. Only terminated postcodes are here: a postcode still in use is reported as still in use rather than as a failure. No API key required.
- Look up a Scottish postcodeLook up the Scottish-only geographies for a postcode in Scotland, from the Scottish Postcode Directory: council area, Scottish Parliament constituency and region on the 2026 boundaries, health board, Data Zone and Intermediate Zone, locality and settlement, the Scottish Index of Multiple Deprivation rank, the urban-rural classification in words, and census household and population counts. None of that is in the UK-wide directory. A real postcode outside Scotland is reported as such rather than as an error, so a condition can tell it apart from a typo. No API key required.
- Look up an outward codeLook up one outward code, the part of a postcode before the space, such as 'SW1A' in 'SW1A 2AA'. An outward code covers hundreds of postcodes, so this returns every local authority district, ward, county, parish and parliamentary constituency it touches, plus its center point. Use it to describe a postal area from a partial address, or to see how many boundaries an area straddles. No API key required.
- Find nearest outward codesList the outward codes around another one, nearest first, each with how far its center is from the center of the one given, as the crow flies. Use it to widen a delivery or service area a postal district at a time, or to name the neighboring areas of a site. The default radius is 5km and it reaches 25km, which is wider than the postcode search because outward codes are much further apart. No API key required.
- Reverse geocode to outward codesTurn a longitude and latitude into the outward codes around it, nearest first, each with how far its center is from the point. A coarser and much smaller answer than a full postcode: this is the step for 'roughly which postal area is this?', or for grouping a set of points into districts. It works where a postcode lookup finds nothing, because the default radius is 5km rather than 100 meters. No API key required.
- Search placesFind British places by name, from Ordnance Survey's Open Names: towns, villages, suburbs, hamlets and other gazetteer entries, each with its county, region, country, outward code and coordinates. Use it to turn a place name a person typed into a real location. Welsh and Gaelic names are matched too and come back alongside the English one. Great Britain only: Northern Ireland is not in this dataset. No API key required.
- Look up a placeLook up one British place by its Ordnance Survey code, the 'code' field of a search result such as 'osgb4000000074554911'. Returns the same full record as a search, including the Welsh or Gaelic name where there is one and the bounding box of the place. Ordnance Survey issues new codes when it republishes its gazetteer, so run Search places or Get a random place earlier in the same workflow to get a code rather than keeping one. No API key required.
- Get a random placeGet a random British place from Ordnance Survey's Open Names, with its full record and its code. Useful for seeding test data with a location that really exists, for sampling, or for a 'somewhere in Britain' post. No API key required.
No actions match that.
Automate Postcodes.io with Lodol.
Connect Postcodes.io, then hand Lodol the job in Slack, Claude or ChatGPT.
Free plan, no credit card