Cara Penggunaan API
https://simdata.sultraprov.go.id/api/fetch-data/{kode_tabel}/{tahun}
Parameter
| Variabel | Tipe | Deskripsi |
|---|---|---|
| kode_tabel | String | Kode tabel yang ingin ditarik datanya. Kode tabel dapat juga dilihat pada URL saat mengakses halaman ini. |
| tahun | Number | Tahun data yang akan ditarik. |
Response
| Variabel | Tipe | Deskripsi |
|---|---|---|
| status | Number | Kode status respon, 2XX bila berhasil, 4XX bila ada kesalahan request pengguna, dan 5XX bila ada kesalahan server. |
| message | String | Catatan terkait respon dari server. Field ini bisa saja kosong. |
| count | Number | Jumlah baris data yang berhasil didapatkan. |
| idkab | Number | Kode wilayah data yang didapatkan. |
| tahun | Number | Tahun data yang didapatkan. |
| data | Object | Data respon |
| Kota / Kabupaten | ||
| Aktif | ||
| Tidak Aktif | ||
| Total | ||
Success Response
{
"status": 200,
"message": "Success",
"count": 18,
"idkab": 7400,
"tahun": 2025,
"data": [
{
"tabel_74_612_2": "KAB. BUTON",
"tabel_74_612_3": "8",
"tabel_74_612_4": "0",
"tabel_74_612_5": "8",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. MUNA",
"tabel_74_612_3": "7",
"tabel_74_612_4": "1",
"tabel_74_612_5": "8",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. KONAWE",
"tabel_74_612_3": "18",
"tabel_74_612_4": "6",
"tabel_74_612_5": "24",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. KOLAKA",
"tabel_74_612_3": "12",
"tabel_74_612_4": "8",
"tabel_74_612_5": "20",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. BOMBANA",
"tabel_74_612_3": "5",
"tabel_74_612_4": "3",
"tabel_74_612_5": "8",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. KOLAKA UTARA",
"tabel_74_612_3": "11",
"tabel_74_612_4": "22",
"tabel_74_612_5": "33",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. KONAWE SELATAN",
"tabel_74_612_3": "13",
"tabel_74_612_4": "2",
"tabel_74_612_5": "15",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. WAKATOBI",
"tabel_74_612_3": "2",
"tabel_74_612_4": "2",
"tabel_74_612_5": "4",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. KONAWE UTARA",
"tabel_74_612_3": "50",
"tabel_74_612_4": "1",
"tabel_74_612_5": "51",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. BUTON UTARA",
"tabel_74_612_3": "2",
"tabel_74_612_4": "1",
"tabel_74_612_5": "3",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. BUTON SELATAN",
"tabel_74_612_3": "1",
"tabel_74_612_4": "0",
"tabel_74_612_5": "1",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. BUTON TENGAH",
"tabel_74_612_3": "1",
"tabel_74_612_4": "0",
"tabel_74_612_5": "1",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. KOLAKA TIMUR",
"tabel_74_612_3": "2",
"tabel_74_612_4": "2",
"tabel_74_612_5": "4",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. KONAWE KEPULAUAN",
"tabel_74_612_3": "2",
"tabel_74_612_4": "1",
"tabel_74_612_5": "3",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KAB. MUNA BARAT",
"tabel_74_612_3": "4",
"tabel_74_612_4": "0",
"tabel_74_612_5": "4",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KOTA KENDARI",
"tabel_74_612_3": "52",
"tabel_74_612_4": "4",
"tabel_74_612_5": "56",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "KOTA BAU BAU",
"tabel_74_612_3": "12",
"tabel_74_612_4": "0",
"tabel_74_612_5": "12",
"updated_at": "2025-07-14 05:01:23"
},
{
"tabel_74_612_2": "Total",
"tabel_74_612_3": "202",
"tabel_74_612_4": "53",
"tabel_74_612_5": "255",
"updated_at": "2025-07-14 05:01:23"
}
]}
Error Response
{
"status": 404,
"message": "Table not found",
"count": 0,
"data": []
}