{"uid":"cap_fULXXEo5YJbp8CA-zFrS4","slug":"sitecheck-postcode-lookup-1d8ee564","name":"SiteCheck Postcode Lookup","description":"Place names and coordinates for a postcode. GB adds district, ward and constituency (postcodes.io); other countries use Zippopotam.us for ZIP and postal codes. A postcode that does not exist answers 404, not charged.","url":"https://api.sitecheck-api.workers.dev/api/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"},"queryParams":{"type":"object","required":["country","code"],"properties":{"code":{"type":"string","description":"Postcode or ZIP code"},"country":{"type":"string","description":"ISO 3166 alpha-2 code, e.g. GB"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"code":"SW1A 1AA","places":[{"lat":51.50101,"lon":-0.141563,"county":null,"region":"London","district":"Westminster","placeName":"St James's","constituency":"Cities of London and Westminster"}],"source":"postcodes.io (https://api.postcodes.io)","country":"GB","checkedAt":"2026-10-14T04:49:24.511Z","attribution":"Contains OS data © Crown copyright and database right; postcodes.io (Open Government Licence v3.0)"}},"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_UO-KwmNMEj-tTJ4Xt9MXx","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":"Resolves a postcode or ZIP code to geographic and administrative details including coordinates, region, district, and constituency","exampleAgentPrompt":"What region, district, and coordinates does the UK postcode SW1A 1AA belong to?","exampleUseCases":[{"title":"Address verification for e-commerce checkout","prompt":"Can you check whether the postcode W1A 0AX is valid for the UK and tell me what district and region it belongs to so I can validate the shipping address?"},{"title":"Constituency lookup for political research","prompt":"I need to know which parliamentary constituency the postcode EC1A 1BB falls in — can you look that up for me?"},{"title":"Geocoding postcodes for mapping application","prompt":"I have a UK postcode, SW1H 0ET — can you get me the latitude and longitude for it so I can plot it on a map?"}],"resultDescription":"A JSON object containing the postcode, an array of matching places each with latitude, longitude, county, region, district, place name, and constituency, plus the country code, lookup timestamp, data source attribution, and a link to postcodes.io.","failureModes":["Invalid or malformed postcode returns an error or empty places array","Unsupported country code may yield no results","Postcode that no longer exists (retired postcodes) may return empty results","Missing required query parameters (country or code) returns a validation error","Network timeout or upstream postcodes.io unavailability"],"whenToPreferThis":"Choose this endpoint when you need to resolve a UK postcode (or other country ZIP code) to structured geographic and administrative data including coordinates, region, district, and constituency. It is backed by postcodes.io with OS Crown copyright data, making it authoritative for UK addresses. Prefer it over generic geocoding APIs when administrative boundary data (constituency, district, county) is needed alongside coordinates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:45:01.299Z","isFirstParty":false,"canonicalSlug":"sitecheck-postcode-lookup-1d8ee564"}