Search control section

About the data

Left hand navigation section

Download all data

Excel downloads

Click on the link below to download the available data as an Excel spreadsheet:

Additional data are in the process of being formatted for download and will be available in coming months.

Other ways to access data

MyHospitals profiles

More than 1,000 public and private hospitals across Australia have performance data available on MyHospitals. The easiest way to find data relating to a hospital is via the Find hospitals search, where entering the name of the hospital will return the related information. Alternatively, Compare hospitals allows users to compare hospitals results across specific performance measures.

MyHospitals API

The MyHospitals website uses an advanced user function called an Application Programming Interface (API) to produce the interactive graphics found in Compare hospitals. An API is a tool that expresses a software component in terms of its operations, inputs, outputs and underlying types. On the MyHospitals website, the API draws select inputs from our data model and displays these elements interactively in the comparative tools.

The API is also available for users to retrieve data from the website for use, in addition to the downloadable Excel spreadsheets listed above. By making this data publicly accessible via an API, it is easier for individuals, businesses and community organisations to find new ways to explore the data available on the MyHospitals site.

How to use the MyHospitals API

The MyHospitals website uses an API for powering the interactive graphics used when comparing hospitals. Comparisons done on the MyHospitals website use peer groups to compare hospitals of similar size, scope or service provision to ensure fair comparisons can be made. While this API is provided for public use under Creative Commons Attribution-Non Commercial- No Derivatives Licence 3.0, Australia and the terms outlined in the MyHospitals Privacy policy, Disclaimer and Copyright notice. Comparisons made using the API may not be fair comparisons and should be used for informational purposes only. Any user-generated comparisons are not considered to be ‘endorsed’ by the AIHW, and should not be attributed to the AIHW.

What information is available?

There are three endpoints available for retrieving data from the MyHospitals website (www.myhospitals.gov.au):

  • /api/hospitals/
    Returns a list of all (public) hospitals with data in the MyHospitals website.
  • /api/indicators/
    Returns a list of all indicators measured within the MyHospitals website. Not all hospitals will have a data stored for an indicator.
  • /api/datasets/
    Returns a custom dataset of a requested set of indicators for all available hospitals over a given time frame. To return data based on available datasets, the API accepts the following URL query arguments:
    • indicatorId (required, repeatable): The ID of an indicator to show data for. The ID for a given indicator can be obtained from the indicators endpoint. Repeating this argument will return data for multiple indicators.
    • startDate (optional): Specifies that only data AFTER a certain point should be returned. startDate can be a date of the form YYYY, YYYY-MM or YYYY-MM-DD. Where only a year is specified, the search period starts at the beginning of the year, where a year and month are specified, the search period starts at the beginning of the month.
    • endDate (optional): Specifies that only data BEFORE a certain point should be returned. endDate can be a date of the form YYYY, YYYY-MM or YYYY-MM-DD. Where only a year is specified, the search period ends at the end of the year, where a year and month are specified, the search period ends at the end of the month.
    • Example /api/datasets queries:

The JSON Schema for all API returned data is available at: MyHospitals API Schema (JSON) and the XML schema is available at: MyHospitals XML Schema (XSD)

Limitations of the API

Availability

The API is available for use at any time the website is running. However, the API may be disabled at any time by the AIHW for maintenance or other reasons.

Responsiveness

Most queries made via the API are returned in less than two seconds, with some longer queries taking up to five seconds. Responsiveness timings are a guide and may be influenced by your internet speed and connectivity.

Data provenance

MyHospitals includes information provided by Australian hospitals that is routinely collected through a variety of administrative arrangements, contractual requirements and legislation. Calculation methods and specific information about the measures and data available via the API can be found in the About the data section of this site.

Rate limiting

No rate limiting has been applied to the API at this time.

Security

The information available on the MyHospitals website is determined by the AIHW. At this time the API is unsecured, allowing anonymous users to access the available data. Access to private hospital data may be restricted.

If you have an issue using the API or interpreting the data, please contact us and we will be happy to assist you.

Specific data requests

The AIHW manages this website, content and related data. If you wish to make a specific request about our data, please contact us.