1407.0.55.002 - ABS.Stat Beta: Web Services, User Guide  
Latest ISSUE Released at 11:30 AM (CANBERRA TIME) 07/10/2016   
   Page tools: Print Print Page Print all pages in this productPrint All RSS Feed RSS Bookmark and Share Search this Product

ABS.Stat SDMX-XML API

The ABS provides access to datasets in ABS.Stat through a RESTful application programming interface (API) outputting SDMX-XML. This allows anyone to easily call the API using a simple RESTful URL.

Build a query from the web browser interface

To build an API query, select data as normal in the ABS.Stat web browser interface. Once you have made your selection go to:

  1. Export – SDMX (XML)
  2. Copy the SDMX Data URL or SDMX Data Structure Definition URL
  3. Paste into your own application or a new tab in your web browser

Graphic: The Export SDMX window, showing a user right-clicking the SDMX Data URL and selecting “Copy”
Copying the SDMX Data URL from the Export SDMX window


For example:
http://stat.data.abs.gov.au/restsdmx/sdmx.ashx/GetData/ABS_REGIONAL_ASGS/PENSION_2+BANKRUPT_2.AUS.0.A/all?startTime=2013&endTime=2013

The query is generated based on all the data currently selected in the web browser interface. To change the selection go to Customise - Selection and chose the data you want.

Once you have generated a URL you can manually edit it if required. For example, in the exemplar above if you were to select all dimension members for ‘Data Item’ the API string would exceed the maximum number of characters allowed in a URL (1,000). If you want all members of the Data Item dimension you can simply delete all Data Item codes from the string which will return all data by default.

For example, here is the same query as above but requesting all members of the Data Item dimension (note the codes that have been removed):
http://stat.data.abs.gov.au/restsdmx/sdmx.ashx/GetData/ABS_REGIONAL_ASGS/.AUS.0.A/all?startTime=2013&endTime=2013