{"uid":"cap_7crCOmeHJQrbi0lk6G3vD","slug":"agent-tools-uk-uk-postcode-lookup-4c34a3c1","name":"Agent Tools UK – UK Postcode Lookup","description":"Look up any UK postcode and get latitude/longitude, local council, county, ward, parish, parliamentary constituency, region and country, from official ONS data. Use when you need to place a UK address on a map, work out which council or MP covers it, or check a postcode is real. Spaces optional. Errors: 400 invalid format, 404 postcode not found.","url":"https://agent-tools-production-e6aa.up.railway.app/v1/uk-postcode/:postcode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["postcode"],"properties":{"postcode":{"type":"string","description":"UK postcode, e.g. SW1A1AA"}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rN5nnzH8-cUag9ejf81m2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a UK postcode and returns its latitude/longitude, local council, county, ward, parish, parliamentary constituency, region, and country from official ONS data.","exampleAgentPrompt":"Can you look up the postcode SW1A 2AA and tell me its latitude and longitude, which council and parliamentary constituency it belongs to?","exampleUseCases":[{"title":"Pinpoint address on a map","prompt":"I have the address 10 Downing Street with postcode SW1A 2AA — can you get me the exact latitude and longitude so I can drop a pin on a map?"},{"title":"Identify local MP for a postcode","prompt":"My user filled in their postcode as LS1 4DY — can you tell me which parliamentary constituency and MP covers that area?"},{"title":"Validate a customer postcode","prompt":"A customer entered 'ZZ99 3VZ' as their postcode — can you check if that's a real UK postcode and return its details, or confirm it doesn't exist?"}],"resultDescription":"Returns a JSON object with the postcode's geographic coordinates (latitude, longitude), administrative data (local council, county, ward, parish), political data (parliamentary constituency), and regional data (region, country) sourced from official ONS records. Returns a 400 error for invalid format or a 404 error if the postcode is not found.","failureModes":["400 Bad Request – postcode string is in an invalid format (e.g. too long, non-alphanumeric characters)","404 Not Found – postcode format is valid but does not exist in the ONS database (e.g. fictional or decommissioned postcode)","Network timeout if the upstream service is unreachable"],"whenToPreferThis":"Use this endpoint when you need to geocode, validate, or look up administrative and political boundaries for a UK postcode using authoritative ONS data. Prefer it over generic geocoding APIs when you specifically need UK council, ward, parish, or parliamentary constituency data alongside coordinates — data that general-purpose geocoders typically omit.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:44:15.155Z","isFirstParty":false,"canonicalSlug":"agent-tools-uk-uk-postcode-lookup-4c34a3c1"}