Counts, sums, averages, minimums and maximums by group
Groups and totals of any dataset in the newest loaded version. Filters work as they do on rows. Each filter is field=operator.value in the query string, and every filter must match. A number or date field compares as a number or date, and a text field compares as text. Values are case-sensitive, except that like and ilike ignore case in the ASCII letters A to Z. Prefix not. to negate a filter, as not.eq.value. Operators: eq.value, neq.value, gt.value, gte.value, lt.value, lte.value, like.*text*, ilike.*text*, in.(a,b,c), is.null.
Request
- Base URL: https://publicdata.au
- URL: https://publicdata.au/api/v1/datasets/{slug}/aggregate
- Auth: none declared
Path parameters
The dataset's slug, as in its page URL /d/<slug>/.
Query parameters
On aggregate, fields to group by, comma-separated.
On aggregate, count, sum.field, avg.field, min.field or max.field, comma-separated. count when absent.
field.asc or field.desc, comma-separated. When absent, rows come in the order of the file they are read from. For the newest versions that is the version's own data.parquet, which keeps the publisher's order unless the dataset sorted it. Any other version is read from the Parquet file the answer names in file, and when that file is sorted the answer names its sort in order, which ties follow too.
Rows per page, 1 to 10,000. 100 when absent.
Rows to skip. The next URL in each answer sets it for you.
json, ndjson or csv. JSON carries the provenance header, and the others carry it in response headers.
Response
Rows with the version, licence and attribution. next is the URL of the following page, or null. An answer read or counted from a Parquet file names it in file, or its period parts in parts, and a sorted file's sort in order.
Changes
No recorded changes to this operation across all 1 revision of this API.