{"uid":"cap_zcwMzNKeu1z9PlfeXciRR","slug":"uk-postcode-validate-b5ae134f","name":"UK Postcode Validate","description":"UK postcode lookup, search, validation and autocomplete with x402 payments.","url":"https://postcode.payapi.market/lookup/validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode to validate; spacing and case are normalised, e.g. 'SW1A 1AA'."}}},"responseSchema":{"type":"json","example":{"type":"active","input":"SW1A 1AA","active":true,"normalized":"SW1A1AA","valid_format":true}},"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_UXcFcv5WTeepE_4-lAcrF","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":"Validates a UK postcode and returns its active status, normalized form, and format correctness","exampleAgentPrompt":"Can you check whether 'SW1A 1AA' is a valid and active UK postcode, and give me the normalized version?","exampleUseCases":[{"title":"E-commerce address form validation","prompt":"A customer just entered 'ec1a1bb' into the postcode field — can you check if that's a valid, active UK postcode before we accept their order?"},{"title":"Data cleansing for mailing list","prompt":"I have the postcode 'W1A 0AX' in my database — can you verify it's correctly formatted and active so I know whether to include it in my mailing run?"},{"title":"Onboarding form quality gate","prompt":"Our new user typed 'ZZ99 3CZ' as their postcode — is that a real, active UK postcode or should we flag it for manual review?"}],"resultDescription":"A JSON object containing the input postcode, its normalized form (no spaces, uppercase), a boolean indicating whether it is active, whether the format is valid, and the postcode type (e.g. 'active').","failureModes":["Missing or empty postcode field returns a validation error","Non-UK postcode formats (e.g. US ZIP codes) will fail format validation","Postcodes that are correctly formatted but no longer in use will return active: false","Malformed JSON input may return a 400-level error","Payment failure via x402 protocol will block the request from being processed"],"whenToPreferThis":"Use this endpoint when you need to confirm that a UK postcode both has a valid format and is currently active — not just syntactically correct. Prefer this over a regex-only check when you need authoritative active/inactive status from a live data source. Ideal for form validation pipelines, address enrichment flows, or data quality gates on UK address data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:03.143Z","isFirstParty":false,"canonicalSlug":"uk-postcode-validate-b5ae134f"}