{"uid":"cap_dxBooiXKI8o5ojoU10tq2","slug":"uk-postcode-lookup-e2d56a3f","name":"UK Postcode Lookup","description":"Location and areas for a Great Britain postcode: latitude and longitude, ward, district, constituency and region, as JSON.","url":"https://pennydatahq.com/api/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":"Great Britain postcode, with or without the space, any case. Northern Ireland (BT) is not supported."}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["postcode"],"properties":{"ward":{"type":["string","null"]},"region":{"type":["string","null"],"description":"English region; null in Scotland and Wales"},"country":{"type":["string","null"]},"district":{"type":["string","null"]},"latitude":{"type":["number","null"]},"postcode":{"type":"string"},"longitude":{"type":["number","null"]},"constituency":{"type":["string","null"],"description":"Westminster parliamentary constituency (2024 boundaries)"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VTknOo4XfmCLd1nH2jWzx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns geographic and administrative data (lat/lon, ward, district, constituency, region) for a Great Britain postcode.","exampleAgentPrompt":"What are the latitude, longitude, ward, district, and parliamentary constituency for the postcode SW1A 2AA?","exampleUseCases":[{"title":"Geocoding addresses for mapping","prompt":"I have a list of UK postcodes and I need the latitude and longitude for each — can you start with EC2A 4NE?"},{"title":"Identifying constituency for voter outreach","prompt":"Which Westminster parliamentary constituency does the postcode LS1 4DY fall under? I need the 2024 boundary."},{"title":"Enriching property listings with admin data","prompt":"For the postcode OX1 3BG, can you tell me the ward, district, and region it belongs to so I can tag this property listing correctly?"}],"resultDescription":"A JSON object containing the normalised postcode, latitude, longitude, ward name, district name, Westminster parliamentary constituency (2024 boundaries), English region (null for Scotland and Wales), and country.","failureModes":["Northern Ireland (BT) postcodes are not supported and will return null or an error","Invalid or non-existent postcode returns an error or empty result","Malformed postcode string may fail validation","Region field is null for Scottish and Welsh postcodes (English regions only)"],"whenToPreferThis":"Choose this endpoint when you need structured geographic and administrative data for a Great Britain postcode in a single low-cost call, especially when you need both coordinates and administrative boundaries (ward, district, constituency, region) together. Prefer this over a general geocoding API when UK administrative context is required alongside lat/lon. Note: Northern Ireland (BT postcodes) is not supported.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:36:56.876Z","isFirstParty":false,"canonicalSlug":"uk-postcode-lookup-e2d56a3f"}