List of Province (Provinsi), City (Kabupaten/Kota), Administrative Area 3 (Kecamatan) and Administrative Area 4 (Gampong/Desa/Kelurahan) in Indonesia
Method: GET
Path: /areas.json
Example: https://rukandax.github.io/indonesia-administrative-area/areas.json
Method: GET
Path: /{provinceId}/areas.json
Example: https://rukandax.github.io/indonesia-administrative-area/1/areas.json
Method: GET
Path: /{provinceId}/{cityId}/areas.json
Example: https://rukandax.github.io/indonesia-administrative-area/1/1/areas.json
For Administrative Area 4, We also include postal code as alias
property
Method: GET
Path: /{provinceId}/{cityId}/{administrativeArea3Id}/areas.json
Example: https://rukandax.github.io/indonesia-administrative-area/1/1/1/areas.json
All of our data basically return the similar format
The Response
{
"areas": Object[]
}
The Area Object
{
"id": Number,
"name": String,
"alias": String (Optional)
}
Fetch
TODO: Example Code
Axios
TODO: Example Code
Curl
TODO: Example Code