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

Desa/Kelurahan (Village)
Get Desa/Kelurahan by Code

Get Village by Area Code

Fetches a village 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 /kelurahan/{code}

Route Params

code : string (required)

Area code of a village.

Responses

200 (success)

Example Request
GET https://api.wilayah-nusantara.id/kelurahan/1106040022
Example Response
{
  "code": "1106040022",
  "district": "1106040",
  "village": "ARUL BADAK"
}

404 (not found)

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

500 (server error)

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