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_615_2": "KAB. BUTON",
"tabel_74_615_3": "62",
"tabel_74_615_4": "35",
"tabel_74_615_5": "97",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. MUNA",
"tabel_74_615_3": "93",
"tabel_74_615_4": "21",
"tabel_74_615_5": "114",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. KONAWE",
"tabel_74_615_3": "41",
"tabel_74_615_4": "86",
"tabel_74_615_5": "127",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. KOLAKA",
"tabel_74_615_3": "34",
"tabel_74_615_4": "87",
"tabel_74_615_5": "121",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. BOMBANA",
"tabel_74_615_3": "44",
"tabel_74_615_4": "68",
"tabel_74_615_5": "112",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. KOLAKA UTARA",
"tabel_74_615_3": "14",
"tabel_74_615_4": "17",
"tabel_74_615_5": "31",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. KONAWE SELATAN",
"tabel_74_615_3": "126",
"tabel_74_615_4": "156",
"tabel_74_615_5": "282",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. WAKATOBI",
"tabel_74_615_3": "24",
"tabel_74_615_4": "39",
"tabel_74_615_5": "63",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. KONAWE UTARA",
"tabel_74_615_3": "127",
"tabel_74_615_4": "112",
"tabel_74_615_5": "239",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. BUTON UTARA",
"tabel_74_615_3": "16",
"tabel_74_615_4": "49",
"tabel_74_615_5": "65",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. BUTON SELATAN",
"tabel_74_615_3": "14",
"tabel_74_615_4": "41",
"tabel_74_615_5": "55",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. BUTON TENGAH",
"tabel_74_615_3": "15",
"tabel_74_615_4": "20",
"tabel_74_615_5": "35",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. KOLAKA TIMUR",
"tabel_74_615_3": "23",
"tabel_74_615_4": "38",
"tabel_74_615_5": "61",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. KONAWE KEPULAUAN",
"tabel_74_615_3": "9",
"tabel_74_615_4": "20",
"tabel_74_615_5": "29",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KAB. MUNA BARAT",
"tabel_74_615_3": "57",
"tabel_74_615_4": "29",
"tabel_74_615_5": "86",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KOTA KENDARI",
"tabel_74_615_3": "85",
"tabel_74_615_4": "23",
"tabel_74_615_5": "108",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "KOTA BAU BAU",
"tabel_74_615_3": "32",
"tabel_74_615_4": "9",
"tabel_74_615_5": "41",
"updated_at": "2025-07-14 06:16:45"
},
{
"tabel_74_615_2": "TOTAL",
"tabel_74_615_3": "816",
"tabel_74_615_4": "850",
"tabel_74_615_5": "1666",
"updated_at": "2025-07-14 06:16:45"
}
]}
Error Response
{
"status": 404,
"message": "Table not found",
"count": 0,
"data": []
}