This API provides access to yearly statistical data managed by Satu Data Halmahera Utara.
GET /api/data-tahunan
cURL:
curl -X GET "https://satudata.halmaherautarakab.go.id/api/data-tahunan"
JavaScript Fetch:
fetch("https://satudata.halmaherautarakab.go.id/api/data-tahunan")
.then(res => res.json())
.then(data => console.log(data));
GET /api/data-tahunan/filter?organization_slug={slug}&year={year}
cURL:
curl -X GET "https://satudata.halmaherautarakab.go.id/api/data-tahunan/filter?organization_slug=dinas-sosial&year=2023"
JavaScript Fetch:
fetch("https://satudata.halmaherautarakab.go.id/api/data-tahunan/filter?organization_slug=dinas-sosial&year=2023")
.then(res => res.json())
.then(data => console.log(data));
GET /api/data-tahunan/{id}
cURL:
curl -X GET "https://satudata.halmaherautarakab.go.id/api/data-tahunan/1"
JavaScript Fetch:
fetch("https://satudata.halmaherautarakab.go.id/api/data-tahunan/1")
.then(res => res.json())
.then(data => console.log(data));
The open data portal data.halmaherautarakab.go.id is powered by CKAN and provides APIs for accessing datasets.
GET /api/3/action/package_list
cURL:
curl -X GET "https://data.halmaherautarakab.go.id/api/3/action/package_list"
JavaScript Fetch:
fetch("https://data.halmaherautarakab.go.id/api/3/action/package_list")
.then(res => res.json())
.then(data => console.log(data));
GET /api/3/action/package_show?id={dataset_id}
cURL:
curl -X GET "https://data.halmaherautarakab.go.id/api/3/action/package_show?id=population-data"
JavaScript Fetch:
fetch("https://data.halmaherautarakab.go.id/api/3/action/package_show?id=population-data")
.then(res => res.json())
.then(data => console.log(data));
GET /api/3/action/resource_show?id={resource_id}
cURL:
curl -X GET "https://data.halmaherautarakab.go.id/api/3/action/resource_show?id=xxxx-xxxx-xxxx"
JavaScript Fetch:
fetch("https://data.halmaherautarakab.go.id/api/3/action/resource_show?id=xxxx-xxxx-xxxx")
.then(res => res.json())
.then(data => console.log(data));
GET /api/3/action/datastore_search?resource_id={resource_id}&limit=5
cURL:
curl -X GET "https://data.halmaherautarakab.go.id/api/3/action/datastore_search?resource_id=xxxx-xxxx-xxxx&limit=5"
JavaScript Fetch:
fetch("https://data.halmaherautarakab.go.id/api/3/action/datastore_search?resource_id=xxxx-xxxx-xxxx&limit=5")
.then(res => res.json())
.then(data => console.log(data));
Kawasan Pemerintahan, Nomor 1A
litbang@halmaherautarakab.go.id
-