# Hospital Directory



The national hospital register kept by Kemenkes: every hospital in Indonesia, and one hospital's fuller record with its bed inventory.



## Hospital List

Every hospital in Indonesia — all 3,312 of them — with class, kind, ownership, and place, sliceable by name, province, and regency.

- Method: `GET`
- Path: `/v1/facilities/hospitals`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | optional | Keep only hospitals whose name, address, or regency contains this. |
| `province` | string | optional | Keep only hospitals in a province, e.g. `DKI Jakarta`. |
| `regency` | string | optional | Keep only hospitals in a regency or city, e.g. `Kota Jakarta Pusat`. |
| `class` | string | optional | The register's class: `A`, `B`, `C`, `D`, `D PRATAMA`, or `Non Kelas`. |
| `type` | string | optional | The register's kind: `RSU`, `RSIA`, `RSK Jiwa`, `RSK THT-KL`, and the rest. |
| `ownership` | string | optional | The register's ownership: `Pemprop`, `Pemkot`, `TNI AD`, `SWASTA/LAINNYA`, and the rest. |
| `limit` | integer | optional | Hospitals to return, 1 to 1000. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/facilities/hospitals \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "total": 7,
    "items": [
      {
        "code": "3173532",
        "name": "RS Khusus THT Bedah KL Proklamasi",
        "province": "DKI Jakarta",
        "regency": "Kota Jakarta Pusat",
        "address": "Jl. Proklamasi No. 43",
        "phone": "021-3900002",
        "ownership": "SWASTA/LAINNYA",
        "class": "B",
        "type": "RSK THT-KL"
      },
      {
        "code": "3173073",
        "name": "RS Islam Jakarta Cempaka Putih",
        "province": "DKI Jakarta",
        "regency": "Kota Jakarta Pusat",
        "address": "Jl. Cempaka Putih Tengah I / 1",
        "phone": "021-4250451",
        "ownership": "Organisasi Islam",
        "class": "B",
        "type": "RSU"
      },
      {
        "code": "3173671",
        "name": "RS Gigi dan Mulut FKG Univ. Indonesia",
        "province": "DKI Jakarta",
        "regency": "Kota Jakarta Pusat",
        "address": "Jl. Salemba Raya No.4 Jakarta Pusat",
        "phone": "(021) 3916858",
        "ownership": "Kementerian Lain",
        "class": "A",
        "type": "RSK GM"
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T04:05:00.000Z",
    "age_seconds": 3600,
    "next_update_at": "2026-08-21T04:05:00.000Z"
  }
}
```

## Hospital Detail

One hospital's fuller record — address, director, land and building area, and the bed inventory by class — by the register's own code.

- Method: `GET`
- Path: `/v1/facilities/hospitals/{code}`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `code` | path segment | required | The register's own hospital code, six to eight digits — take it from the Hospital List. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/facilities/hospitals/%7Bcode%7D \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "code": "1111005",
    "name": "RS Umum Prima Inti Medika",
    "address": "Jl. Raya Bekasi KM 22 No. 22, Duren Sawit",
    "phone": "021-86908011",
    "type": "Rumah Sakit Umum",
    "class": "D",
    "blu_status": null,
    "ownership": "Perusahaan",
    "director": "dr. Mena Fitriana",
    "land_area_m2": 24960,
    "building_area_m2": 2080,
    "beds": [
      { "class": "VIP", "count": 2 },
      { "class": "Kelas I", "count": 10 },
      { "class": "Kelas II", "count": 12 },
      { "class": "Kelas III", "count": 38 },
      { "class": "NICU", "count": 6 },
      { "class": "Isolasi", "count": 7 }
    ],
    "total_beds": 75
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T04:05:00.000Z",
    "age_seconds": 3600,
    "next_update_at": "2026-08-21T04:05:00.000Z"
  }
}
```