{"uid":"cap_rOGjUJnbFdKUWG71ZDEoS","slug":"thaikit-thai-postcode-lookup-76d0b9d6","name":"ThaiKit Thai Postcode Lookup","description":"Look up a 5-digit Thai postcode: every subdistrict, district and province it covers, with official Thai and English names and government area codes. Unknown postcodes return 404 (not charged). Query: ?code=50140","url":"https://api.thaikit.dev/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":["code"],"properties":{"code":{"type":"string","pattern":"^\\d{5}$","description":"5-digit Thai postcode"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NwPhTiev9n-hFasRPD2rx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up all subdistricts, districts, and provinces covered by a 5-digit Thai postcode, with official Thai and English names and government area codes.","exampleAgentPrompt":"What province, district, and subdistricts does Thai postcode 50140 cover? I need the official Thai and English names.","exampleUseCases":[{"title":"Auto-fill Thai address form","prompt":"A user typed postcode 10330 into our checkout form — can you fill in the province, district, and subdistrict fields automatically with the official Thai and English names?"},{"title":"Validate Thai delivery address","prompt":"I have a Thai shipping address that uses postcode 20150 — look it up and confirm what district and province it belongs to so I can verify it's correct."},{"title":"Enrich Thai customer database","prompt":"We have a list of Thai customer records that only have postcodes like 40000 and 50200 — can you resolve each one to its official province and district names in both Thai and English?"}],"resultDescription":"A JSON response listing every subdistrict (tambon), district (amphoe), and province covered by the queried postcode, each with official Thai-script names, romanized English names, and government-assigned area codes. Returns HTTP 404 (not charged) for unrecognized postcodes.","failureModes":["404 Not Found — postcode does not exist in Thai postal system or is not yet in the database (not billed)","400 Bad Request — code parameter is not exactly 5 digits or contains non-numeric characters","Missing required query parameter 'code' — returns error without performing lookup","Network timeout or service unavailability — transient failure, retry recommended"],"whenToPreferThis":"Use this endpoint when you need to resolve a Thai 5-digit postcode to its full administrative hierarchy (subdistrict, district, province) with both Thai and English official names and government area codes. Ideal for address auto-completion, form validation, shipping logistics, and data enrichment for Thai addresses. Prefer this over generic geocoding APIs when you specifically have a Thai postcode and need structured administrative data rather than coordinates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T06:36:49.820Z","isFirstParty":false,"canonicalSlug":"thaikit-thai-postcode-lookup-76d0b9d6"}