{"uid":"cap_-YrfRO2HR4MT57O74SQXL","slug":"uk-open-data-postcode-lookup-e0760585","name":"UK Open Data – Postcode Lookup","description":"Look up a UK postcode: coordinates, council, ward, constituency, region and police force area; flags terminated postcodes.","url":"https://uk-open-data.x402tookit.com/postcode-lookup?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"},"queryParams":{"type":"object","required":["postcode"],"properties":{"postcode":{"type":"string","description":"UK postcode with or without the space, e.g. EC1A 1BB"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"postcodeInfo":{"type":["null","object"],"properties":{"lat":{"type":["null","number"]},"lon":{"type":["null","number"]},"lsoa":{"type":["null","string"]},"ward":{"type":["null","string"]},"county":{},"incode":{"type":["null","string"]},"parish":{"type":["null","string"]},"region":{"type":["null","string"]},"country":{"type":["null","string"]},"outcode":{"type":["null","string"]},"quality":{"type":["null","number"]},"district":{"type":["null","string"]},"eastings":{"type":["null","number"]},"postcode":{"type":["null","string"]},"northings":{"type":["null","number"]},"introduced":{"type":["null","string"]},"terminated":{},"constituency":{"type":["null","string"]},"policeForceArea":{"type":["null","string"]}}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5dZqoViR4-mQmoM8lx1ey","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up a UK postcode to retrieve coordinates, council, ward, constituency, region, police force area, and termination status.","exampleAgentPrompt":"Can you look up the postcode EC1A 1BB and tell me its coordinates, which council and ward it's in, what parliamentary constituency it belongs to, and which police force covers it?","exampleUseCases":[{"title":"Enrich customer address data","prompt":"I have a customer with postcode SW1A 2AA — can you look it up and tell me which local authority district, ward, constituency, and police force area it falls in, and whether it's an active postcode?"},{"title":"Map delivery zone to local council","prompt":"We need to know which council and region covers the postcode LS1 4AP for a planning application — can you look it up and give me the full geographic breakdown?"},{"title":"Verify and geolocate a UK address","prompt":"Can you check the postcode M1 1AE — is it still active, and if so, what are its exact coordinates and which police force area does it sit in?"}],"resultDescription":"Returns a postcodeInfo object containing latitude, longitude, eastings, northings, outcode, incode, ward, district, county, region, country, constituency, parish, LSOA, police force area, a quality score, the date the postcode was introduced, and whether it has been terminated. Also includes a verdict/summary and any degraded-data flags.","failureModes":["Invalid or malformed postcode format returns an error or null postcodeInfo","Terminated postcode is returned with a termination flag rather than an error — agent must check the 'terminated' field","Non-UK postcodes are not supported","Network or payment failure results in no response","Postcode not found in database returns null fields"],"whenToPreferThis":"Choose this endpoint when you need authoritative UK postcode resolution including coordinates, administrative boundaries (ward, district, constituency), police force area, and active/terminated status — all in a single call. Prefer it over generic geocoding APIs when UK-specific administrative data (council, ward, police force) is required alongside coordinates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-05T00:32:03.380Z","isFirstParty":false,"canonicalSlug":"uk-open-data-postcode-lookup-e0760585"}