Hospitals All docs

Indonesia Hospitals API Reference

2 routes under /v1/id/hospitals. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request.

GET/v1/id/hospitals

List hospitals with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
qquerystring2 to 100 chars
province_idquerystringNone
regency_idquerystringNone
GET/v1/id/hospitals
curl 'https://api.apifor.dev/v1/id/hospitals' \
  -G -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "rs-0000001",
      "name": "RSUD KOYA",
      "type": "RSUM",
      "class": null,
      "ownership": null,
      "is_blu": 0,
      "province_id": null,
      "regency_id": null,
      "address": "JALAN DELI NO. 4 TANJUNG PRIOK JAKARTA 14220",
      "postal_code": null,
      "lat": -6.108679,
      "lng": 106.899865,
      "website": null,
      "beds_total": 0,
      "icu_beds": null,
      "doctors_gp": null,
      "doctors_spec": null,
      "is_active": 1,
      "created_at": "2026-07-01 10:49:01",
      "updated_at": "2026-09-18 16:11:12",
      "code": "0000001",
      "hospital_type": "RS_RUJUKAN_PROVINSI",
      "blu_status": null,
      "land_area": null,
      "building_area": null,
      "source_region_name": "JAKARTA UTARA",
      "source_province_name": "DKI JAKARTA",
      "source_name": "Pusdatin Kemenkes export via zakiego/data-pusdatin-kemenkes",
      "source_url": "https://github.com/zakiego/data-pusdatin-kemenkes",
      "source_updated_at": null,
      "synced_at": "2026-09-18T12:58:22.407Z",
      "provenance": "{\"source_record_code\":\"0000001\",\"imported_from\":\"rumah-sakit.json\",\"source_fields\":[\"alamat\",\"kode_rs\",\"lokasi.lat\",\"lokasi.lon\",\"nama\",\"telepon\",\"tempat_tidur\",\"tipe\",\"wilayah\"]}"
    }
  ]
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/id/hospitals/{id}

Find indonesia hospitals by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/id/hospitals/{id}
curl 'https://api.apifor.dev/v1/id/hospitals/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "id": "rs-0000001",
    "name": "RSUD KOYA",
    "type": "RSUM",
    "class": null,
    "ownership": null,
    "is_blu": 0,
    "province_id": null,
    "regency_id": null,
    "address": "JALAN DELI NO. 4 TANJUNG PRIOK JAKARTA 14220",
    "postal_code": null,
    "lat": -6.108679,
    "lng": 106.899865,
    "website": null,
    "beds_total": 0,
    "icu_beds": null,
    "doctors_gp": null,
    "doctors_spec": null,
    "is_active": 1,
    "created_at": "2026-07-01 10:49:01",
    "updated_at": "2026-09-18 16:11:12",
    "code": "0000001",
    "hospital_type": "RS_RUJUKAN_PROVINSI",
    "blu_status": null,
    "land_area": null,
    "building_area": null,
    "source_region_name": "JAKARTA UTARA",
    "source_province_name": "DKI JAKARTA",
    "source_name": "Pusdatin Kemenkes export via zakiego/data-pusdatin-kemenkes",
    "source_url": "https://github.com/zakiego/data-pusdatin-kemenkes",
    "source_updated_at": null,
    "synced_at": "2026-09-18T12:58:22.407Z",
    "provenance": "{\"source_record_code\":\"0000001\",\"imported_from\":\"rumah-sakit.json\",\"source_fields\":[\"alamat\",\"kode_rs\",\"lokasi.lat\",\"lokasi.lon\",\"nama\",\"telepon\",\"tempat_tidur\",\"tipe\",\"wilayah\"]}"
  }
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences