⚠️ Due to financial issues, our free hosted API at https://api.wilayah-nusantara.id has been shut down. ⚠️

Kabupaten/Kota (Regency)
Get Kabupaten/Kota by Code

Get Regency by Area Code

Fetches a regency based on its area code.

Endpoint

Base URL
https://api.wilayah-nusantara.id
 
or, if running on local
 
http://localhost:1945
Method and Endpoint
GET /kabupaten/{code}

Route Params

code : string (required)

Area code of a regency.

Responses

200 (success)

Example Request
GET https://api.wilayah-nusantara.id/kabupaten/3602
Example Response
{
  "code": "3602",
  "province": "36",
  "regency": "KABUPATEN LEBAK"
}

404 (not found)

Example Response
{
  "statusCode": 404,
  "message": "regency not found"
}

500 (server error)

Example Response
{
  "statusCode": 500,
  "message": "Internal server error"
}