Skip to content

Villages API ​

The Villages API provides access to all 83,762 Indonesian villages (kelurahan/desa) with their postal codes and administrative relationships.

Endpoints ​

List Villages ​

http
GET /nusa/villages

Returns a paginated list of all villages.

Query Parameters ​

ParameterTypeDescription
pageintegerPage number (default: 1)
per-pageintegerItems per page (default: 15, max: 100)
searchstringSearch by name or code
codes[]arrayFilter by specific village codes

Example Request ​

bash
curl "https://your-app.com/nusa/villages?search=medono&per-page=10"

Get Village ​

http
GET /nusa/villages/{code}

Returns a specific village by its code.

Path Parameters ​

ParameterTypeDescription
codestring10-digit village code

Example Request ​

bash
curl "https://your-app.com/nusa/villages/3375011002"

Data Attributes ​

Village Object ​

AttributeTypeDescription
codestring10-digit village code
district_codestringParent district code
regency_codestringParent regency code
province_codestringParent province code
namestringVillage name in Indonesian
postal_codestring5-digit postal code

Released under the MIT License.