Kawasan Pemerintahan, Nomor 1A litbang@halmaherautarakab.go.id

📊 Data Tahunan API

This API provides access to yearly statistical data managed by Satu Data Halmahera Utara.

🔹 Endpoints
1. Get All Data
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));
2. Filter by Organization & Year
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));
3. Get Data by ID
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));

🌐 CKAN API

The open data portal data.halmaherautarakab.go.id is powered by CKAN and provides APIs for accessing datasets.

🔹 Endpoints
1. List All 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));
2. Get Dataset Details
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));
3. Get Resource Details
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));
4. Query Resource 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));

Kontak

Kawasan Pemerintahan, Nomor 1A

litbang@halmaherautarakab.go.id

-