Developer / Referensi
Star hotel room occupancy rate (TPK) per province
GET /v1/tourism/hotel-occupancy
Isi referensi
TPK (Tingkat Penghunian Kamar) for star hotels, annual per province. Default returns the latest-year cross-section sorted descending; ?province=NN returns multi-year history for one province; ?year=YYYY pins the cross-section year. Source: BPS Survei Hotel Bulanan (VHTS) annual aggregate.
Deskripsi endpoint berasal dari spesifikasi dan masih berbahasa Inggris.
Parameter
| Parameter | Lokasi | Tipe | Aturan |
|---|---|---|---|
| province | query | string | Opsional |
| year | query | integer | Opsional |
| from | query | string (date) | Opsional |
| to | query | string (date) | Opsional |
Hak redistribusi mengikuti lisensi seri. Data tampilan saja tidak tersedia sebagai baris mentah.
Respons
| Kode | Keterangan |
|---|---|
| 200 | Cross-section (all provinces, one year) or province history |
| 400 | Invalid request parameters |
| 401 | Missing or invalid API key |
| 429 | Quota exceeded; retry after the window resets |
Dibangkitkan dari openapi.yaml, spesifikasi yang sama dengan /v1/openapi.yaml.
Permintaan / contoh
curl -H "x-api-key: $SUMBER_KEY" \
"https://api.sumber.io/v1/tourism/hotel-occupancy"