MicroburbsMicroburbs
Free sandbox: try any request below on the sample suburbs, no signup. For every suburb, create an API key.
Classic docs
Microburbs Property Data API
Dataset · Health

NSW Average Hospital Length of Stay, Quarterly

Quarterly average length of hospital stay across New South Wales, for two episode groupings: all overnight episodes (acute, non-acute and mental health) and acute episodes only. The dataset has two rows, one per grouping, with a column for each quarter from January–March 2011 to January–March 2025.

Endpoints

NSW Average Hospital Length of Stay, Quarterly: search

GET/v1/records/nsw-average-hospital-length-of-stay-quarterly/search10¢ per call

Served by /v1/records/{slug}/search, which documents every parameter, the response shape and errors, and has a live playground.

Query parameterDescription
qWords to find (prefix match, all must appear) in: episode grouping.
whereExact-match filter `field:value`, repeatable, on: `chart_2_3`.
fieldsComma-separated field slugs (below). Omit for all.
limitRecords per page, 1 to 50 (default 25).
offsetItems to skip, for the next page (`next_offset`).
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-average-hospital-length-of-stay-quarterly/search?q=Overall%20%28Acute%2C%20Non-Acute%2C%20and%20Mental%20Health%20episodes%29' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

NSW Average Hospital Length of Stay, Quarterly: one record

GET/v1/records/nsw-average-hospital-length-of-stay-quarterly/{record_key}5¢ per call

Served by /v1/records/{slug}/{record_key}, which documents every parameter, the response shape and errors, and has a live playground.

Query parameterDescription
record_keyThe record's record id.
fieldsComma-separated field slugs (below). Omit for all.
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-average-hospital-length-of-stay-quarterly/1' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

About this dataset

New South Wales as a whole, with no breakdown by region, LGA or hospital. Quarterly columns run from January–March 2011 to January–March 2025, with the 2016 July–September to 2017 April–June quarters missing. Two rows in total. Current to 2025-08-11; refreshed Quarterly as new figures are published; no fixed update schedule is recorded..

What it is

A state-wide time series of the average number of days patients stay in hospital per overnight episode in NSW. It has one row for the overall group (acute, non-acute and mental health episodes) and one row for acute episodes only. Each quarter is its own column.

What it shows

It shows how average stay length moved from early 2011 to early 2025. Values across both rows range from 4.3 to 6.5. Stays were longer from the July–September 2021 quarter, with both rows stepping up by roughly 0.5 days or more compared with April–June 2021.

Why use it

Length of stay is a common measure of hospital efficiency, bed demand and health system pressure. Analysts can use it as state-level context for health service capacity, ageing and population growth, or for before-and-after comparisons around 2020–2021.

How it is built

We hold the series as a small register of two rows, searchable by text and fetchable by key. Quarters are stored as wide columns rather than as one row per quarter. The series has a gap: there are no columns between April–June 2016 and July–September 2017.

Shortcomings

  • A small table: 2 rows, with no suburb, council area or postcode attached to the rows.
  • Only two rows and state-wide values: nothing is available by hospital, LGA, SA2 or patient group, so it cannot support local analysis.
  • Four quarters are missing, from July–September 2016 to April–June 2017, so the series is not continuous.
  • Values are rounded to one decimal place, so small changes of 0.1 days may reflect rounding.
  • The unit is not stated in the data. The values appear to be days, but confirm this before relying on it. The row that holds the higher values should be checked against the label in chart_2_3 before comparing the two groupings.

Fields

