ThaiAddress API

REST API for Thai provinces, districts, sub-districts & postal codes. 7,452 locations, 1ms edge response.

Get free API key

API live: thaiaddress-api.e6110fc7-2409-46ba-b49c-c21be6154f01.workers.dev

Endpoints

GET/v1/provinces
List all 77 provinces

GET/v1/districts?province_id=1
Districts in a province (or by ?province=Bangkok)

GET/v1/subdistricts?district_id=1001
Sub-districts in a district

GET/v1/lookup?zipcode=10200
Find locations by postal code

GET/v1/search?q=Bangkok
Search by Thai/English name

POST/v1/parse
Parse free-form Thai address string

Example

curl "https://api.thaiaddress.dev/v1/lookup?zipcode=10200&key=YOUR_KEY"
{
  "data": [{
    "id": 100101,
    "zip_code": 10200,
    "sub_district": "Phra Borom Maha Ratchawang",
    "district": "Khet Phra Nakhon",
    "province": "Bangkok"
  }],
  "count": 1,
  "_usage": { "used": 1, "quota": 100, "plan": "free" }
}

Pricing

Free

$0/forever
  • 100 requests / day
  • All endpoints
  • No credit card

Pro

$9/month
  • 50,000 requests / day
  • Priority support
  • Cancel anytime

Enterprise

Custom
  • Unlimited requests
  • SLA & support
  • Custom datasets