- Each word separated by a space will be searched for in the index. So using:
ptitle=Labour Force
in the parameter list will return all series that are related to Products with 'Labour' or 'Force' in the Product Title.
- A phrase enclosed in inverted commas will be searched for as a single value. eg.
ptitle="Labour Force"
will return all series that are related to Products with 'Labour Force' in the Product Title.
Time Series Directory API
User assistance for the Time Series Directory API, machine to machine access to ABS time series metadata.
The ABS provides an API for querying & returning a user defined subset of ABS time series metadata. The API is designed to be used in a machine-to-machine context. The metadata returned from a query can be, and is typically used to facilitate the automated download of the ABS time series spreadsheet/s associated with the parameters defined in that query.
Key information
Time series metadata can be accessed using a Uniform Resource Locator (URL) formula to query the ABS Time Series Directory service. This enables access to time series metadata without having to download time series spreadsheets. The metadata returned is in eXtensible Markup Language (XML) format, and provides a single source of time series information at the granular level of individual time series. The information returned includes metadata already available on time series spreadsheets provided on the ABS web site, as well as statistical product relationships and URLs to the actual spreadsheets.
See the List of Topics in the Time Series Directory section for a listing of available statistical topics by title and catalogue number.
Using the Time Series Directory
1. Start with the base url
https://abs.gov.au/servlet/TSSearchServlet?
2. Append any combination of the available search parameters to the base url
Where:
- ptitle = Topic
- ttitle = Table title
- sid = Series ID
- catno = Catalogue/Product number
- pg = Page number
Search parameters can be combined using '&' to customise your query.
ptitle=<ptitlevalue>&ttitle=<ttitlevalue>&sid=<sidvalue>&catno=<catnovalue>&pg=<pagenumber>
eg.
https://abs.gov.au/servlet/TSSearchServlet?catno=6401.0&ttitle="table 5"
combines the catno= and ttitle= search values to return all time series metadata from table 5 in catalogue number 6401.0.
Search value formats:
ptitle=
ttitle=
sid=
catno=
pg=
3. Time series metadata will be returned in XML format
(Note that multiple <series> nodes may be returned between the <TimeSeriesIndex> tags.)
XML format example for less than 100 series returned:
<TimeSeriesIndex>
<SeriesCount></SeriesCount>
<Series>
<ProductNumber></ProductNumber>
<ProductTitle></ProductTitle>
<ProductIssue></ProductIssue>
<ProductReleaseDate></ProductReleaseDate>
<ProductURL></ProductURL>
<TableURL></TableURL>
<TableTitle></TableTitle>
<TableOrder></TableOrder>
<Description></Description>
<Unit></Unit>
<SeriesType></SeriesType>
<DataType</DataType>
<Frequency></Frequency>
<CollectionMonth></CollectionMonth>
<SeriesStart></SeriesStart>
<SeriesEnd></SeriesEnd>
<NoObs></NoObs>
<SeriesID></SeriesID>
</Series>
</TimeSeriesIndex>
XML format example for more than 100 series returned:
When a query results in more than 100 series, two additional metadata nodes will be visible:
<NumPages> - number of pages of results (100 series per page)
<CurPage> - current page (the default is 1)
Adding the pg= parameter to a query allows access to the results on the additional pages
<TimeSeriesIndex>
<Info>Your search returned x series information. If you want access to the rest please add a pg parameter to the url.</Info>
<SeriesCount></SeriesCount>
<NumPages></NumPages>
<CurPage></CurPage>
<Series>
<ProductNumber></ProductNumber>
<ProductTitle></ProductTitle>
<ProductIssue></ProductIssue>
<ProductReleaseDate></ProductReleaseDate>
<ProductURL></ProductURL>
<TableURL></TableURL>
<TableTitle></TableTitle>
<TableOrder></TableOrder>
<Description></Description>
<Unit></Unit>
<SeriesType></SeriesType>
<DataType</DataType>
<Frequency></Frequency>
<CollectionMonth></CollectionMonth>
<SeriesStart></SeriesStart>
<SeriesEnd></SeriesEnd>
<NoObs></NoObs>
<SeriesID></SeriesID>
</Series>
</TimeSeriesIndex>
List of Topics in the Time Series Directory