FieldUnitDescription
record_id
Record ID
Key identifying each row in the register.
chart_2_3
Episode grouping
Label of the episode group: overall (acute, non-acute and mental health) or acute episodes only.
jan_mar_2011
Average stay, Jan–Mar 2011
daysAverage length of stay for the grouping in the January–March 2011 quarter.
apr_jun_2011
Average stay, Apr–Jun 2011
daysAverage length of stay for the grouping in the April–June 2011 quarter.
jul_sep_2011
Average stay, Jul–Sep 2011
daysAverage length of stay for the grouping in the July–September 2011 quarter.
oct_dec_2011
Average stay, Oct–Dec 2011
daysAverage length of stay for the grouping in the October–December 2011 quarter.
jan_mar_2012
Average stay, Jan–Mar 2012
daysAverage length of stay for the grouping in the January–March 2012 quarter.
apr_jun_2012
Average stay, Apr–Jun 2012
daysAverage length of stay for the grouping in the April–June 2012 quarter.
jul_sep_2012
Average stay, Jul–Sep 2012
daysAverage length of stay for the grouping in the July–September 2012 quarter.
oct_dec_2012
Average stay, Oct–Dec 2012
daysAverage length of stay for the grouping in the October–December 2012 quarter.
jan_mar_2013
Average stay, Jan–Mar 2013
daysAverage length of stay for the grouping in the January–March 2013 quarter.
apr_jun_2013
Average stay, Apr–Jun 2013
daysAverage length of stay for the grouping in the April–June 2013 quarter.
jul_sep_2013
Average stay, Jul–Sep 2013
daysAverage length of stay for the grouping in the July–September 2013 quarter.
oct_dec_2013
Average stay, Oct–Dec 2013
daysAverage length of stay for the grouping in the October–December 2013 quarter.
jan_mar_2014
Average stay, Jan–Mar 2014
daysAverage length of stay for the grouping in the January–March 2014 quarter.
apr_jun_2014
Average stay, Apr–Jun 2014
daysAverage length of stay for the grouping in the April–June 2014 quarter.
jul_sep_2014
Average stay, Jul–Sep 2014
daysAverage length of stay for the grouping in the July–September 2014 quarter.
oct_dec_2014
Average stay, Oct–Dec 2014
daysAverage length of stay for the grouping in the October–December 2014 quarter.
jan_mar_2015
Average stay, Jan–Mar 2015
daysAverage length of stay for the grouping in the January–March 2015 quarter.
apr_jun_2015
Average stay, Apr–Jun 2015
daysAverage length of stay for the grouping in the April–June 2015 quarter.
jul_sep_2015
Average stay, Jul–Sep 2015
daysAverage length of stay for the grouping in the July–September 2015 quarter.
oct_dec_2015
Average stay, Oct–Dec 2015
daysAverage length of stay for the grouping in the October–December 2015 quarter.
jan_mar_2016
Average stay, Jan–Mar 2016
daysAverage length of stay for the grouping in the January–March 2016 quarter.
apr_jun_2016
Average stay, Apr–Jun 2016
daysAverage length of stay for the grouping in the April–June 2016 quarter.
jul_sep_2017
Average stay, Jul–Sep 2017
daysAverage length of stay for the grouping in the July–September 2017 quarter.
oct_dec_2017
Average stay, Oct–Dec 2017
daysAverage length of stay for the grouping in the October–December 2017 quarter.
jan_mar_2018
Average stay, Jan–Mar 2018
daysAverage length of stay for the grouping in the January–March 2018 quarter.
apr_jun_2018
Average stay, Apr–Jun 2018
daysAverage length of stay for the grouping in the April–June 2018 quarter.
jul_sep_2018
Average stay, Jul–Sep 2018
daysAverage length of stay for the grouping in the July–September 2018 quarter.
oct_dec_2018
Average stay, Oct–Dec 2018
daysAverage length of stay for the grouping in the October–December 2018 quarter.
jan_mar_2019
Average stay, Jan–Mar 2019
daysAverage length of stay for the grouping in the January–March 2019 quarter.
apr_jun_2019
Average stay, Apr–Jun 2019
daysAverage length of stay for the grouping in the April–June 2019 quarter.
jul_sep_2019
Average stay, Jul–Sep 2019
daysAverage length of stay for the grouping in the July–September 2019 quarter.
oct_dec_2019
Average stay, Oct–Dec 2019
daysAverage length of stay for the grouping in the October–December 2019 quarter.
jan_mar_2020
Average stay, Jan–Mar 2020
daysAverage length of stay for the grouping in the January–March 2020 quarter.
apr_jun_2020
Average stay, Apr–Jun 2020
daysAverage length of stay for the grouping in the April–June 2020 quarter.
jul_sep_2020
Average stay, Jul–Sep 2020
daysAverage length of stay for the grouping in the July–September 2020 quarter.
oct_dec_2020
Average stay, Oct–Dec 2020
daysAverage length of stay for the grouping in the October–December 2020 quarter.
jan_mar_2021
Average stay, Jan–Mar 2021
daysAverage length of stay for the grouping in the January–March 2021 quarter.
apr_jun_2021
Average stay, Apr–Jun 2021
daysAverage length of stay for the grouping in the April–June 2021 quarter.
jul_sep_2021
Average stay, Jul–Sep 2021
daysAverage length of stay for the grouping in the July–September 2021 quarter.
oct_dec_2021
Average stay, Oct–Dec 2021
daysAverage length of stay for the grouping in the October–December 2021 quarter.
jan_mar_2022
Average stay, Jan–Mar 2022
daysAverage length of stay for the grouping in the January–March 2022 quarter.
apr_jun_2022
Average stay, Apr–Jun 2022
daysAverage length of stay for the grouping in the April–June 2022 quarter.
jul_sep_2022
Average stay, Jul–Sep 2022
daysAverage length of stay for the grouping in the July–September 2022 quarter.
oct_dec_2022
Average stay, Oct–Dec 2022
daysAverage length of stay for the grouping in the October–December 2022 quarter.
jan_mar_2023
Average stay, Jan–Mar 2023
daysAverage length of stay for the grouping in the January–March 2023 quarter.
apr_jun_2023
Average stay, Apr–Jun 2023
daysAverage length of stay for the grouping in the April–June 2023 quarter.
jul_sep_2023
Average stay, Jul–Sep 2023
daysAverage length of stay for the grouping in the July–September 2023 quarter.
oct_dec_2023
Average stay, Oct–Dec 2023
daysAverage length of stay for the grouping in the October–December 2023 quarter.
jan_mar_2024
Average stay, Jan–Mar 2024
daysAverage length of stay for the grouping in the January–March 2024 quarter.
apr_jun_2024
Average stay, Apr–Jun 2024
daysAverage length of stay for the grouping in the April–June 2024 quarter.
jul_sep_2024
Average stay, Jul–Sep 2024
daysAverage length of stay for the grouping in the July–September 2024 quarter.
oct_dec_2024
Average stay, Oct–Dec 2024
daysAverage length of stay for the grouping in the October–December 2024 quarter.
jan_mar_2025
Average stay, Jan–Mar 2025
daysAverage length of stay for the grouping in the January–March 2025 quarter.

Data source: NSW Government