Postcodes.io
Look Up UK Postcode
Returns the town, district, region and coordinates for a UK postcode.
Unverified
What the model is told
Look up a UK postcode and return its town, district, region, country and coordinates. Pass the postcode in capitals with no spaces.
Request
GEThttps://api.postcodes.io/postcodes/{{postcode}}
Headers
None.
Parameters
postcode stringA UK postcode in capitals with no spaces, for example SW1A1AA.
Try this tool
This runs in your browser and calls Postcodes.io directly. Nothing goes through our servers.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "ae5b3f19-cd0a-416b-a7f4-fe8f6009e816",
"type": "HTTP_REQUEST",
"label": "Look Up UK Postcode",
"name": "look_up_uk_postcode",
"customName": false,
"description": "Look up a UK postcode and return its town, district, region, country and coordinates. Pass the postcode in capitals with no spaces.",
"parameters": [
{
"name": "postcode",
"type": "string",
"description": "A UK postcode in capitals with no spaces, for example SW1A1AA."
}
],
"config": {
"endpoint": {
"method": "GET",
"url": "https://api.postcodes.io/postcodes/{{postcode}}"
},
"headers": [],
"body": null,
"timeout": null
}
}
}IDs are regenerated on every copy.