AIHW . Annually

AIHW Hospital Statistics as a JSON REST API

Australian public and private hospital statistics as JSON. Separations, average length of stay, and ED presentations by state and hospital sector. Sourced from AIHW MyHospitals and refreshed annually. Skip the AIHW workbook and query hospital activity directly.

Endpoint

GEThttps://api.ausdata.io/v1/data/aihw/hospitals

Sample request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.ausdata.io/v1/data/aihw/hospitals?state=NSW"

Sample response

JSON
{
  "data": [
    {
      "year": 2024,
      "state": "NSW",
      "sector": "Public",
      "separations": 2120000,
      "avg_los_days": 5.4,
      "ed_presentations": 3320000
    }
  ],
  "meta": {
    "endpoint": "/v1/data/aihw/hospitals",
    "source": {
      "name": "AIHW",
      "url": "https://www.aihw.gov.au/reports-data/myhospitals",
      "attribution": "(c) AIHW, CC-BY 4.0"
    },
    "retrieved_at": "<ISO timestamp>"
  }
}

Response fields

FieldTypeDescription
yearnumberReporting year
statestringState or territory
sectorstringPublic or private
separationsnumberTotal hospital separations
avg_los_daysnumberAverage length of stay, days
ed_presentationsnumberEmergency department presentations

Frequently asked questions

How do I query the Hospital Statistics dataset via API?
Send a GET request to https://api.ausdata.io/v1/data/aihw/hospitals with an Authorization: Bearer <your-key> header. The response is JSON with a data array and a meta block containing the source and retrieval timestamp. Get a free key at ausdata.io with 500 calls per month.
How often is the Hospital Statistics data updated?
The Hospital Statistics dataset is refreshed annually from Australian Institute of Health and Welfare (AIHW). The meta.retrieved_at field on every response tells you exactly when the underlying data was last pulled.
Is there a free tier for the AIHW Hospital Statistics API?
Yes. ausdata.io offers a free tier of 500 calls per month across every endpoint, including Hospital Statistics. No credit card required. Paid plans start at $29 AUD per month for 10,000 calls.
What format does the Hospital Statistics API return?
JSON, with a consistent envelope: a data field carrying the rows or object, and a meta field with the source agency, source URL, attribution string, and retrieved_at timestamp. UTF-8, ISO 8601 dates, CC-BY attribution included on every response.

Start querying AIHW Hospital Statistics

500 free calls per month. No credit card.

Get a free key