1. Datasets
  2. Hospitals

Hospitals API

Look up hospitals with type, class, bed counts and location. 2,907 records across 1 countries and territories, from Ministry of Health facility register.

GET /v1/hospitalsPublisher terms1 countries28 Nov 2026

Request and response

The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.

GET/v1/hospitals
curl 'https://api.apifor.dev/v1/hospitals' \
  -G -d country=ID -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · application/json
{
  "success": true,
  "data": [
    {
      "country_code": "ID",
      "id": "rs-0",
      "name": "RS LAPANGAN INDRAPURA",
      "type": "RSUM",
      "class": null,
      "ownership": null,
      "is_blu": 0,
      "province_id": null,
      "regency_id": null,
      "address": null,
      "postal_code": null,
      "lat": null,
      "lng": null,
      "website": null,
      "beds_total": 361,
      "icu_beds": null,
      "doctors_gp": null,
      "doctors_spec": null,
      "is_active": 1,
      "created_at": "2026-07-01 10:49:01",
      "updated_at": "2026-07-01 10:49:01",
      "code": null,
      "hospital_type": null,
      "blu_status": null,
      "director": null,
      "land_area": null,
      "building_area": null,
      "source_region_name": null,
      "source_province_name": null,
      "source_name": null,
      "source_url": null,
      "source_updated_at": null,
      "synced_at": null,
      "provenance": null
    }
  ]
}

Fields

Each record in data has these fields. A nullable field can hold null for some records.

FieldTypeExample
country_codestring"ID"
idstring"rs-0"
namestring"RS LAPANGAN INDRAPURA"
typestring"RSUM"
classnullablenull
ownershipnullablenull
is_bluinteger0
province_idnullablenull
regency_idnullablenull
addressnullablenull
postal_codenullablenull
latnullablenull
lngnullablenull
websitenullablenull
beds_totalinteger361
icu_bedsnullablenull
doctors_gpnullablenull
doctors_specnullablenull
is_activeinteger1
created_atstring"2026-07-01 10:49:01"
updated_atstring"2026-07-01 10:49:01"
codenullablenull
hospital_typenullablenull
blu_statusnullablenull
directornullablenull
land_areanullablenull
building_areanullablenull
source_region_namenullablenull
source_province_namenullablenull
source_namenullablenull
source_urlnullablenull
source_updated_atnullablenull
synced_atnullablenull
provenancenullablenull

Filters and paging

Query parameters accepted by GET /v1/hospitals. Full detail, including the single-record route, is in the endpoint reference.

ParameterTypeRules
pageintegermin 1 · default 1
limitinteger1 to 200 · default 50
countrystringISO 3166-1 alpha-2
qstring2 to 100 chars
province_idstringNone
regency_idstringNone

Coverage by country

1 countries and territories have records in the 28 Nov 2026 snapshot. Each one has its own page with filters and counts.