Dataset values for an SA2
/v1/sa2/{sa2_name}/datasets/{slug}10¢ per callEvery field of a values dataset for one SA2, each period with its value.
One route for every dataset of this kind: the slug picks the dataset, and its fields, caveats and an example call are at /v1/datasets/{slug}.
Price: the dataset's tier, basic 3¢, standard 5¢, premium 10¢ per call (price_cents in /v1/datasets/{slug}).
Authorization
Request
The only values you send. Fields under Responses below are what comes back — you never pass those.
Path parameters
sa2_namestringrequiredStatistical Area Level 2 (2021) name exactly as published, e.g. `St Kilda - Central` or `Fortitude Valley`.
Required — set a value before sending.
slugstringrequiredDataset slug, from `/v1/datasets` (filter by `kind` and `level`) or the endpoint search. A slug this route does not serve is a 404 and is not billed.
Required — set a value before sending.
Query parameters
fieldsstringoptionalComma-separated field slugs (listed at `/v1/datasets/{slug}`). Omit for all.
fromstringoptionalFirst period to include: 2020, 2020-Q3, 2020-07 or 2020-07-01.
tostringoptionalLast period to include, same formats as `from`.
Responses
Successful Response
datasetstringalways returnedDataset slug; describe it with /v1/datasets/{slug}.
levelstringalways returnedsuburb, lga or block.
areastringalways returnedCanonical name (or mesh-block code) of the area answered.
period_typestringalways returnedsnapshot, year, financial_year, quarter or month.
as_ofstring · datealways returnedDate the dataset is current to. Values are never withheld for age; check this instead.
modelledbooleanalways returnedTrue when the figures are estimates from a model rather than counts or measurements.
fieldsarray of DatasetFieldSeriesalways returned/v1/sa2/{sa2_name}/datasets/{slug}sa2_name, slug — set them on the left to send.curl --request GET \
--url 'https://api.microburbs.com.au/v1/sa2/{sa2_name}/datasets/{slug}' \
--header 'Authorization: Bearer test'{}