# ThaiKit Thai Postcode Lookup

> ThaiKit Thai Postcode Lookup is a paid API for AI agents from api.thaikit.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Look up all subdistricts, districts, and provinces covered by a 5-digit Thai postcode, with official Thai and English names and government area codes.

## Facts

- Endpoint: GET https://api.thaikit.dev/postcode?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/thaikit-thai-postcode-lookup-76d0b9d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rOGjUJnbFdKUWG71ZDEoS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability thaikit-thai-postcode-lookup-76d0b9d6
```

Example prompt: What province, district, and subdistricts does Thai postcode 50140 cover? I need the official Thai and English names.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/thaikit-thai-postcode-lookup-76d0b9d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.thaikit.dev](https://www.zero.xyz/host/api.thaikit.dev/llms.txt)
