PASAR API

🇹🇭 Thailand Geography JSON ~ provinces, districts & postcodes

← directory
thailand-geography-data (open source)Maps & locationtier: openauth: no authpricing: freeverified 2026-06-29

Maintained open dataset of all 77 provinces, 928 districts, 7,436 subdistricts and postal codes as bilingual (Thai/English) JSON served over the jsDelivr CDN, no key. TH-first.

View docs ↗ More Maps & location APIs All Thailand APIs

Call it

curl --fail-with-body --location --max-time 30 'https://cdn.jsdelivr.net/gh/thailand-geography-data/thailand-geography-json@1/src/geography.json'

AI prompt

I'm building an app using a public Thailand API (no private credentials needed).

API: Thailand Geography JSON ~ provinces, districts & postcodes
Provider: thailand-geography-data (open source)
Endpoint: GET https://cdn.jsdelivr.net/gh/thailand-geography-data/thailand-geography-json@1/src/geography.json
Response format: JSON

Source: thailand-geography-data (open source) (https://github.com/thailand-geography-data/thailand-geography-json)
Source type: Curated source
Endpoint type: Provider API base URL
Integration difficulty: Copy-paste ready
Last checked: 2026-06-29
Production caveat: The complete 2.9 MB JSON download parsed successfully on follow-up. The earlier partial-response warning came from the audit download limit; data completeness and administrative currency remain separate checks.

Help me fetch and display this data. Follow the documented format and handle errors, empty responses, stale coverage, caching and rate limits.

Related Maps & location APIs

OneMap ~ Singapore's official map: geocoding, routing & themesMapbox Geocoding API ~ forward/reverse geocodingGoogle Maps PlatformHERE Location ServicesRadar Maps PlatformNominatim (OpenStreetMap)Malaysia PostcodesTomTom Maps & RoutingAzure MapsFoursquare Places API