Rumah Sakit
Data rumah sakit Indonesia dari SIRS.
Base URL
https://use.api.co.id
Semua endpoint ada di bawah path /hospitals/indonesia dan dipanggil dengan header x-api-co-id. Filter dikirim sebagai query parameter. Response berisi detail rumah sakit, termasuk fasilitas, rincian tempat tidur, layanan, dan tenaga kerja.
Struktur data
| Kelompok | Isi |
|---|---|
| Informasi dasar | Kode, nama, alamat, telepon |
| Klasifikasi | type, class, blu_status, ownership |
| Fasilitas | land_area, building_area, total_beds |
| Rincian tempat tidur | class_i, class_ii, class_iii, hcu, perinatology, icu_with_ventilator |
| Layanan | Jumlah dan daftar layanan |
| SDM | Total staf, general_practitioner, basic_specialist, other_specialist |
| Lokasi | Kode provinsi dan kabupaten/kota |
| Lainnya | Timestamp pengambilan data (scraped) |
Filter
| Parameter | Fungsi |
|---|---|
code | Filter berdasarkan kode rumah sakit |
name | Cari nama rumah sakit (sebagian, tidak case-sensitive) |
type | Filter berdasarkan jenis rumah sakit |
class | Filter berdasarkan kelas (A, B, C, D) |
blu_status | Filter berdasarkan status BLU |
ownership | Filter berdasarkan jenis kepemilikan |
province_code | Filter berdasarkan kode provinsi |
regency_code | Filter berdasarkan kode kabupaten/kota |
page | Nomor halaman (default: 1) |
size | Ukuran halaman (default: 100, maks: 100) |
Metadata
Daftar nilai yang tersedia untuk filter bisa diambil dari endpoint metadata: /hospitals/indonesia/types, /hospitals/indonesia/classes, /hospitals/indonesia/ownership, dan /hospitals/indonesia/blu-status.
Postman Collection
Hospitals
List All Hospitals
Get all hospitals with pagination. Returns up to 100 hospitals per page.
### Query Parameters
- page (optional): Page number (default: 1)
- size (optional): Page size (default: 100, max: 100)
- code (optional): Filter by hospital code
- name (optional): Search by hospital name (case-insensitive partial match)
- type (optional): Filter by hospital type
- class (optional): Filter by hospital class
- blu_status (optional): Filter by BLU status
- ownership (optional): Filter by ownership type
- province_code (optional): Filter by province code
- regency_code (optional): Filter by regency code
### Examples
``bash # Get first page GET /hospitals/indonesia/?page=1&size=100
# Search by name GET /hospitals/indonesia/?name=RSUD
# Filter by type GET /hospitals/indonesia/?type=Rumah Sakit Umum
# Filter by class GET /hospitals/indonesia/?class=A
| Nama | Tipe | Keterangan |
|---|---|---|
pageOpsional | integer | Page number (default 1) Contoh: 1 |
sizeOpsional | integer | Page size (default 100, max 100) Contoh: 100 |
codeOpsional | string | Filter by hospital code |
nameOpsional | string | Search by hospital name (case-insensitive partial match) Contoh: RSUD |
typeOpsional | string | Filter by hospital type Contoh: Rumah Sakit Umum |
classOpsional | string | Filter by hospital class (A, B, C, D) Nilai: ABCDContoh: A |
blu_statusOpsional | string | Filter by BLU status Contoh: BLUD |
ownershipOpsional | string | Filter by ownership type Contoh: Pemkab |
province_codeOpsional | string | Filter by province code (2 digits) Contoh: 11 |
regency_codeOpsional | string | Filter by regency code (4 digits) Contoh: 1113 |
| Nama | Tipe | Keterangan |
|---|---|---|
is_successOpsional | boolean | Indicates if the request was successful Contoh: true |
messageOpsional | string | Response message Contoh: Success |
dataOpsional | object[] | |
data[].codeOpsional | string | Hospital code from SIRS Contoh: 1113012 |
data[].nameOpsional | string | Hospital name Contoh: RS Umum Muhammad Ali Kasim |
data[].addressOpsional | string | Hospital address Contoh: Jalan Pangur |
data[].phoneOpsional | string | Hospital phone number Contoh: null |
data[].typeOpsional | string | Hospital type Contoh: Rumah Sakit Umum |
data[].classOpsional | string | Hospital class (A, B, C, D) Contoh: C |
data[].blu_statusOpsional | string | BLU status Contoh: BLUD |
data[].ownershipOpsional | string | Ownership type Contoh: Pemkab |
data[].directorOpsional | string | Hospital director name Contoh: dr. SRI AGUSTI, M.Ked.,Sp.KJ |
data[].facilitiesOpsional | object | |
data[].facilities.land_areaOpsional | string | Land area Contoh: 99.652 M2 |
data[].facilities.building_areaOpsional | string | Building area Contoh: - |
data[].facilities.total_bedsOpsional | integer | Total number of beds Contoh: 126 |
data[].bedsOpsional | object | |
data[].beds.class_iOpsional | integer | Number of class I beds Contoh: 14 |
data[].beds.class_iiOpsional | integer | Number of class II beds Contoh: 12 |
data[].beds.class_iiiOpsional | integer | Number of class III beds Contoh: 68 |
data[].beds.hcuOpsional | integer | Number of HCU beds Contoh: 4 |
data[].beds.perinatologyOpsional | integer | Number of perinatology beds Contoh: 20 |
data[].beds.icu_with_ventilatorOpsional | integer | Number of ICU beds with ventilator Contoh: 8 |
data[].servicesOpsional | object | |
data[].services.countOpsional | integer | Number of services Contoh: 10 |
data[].services.listOpsional | string[] | List of services Contoh: ["Pelayanan medik dasar / umum","Pelayanan medik gigi mulut","Pelayanan KIA/KB"] |
data[].staffOpsional | object | |
data[].staff.totalOpsional | integer | Total staff count Contoh: 56 |
data[].staff.general_practitionerOpsional | number | Number of general practitioners Contoh: 38 |
data[].staff.basic_specialistOpsional | number | Number of basic specialists Contoh: 11 |
data[].staff.other_specialistOpsional | number | Number of other specialists Contoh: 7 |
data[].province_codeOpsional | string | Province code Contoh: 11 |
data[].regency_codeOpsional | string | Regency code Contoh: 1113 |
data[].scraped_atOpsional | string | Timestamp when data was scraped Contoh: 2026-01-25T14:26:04.857537 |
pagingOpsional | object | |
paging.pageOpsional | integer | Current page number Contoh: 1 |
paging.sizeOpsional | integer | Page size Contoh: 100 |
paging.total_itemOpsional | integer | Total number of items Contoh: 3291 |
paging.total_pageOpsional | integer | Total number of pages Contoh: 33 |
curl -X GET "https://use.api.co.id/hospitals/indonesia/" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": [ { "code": "1113012", "name": "RS Umum Muhammad Ali Kasim", "address": "Jalan Pangur", "phone": null, "type": "Rumah Sakit Umum", "class": "C", "blu_status": "BLUD", "ownership": "Pemkab", "director": "dr. SRI AGUSTI, M.Ked.,Sp.KJ", "facilities": { "land_area": "99.652 M2", "building_area": "-", "total_beds": 126 }, "beds": { "class_i": 14, "class_ii": 12, "class_iii": 68, "hcu": 4, "perinatology": 20, "icu_with_ventilator": 8 }, "services": { "count": 10, "list": [ "Pelayanan medik dasar / umum", "Pelayanan medik gigi mulut", "Pelayanan KIA/KB", "Pelayanan Gawat Darurat Umum 24 jam & 7 hari seminggu", "Penyakit dalam", "Kesehatan anak", "Bedah", "Obstetri dan ginekologi", "Anestesi", "Radiologi" ] }, "staff": { "total": 56, "general_practitioner": 38, "basic_specialist": 11, "other_specialist": 7 }, "province_code": "11", "regency_code": "1113", "scraped_at": "2026-01-25T14:26:04.857537" } ], "paging": { "page": 1, "size": 100, "total_item": 3291, "total_page": 33 }}Get Hospital by Code
Get detailed information about a specific hospital by its code.
### Path Parameters
- code (required): Hospital code from SIRS
### Example
``bash GET /hospitals/indonesia/1113012
| Nama | Tipe | Keterangan |
|---|---|---|
codeWajib | string | Hospital code from SIRS Contoh: 1113012 |
| Nama | Tipe | Keterangan |
|---|---|---|
is_successOpsional | boolean | Indicates if the request was successful Contoh: true |
messageOpsional | string | Response message Contoh: Success |
dataOpsional | object | |
data.codeOpsional | string | Hospital code from SIRS Contoh: 1113012 |
data.nameOpsional | string | Hospital name Contoh: RS Umum Muhammad Ali Kasim |
data.addressOpsional | string | Hospital address Contoh: Jalan Pangur |
data.phoneOpsional | string | Hospital phone number Contoh: null |
data.typeOpsional | string | Hospital type Contoh: Rumah Sakit Umum |
data.classOpsional | string | Hospital class (A, B, C, D) Contoh: C |
data.blu_statusOpsional | string | BLU status Contoh: BLUD |
data.ownershipOpsional | string | Ownership type Contoh: Pemkab |
data.directorOpsional | string | Hospital director name Contoh: dr. SRI AGUSTI, M.Ked.,Sp.KJ |
data.facilitiesOpsional | object | |
data.facilities.land_areaOpsional | string | Land area Contoh: 99.652 M2 |
data.facilities.building_areaOpsional | string | Building area Contoh: - |
data.facilities.total_bedsOpsional | integer | Total number of beds Contoh: 126 |
data.bedsOpsional | object | |
data.beds.class_iOpsional | integer | Number of class I beds Contoh: 14 |
data.beds.class_iiOpsional | integer | Number of class II beds Contoh: 12 |
data.beds.class_iiiOpsional | integer | Number of class III beds Contoh: 68 |
data.beds.hcuOpsional | integer | Number of HCU beds Contoh: 4 |
data.beds.perinatologyOpsional | integer | Number of perinatology beds Contoh: 20 |
data.beds.icu_with_ventilatorOpsional | integer | Number of ICU beds with ventilator Contoh: 8 |
data.servicesOpsional | object | |
data.services.countOpsional | integer | Number of services Contoh: 10 |
data.services.listOpsional | string[] | List of services Contoh: ["Pelayanan medik dasar / umum","Pelayanan medik gigi mulut","Pelayanan KIA/KB"] |
data.staffOpsional | object | |
data.staff.totalOpsional | integer | Total staff count Contoh: 56 |
data.staff.general_practitionerOpsional | number | Number of general practitioners Contoh: 38 |
data.staff.basic_specialistOpsional | number | Number of basic specialists Contoh: 11 |
data.staff.other_specialistOpsional | number | Number of other specialists Contoh: 7 |
data.province_codeOpsional | string | Province code Contoh: 11 |
data.regency_codeOpsional | string | Regency code Contoh: 1113 |
data.scraped_atOpsional | string | Timestamp when data was scraped Contoh: 2026-01-25T14:26:04.857537 |
curl -X GET "https://use.api.co.id/hospitals/indonesia/1113012" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": { "code": "1113012", "name": "RS Umum Muhammad Ali Kasim", "address": "Jalan Pangur", "phone": null, "type": "Rumah Sakit Umum", "class": "C", "blu_status": "BLUD", "ownership": "Pemkab", "director": "dr. SRI AGUSTI, M.Ked.,Sp.KJ", "facilities": { "land_area": "99.652 M2", "building_area": "-", "total_beds": 126 }, "beds": { "class_i": 14, "class_ii": 12, "class_iii": 68, "hcu": 4, "perinatology": 20, "icu_with_ventilator": 8 }, "services": { "count": 10, "list": [ "Pelayanan medik dasar / umum", "Pelayanan medik gigi mulut", "Pelayanan KIA/KB", "Pelayanan Gawat Darurat Umum 24 jam & 7 hari seminggu", "Penyakit dalam", "Kesehatan anak", "Bedah", "Obstetri dan ginekologi", "Anestesi", "Radiologi" ] }, "staff": { "total": 56, "general_practitioner": 38, "basic_specialist": 11, "other_specialist": 7 }, "province_code": "11", "regency_code": "1113", "scraped_at": "2026-01-25T14:26:04.857537" }}Metadata
Get All Types
Get all distinct hospital types available in the database.
### Response Returns a list of all unique hospital types that can be used for filtering.
### Example
``bash GET /hospitals/indonesia/types
| Nama | Tipe | Keterangan |
|---|---|---|
is_successOpsional | boolean | Indicates if the request was successful Contoh: true |
messageOpsional | string | Response message Contoh: Success |
dataOpsional | object | |
data.typesOpsional | string[] | List of hospital types Contoh: ["Rumah Sakit Umum","Rumah Sakit Khusus","Rumah Sakit Jiwa","Rumah Sakit Ibu dan Anak"] |
data.countOpsional | integer | Number of types Contoh: 4 |
curl -X GET "https://use.api.co.id/hospitals/indonesia/types" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": { "types": [ "Rumah Sakit Umum", "Rumah Sakit Khusus", "Rumah Sakit Jiwa", "Rumah Sakit Ibu dan Anak" ], "count": 4 }}Get All Classes
Get all distinct hospital classes available in the database.
### Response Returns a list of all unique hospital classes (A, B, C, D) that can be used for filtering.
### Classes - A: Highest class - B: High class - C: Medium class - D: Basic class
### Example
``bash GET /hospitals/indonesia/classes
| Nama | Tipe | Keterangan |
|---|---|---|
is_successOpsional | boolean | Indicates if the request was successful Contoh: true |
messageOpsional | string | Response message Contoh: Success |
dataOpsional | object | |
data.classesOpsional | string[] | List of hospital classes Contoh: ["A","B","C","D"] |
data.countOpsional | integer | Number of classes Contoh: 4 |
curl -X GET "https://use.api.co.id/hospitals/indonesia/classes" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": { "classes": [ "A", "B", "C", "D" ], "count": 4 }}Get All Ownership
Get all distinct ownership types available in the database.
### Response Returns a list of all unique ownership types that can be used for filtering.
### Common Ownership Types - Pemkab (Pemerintah Kabupaten) - Pemkot (Pemerintah Kota) - Pemprov (Pemerintah Provinsi) - Swasta - TNI/Polri
### Example
``bash GET /hospitals/indonesia/ownership
| Nama | Tipe | Keterangan |
|---|---|---|
is_successOpsional | boolean | Indicates if the request was successful Contoh: true |
messageOpsional | string | Response message Contoh: Success |
dataOpsional | object | |
data.ownershipOpsional | string[] | List of ownership types Contoh: ["Pemkab","Pemkot","Pemprov","Swasta","TNI/Polri"] |
data.countOpsional | integer | Number of ownership types Contoh: 5 |
curl -X GET "https://use.api.co.id/hospitals/indonesia/ownership" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": { "ownership": [ "Pemkab", "Pemkot", "Pemprov", "Swasta", "TNI/Polri" ], "count": 5 }}Get All BLU Status
Get all distinct BLU (Badan Layanan Umum) statuses available in the database.
### Response Returns a list of all unique BLU statuses that can be used for filtering.
### Common BLU Statuses - BLUD: Badan Layanan Umum Daerah - Non BLUD: Not a BLU
### Example
``bash GET /hospitals/indonesia/blu-status
| Nama | Tipe | Keterangan |
|---|---|---|
is_successOpsional | boolean | Indicates if the request was successful Contoh: true |
messageOpsional | string | Response message Contoh: Success |
dataOpsional | object | |
data.blu_statusOpsional | string[] | List of BLU statuses Contoh: ["BLUD","Non BLUD"] |
data.countOpsional | integer | Number of BLU statuses Contoh: 2 |
curl -X GET "https://use.api.co.id/hospitals/indonesia/blu-status" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": { "blu_status": [ "BLUD", "Non BLUD" ], "count": 2 }}