API Reference: Thai Address API
[ Base URL: https://thaiaddressapi-thaikub.herokuapp.com/ ]This Thai Address API is organized around RESTExample
เลือกจังหวัด
เลือกเขต / อำเภอ
Rate Limiting
this API currently places a limit of 60 requests per minute.On each request, your current rate limit status is returned in the response headers:
X-RateLimit-Limit : 60
X-RateLimit-Remaining : 59
X-RateLimit-Remaining : 59
All Province in Thailand
แสดงข้อมูลรายชื่อจังหวัดในประเทศไทย
Paramters
page
query
| default: 1
Page of data return
limit
query
| default: 100
| max: 100
limit data per page
Returns
All province name in thailand
Endpoints
GET
/v1/thailand/provinces
Response
{ "error": null, "message": null, "data": [ "กรุงเทพ", "กระบี่", "..." ] }
All District in Thailand
แสดงข้อมูลรายชื่อเขต(อำเภอ)ในประเทศไทย
Paramters
page
query
| default: 1
Page of data return
limit
query
| default: 10
| max: 20
limit data per page
Returns
All district name in thailand
Endpoints
GET
/v1/thailand/provinces/district
Response
{ "error": null, "message": null, "data": [ "กกดู่", "กกทอง", "..." ] }
All District,Subdistrict of province in Thailand
แสดงข้อมูลรายชื่อเขต(อำเภอ),แขวง(ตำบล)ในจังหวัดในประเทศไทย
Paramters
provincename
path
province name in thai language
page
query
| default: 1
Page of data return
limit
query
| default: 10
| max: 20
limit data per page
Returns
All district,Subdistrict name of provinces in thailand
Endpoints
GET
/v1/thailand/provinces/:provincename
Response
{ "error": null, "message": null, "data": [ { "subdistrict": [ "สมเด็จเจ้าพระยา", "คลองสาน", "บางลำภูล่าง", "คลองต้นไทร" ], "district": "คลองสาน" }, { "subdistrict": [ "ทรายกองดิน", "สามวาตะวันตก", "สามวาตะวันออก", "ทรายกองดินใต้", "บางชัน" ], "district": "คลองสามวา" }, { "subdistrict": [ "คลองเตย", "พระโขนง", "คลองตัน" ], "district": "คลองเตย" }, { "subdistrict": [ "รามอินทรา", "คันนายาว" ], "district": "คันนายาว" }, "..." ] }
All District of province in Thailand
แสดงข้อมูลรายชื่อเขต(อำเภอ)ในจังหวัดในประเทศไทย
Paramters
provincename
path
province name in thai language
Returns
All district name of provinces in thailand
Endpoints
GET
/v1/thailand/provinces/:provincename/district
Response
{ "error": null, "message": null, "data": [ "คลองสาน", "คลองสามวา", "คลองเตย", "คันนายาว", "จตุจักร", "..." ] }
All Subdistrict of District of province in Thailand
แสดงข้อมูลรายชื่อแขวง(ตำบล)ในจังหวัดในประเทศไทย
Paramters
provincename
path
province name in thai language
districtname
path
district name in thai language
Returns
All subdistrict name of district of provinces in thailand
Endpoints
GET
/v1/thailand/provinces/:provincename/district/:districtname
Response
{ "error": null, "message": null, "data": [ "คลองต้นไทร", "คลองสาน", "บางลำภูล่าง", "สมเด็จเจ้าพระยา", "..." ] }