latest
Get the most recent observation per measure for a dataset. Works with time-series and single-year tables, returning the latest period's data.
Instructions
Return the most recent observation(s) per measure for a dataset.
For transposed time-series tables (GST_MONTHLY etc.) this trims to the most-recent period. For wide single-year tables (IND_POSTCODE etc.) it returns the same shape as get_data — there is only one period in those tables to begin with.
Examples: # Latest monthly net GST nationally resp = await latest("GST_MONTHLY", measures="net_gst")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | Curated dataset ID. | |
| filters | No | Same filter shape as get_data. Useful for narrowing to one entity. | |
| measures | No | Same as get_data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | ||
| dataset_name | Yes | ||
| query | No | ||
| period | No | ||
| unit | No | ||
| row_count | No | ||
| records | No | ||
| csv | No | ||
| source | No | Australian Taxation Office | |
| attribution | No | Data sourced from the Australian Taxation Office (and, for charity data, the Australian Charities and Not-for-profits Commission) via data.gov.au. Licensed under Creative Commons Attribution 3.0 Australia (CC BY 3.0 AU). https://creativecommons.org/licenses/by/3.0/au/ | |
| retrieved_at | Yes | ||
| ato_url | Yes | ||
| server_version | No |