### Example Village Data Response Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md This is an example of the JSON response structure when successfully fetching village data. ```json { "id": "1103011010", "district_id": "1103011", "name": "JAMBO DALEM" } ``` -------------------------------- ### Get List of Provinces Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves a list of all Indonesian provinces. Each province object contains an ID and a name. ```APIDOC ## GET /api/provinces.json ### Description Retrieves a list of all Indonesian provinces. ### Method GET ### Endpoint https://emsifa.github.io/api-wilayah-indonesia/api/provinces.json ### Response #### Success Response (200) - **id** (string) - The unique identifier for the province. - **name** (string) - The name of the province. ### Response Example ```json [ { "id": "11", "name": "ACEH" }, { "id": "12", "name": "SUMATERA UTARA" } ] ``` ``` -------------------------------- ### Get Regency Data by Regency ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves detailed data for a specific regency using its regency ID. ```APIDOC ## GET /api/regency/{regencyId}.json ### Description Retrieves detailed data for a specific regency using its regency ID. ### Method GET ### Endpoint https://emsifa.github.io/api-wilayah-indonesia/api/regency/{regencyId}.json ### Parameters #### Path Parameters - **regencyId** (string) - Required - The ID of the regency to retrieve. ### Response #### Success Response (200) - **id** (string) - The unique identifier for the regency. - **province_id** (string) - The ID of the province this regency belongs to. - **name** (string) - The name of the regency. ### Response Example ```json { "id": "1103", "province_id": "11", "name": "KABUPATEN ACEH SELATAN" } ``` ``` -------------------------------- ### Get List of Regencies by Province ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves a list of regencies (kab/kota) within a specific province, identified by its province ID. ```APIDOC ## GET /api/regencies/{provinceId}.json ### Description Retrieves a list of regencies (kab/kota) within a specific province. ### Method GET ### Endpoint https://emsifa.github.io/api-wilayah-indonesia/api/regencies/{provinceId}.json ### Parameters #### Path Parameters - **provinceId** (string) - Required - The ID of the province for which to retrieve regencies. ### Response #### Success Response (200) - **id** (string) - The unique identifier for the regency. - **province_id** (string) - The ID of the province this regency belongs to. - **name** (string) - The name of the regency. ### Response Example ```json [ { "id": "1101", "province_id": "11", "name": "KABUPATEN SIMEULUE" }, { "id": "1102", "province_id": "11", "name": "KABUPATEN ACEH SINGKIL" } ] ``` ``` -------------------------------- ### Get District Data by District ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves detailed data for a specific district using its district ID. ```APIDOC ## GET /api/district/{districtId}.json ### Description Retrieves detailed data for a specific district using its district ID. ### Method GET ### Endpoint https://emsifa.github.io/api-wilayah-indonesia/api/district/{districtId}.json ### Parameters #### Path Parameters - **districtId** (string) - Required - The ID of the district to retrieve. ### Response #### Success Response (200) - **id** (string) - The unique identifier for the district. - **regency_id** (string) - The ID of the regency this district belongs to. - **name** (string) - The name of the district. ### Response Example ```json { "id": "1103011", "regency_id": "1103", "name": "TRUMON TIMUR" } ``` ``` -------------------------------- ### Get List of Districts by Regency ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves a list of districts (kecamatan) within a specific regency, identified by its regency ID. ```APIDOC ## GET /api/districts/{regencyId}.json ### Description Retrieves a list of districts (kecamatan) within a specific regency. ### Method GET ### Endpoint https://emsifa.github.io/api-wilayah-indonesia/api/districts/{regencyId}.json ### Parameters #### Path Parameters - **regencyId** (string) - Required - The ID of the regency for which to retrieve districts. ### Response #### Success Response (200) - **id** (string) - The unique identifier for the district. - **regency_id** (string) - The ID of the regency this district belongs to. - **name** (string) - The name of the district. ### Response Example ```json [ { "id": "1103010", "regency_id": "1103", "name": "TRUMON" }, { "id": "1103011", "regency_id": "1103", "name": "TRUMON TIMUR" } ] ``` ``` -------------------------------- ### Get List of Regencies by Province ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieve a list of regencies (kab/kota) within a specific province. Requires the province ID as a parameter. Returns a JSON array of regency objects. ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/regencies/{provinceId}.json ``` ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/regencies/11.json ``` ```JSON [ { "id": "1101", "province_id": "11", "name": "KABUPATEN SIMEULUE" }, { "id": "1102", "province_id": "11", "name": "KABUPATEN ACEH SINGKIL" }, ... ] ``` -------------------------------- ### Get Province Data by Province ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves detailed data for a specific province using its province ID. ```APIDOC ## GET /api/province/{provinceId}.json ### Description Retrieves detailed data for a specific province using its province ID. ### Method GET ### Endpoint https://emsifa.github.io/api-wilayah-indonesia/api/province/{provinceId}.json ### Parameters #### Path Parameters - **provinceId** (string) - Required - The ID of the province to retrieve. ### Response #### Success Response (200) - **id** (string) - The unique identifier for the province. - **name** (string) - The name of the province. ### Response Example ```json { "id": "11", "name": "ACEH" } ``` ``` -------------------------------- ### Get Village Data by ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves detailed information about a specific kelurahan (village) using its unique ID. ```APIDOC ## GET /api/village/{villageId}.json ### Description Retrieves detailed information about a specific kelurahan (village) using its unique ID. ### Method GET ### Endpoint /api/village/{villageId}.json ### Parameters #### Path Parameters - **villageId** (string) - Required - The unique identifier for the village. ### Request Example ``` GET https://emsifa.github.io/api-wilayah-indonesia/api/village/1103011010.json ``` ### Response #### Success Response (200) - **id** (string) - The village ID. - **district_id** (string) - The ID of the district the village belongs to. - **name** (string) - The name of the village. #### Response Example ```json { "id": "1103011010", "district_id": "1103011", "name": "JAMBO DALEM" } ``` ``` -------------------------------- ### Get List of Districts by Regency ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieve a list of districts (kecamatan) within a specific regency. Requires the regency ID as a parameter. Returns a JSON array of district objects. ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/districts/{regencyId}.json ``` ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/districts/1103.json ``` ```JSON [ { "id": "1103010", "regency_id": "1103", "name": "TRUMON" }, { "id": "1103011", "regency_id": "1103", "name": "TRUMON TIMUR" }, ... ] ``` -------------------------------- ### Get Village Data by ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Use this endpoint to retrieve specific village data by providing the village ID. Ensure you use the correct ID format. ```http GET https://emsifa.github.io/api-wilayah-indonesia/api/village/{villageId}.json ``` ```http GET https://emsifa.github.io/api-wilayah-indonesia/api/village/1103011010.json ``` -------------------------------- ### Get List of Provinces Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieve a list of all Indonesian provinces. This endpoint returns a JSON array of province objects, each with an ID and name. ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/provinces.json ``` ```JSON [ { "id": "11", "name": "ACEH" }, { "id": "12", "name": "SUMATERA UTARA" }, ... ] ``` -------------------------------- ### Get List of Villages by District ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieves a list of villages (kelurahan/desa) within a specific district, identified by its district ID. ```APIDOC ## GET /api/villages/{districtId}.json ### Description Retrieves a list of villages (kelurahan/desa) within a specific district. ### Method GET ### Endpoint https://emsifa.github.io/api-wilayah-indonesia/api/villages/{districtId}.json ### Parameters #### Path Parameters - **districtId** (string) - Required - The ID of the district for which to retrieve villages. ### Response #### Success Response (200) - **id** (string) - The unique identifier for the village. - **district_id** (string) - The ID of the district this village belongs to. - **name** (string) - The name of the village. ### Response Example ```json [ { "id": "1103010001", "district_id": "1103010", "name": "KUTA PADANG" }, { "id": "1103010002", "district_id": "1103010", "name": "RAKET" } ] ``` ``` -------------------------------- ### Get District Data by District ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieve detailed data for a specific district using its ID. Requires the district ID. Returns a single JSON object representing the district. ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/district/{districtId}.json ``` ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/district/1103011.json ``` ```JSON { "id": "1103011", "regency_id": "1103", "name": "TRUMON TIMUR" } ``` -------------------------------- ### Get Regency Data by Regency ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieve detailed data for a specific regency using its ID. Requires the regency ID. Returns a single JSON object representing the regency. ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/regency/{regencyId}.json ``` ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/regency/1103.json ``` ```JSON { "id": "1103", "province_id": "11", "name": "KABUPATEN ACEH SELATAN" } ``` -------------------------------- ### Get Province Data by Province ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieve detailed data for a specific province using its ID. Returns a single JSON object representing the province. ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/province/{provinceId}.json ``` ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/province/11.json ``` ```JSON { "id": "11", "name": "ACEH" } ``` -------------------------------- ### Get List of Villages by District ID Source: https://github.com/emsifa/api-wilayah-indonesia/blob/master/README.md Retrieve a list of villages (kelurahan/desa) within a specific district. Requires the district ID as a parameter. Returns a JSON array of village objects. ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/villages/{districtId}.json ``` ```HTTP GET https://emsifa.github.io/api-wilayah-indonesia/api/villages/1103010.json ``` ```JSON [ { "id": "1103010001", "district_id": "1103010", "name": "KUTA PADANG" }, { "id": "1103010002", "district_id": "1103010", "name": "RAKET" }, ... ] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.