{
  "openapi": "3.1.0",
  "info": {
    "title": "Road crashes, Victoria query API",
    "version": "2026-09-15",
    "summary": "Filter, page and aggregate Road crashes, Victoria from Department of Transport and Planning.",
    "description": "The query API returns only the rows you ask for, as JSON, NDJSON or CSV, from the same typed rows as the files. It needs no key. The API allows 60 requests in 10 seconds from one address. Above that it answers 429 for 10 seconds with a `Retry-After` header, a `RateLimit-Policy` header and a JSON body that gives the limit. Every API answer carries the same `RateLimit-Policy`. A client should wait the `Retry-After` seconds, or read the files, which have no limit. Every JSON answer carries the version, licence and attribution. CSV and NDJSON answers carry them in response headers. Department of Transport and Planning has not endorsed this site. The whole site is described in https://publicdata.au/openapi.json.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://publicdata.au"
    }
  ],
  "externalDocs": {
    "url": "https://publicdata.au/d/vic-road-crashes/#query"
  },
  "tags": [
    {
      "name": "query"
    }
  ],
  "paths": {
    "/api/v1/datasets/vic-road-crashes/rows": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Query Road crashes, Victoria",
        "operationId": "queryRows_vic_road_crashes",
        "description": "Rows of Road crashes, Victoria in the newest loaded version, filtered and paged. 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 with `ilike`. 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`.",
        "parameters": [
          {
            "name": "accident_no",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The publisher's identifier for the crash."
          },
          {
            "name": "accident_date",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "date. From 2012-01-01 to 2026-01-31."
          },
          {
            "name": "accident_time",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. 24-hour time."
          },
          {
            "name": "accident_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Collision with a fixed object, Collision with vehicle, Fall from or in moving vehicle, No collision and no object struck, Other accident, Struck Pedestrian, Struck animal, Vehicle overturned (no collision), collision with some other object.",
            "examples": [
              "eq.collision with some other object"
            ]
          },
          {
            "name": "day_of_week",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday.",
            "examples": [
              "eq.Wednesday"
            ]
          },
          {
            "name": "dca_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. DCA (Definitions for Classifying Accidents) code. Kept as text.",
            "examples": [
              "eq.199"
            ]
          },
          {
            "name": "dca_code_description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.VEHICLE STRIKES DOOR OF PARKED/STATIONARY VEHICLE"
            ]
          },
          {
            "name": "light_condition",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Dark No street lights, Dark Street lights off, Dark Street lights on, Dark Street lights unknown, Day, Dusk/Dawn, Unk..",
            "examples": [
              "eq.Unk."
            ]
          },
          {
            "name": "police_attend",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Yes, No or Not known. Values: No, Not known, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_geometry",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Cross intersection, Dead end, Multiple intersection, Not at intersection, Private property, Road closure, T intersection, Unknown, Y intersection.",
            "examples": [
              "eq.Y intersection"
            ]
          },
          {
            "name": "severity",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Fatal accident, Serious injury accident, Other injury accident or Non injury accident. Values: Fatal accident, Non injury accident, Other injury accident, Serious injury accident.",
            "examples": [
              "eq.Serious injury accident"
            ]
          },
          {
            "name": "speed_zone",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. A band such as 60 km/hr. Kept as text because the publisher uses bands. Values: 100 km/hr, 110 km/hr, 30km/hr, 40 km/hr, 50 km/hr, 60 km/hr, 70 km/hr, 75 km/hr, 80 km/hr, 90 km/hr, Camping grounds or off road, Not known, Other speed limit.",
            "examples": [
              "eq.Other speed limit"
            ]
          },
          {
            "name": "run_offroad",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: No, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string."
          },
          {
            "name": "road_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.WYND"
            ]
          },
          {
            "name": "road_route_1",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Kept as text."
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.YARRIAMBIACK"
            ]
          },
          {
            "name": "dtp_region",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: BARWON SOUTH WEST, GIPPSLAND, GRAMPIANS, GREATER METRO, HUME, INNER METRO, LODDON MALLEE, METROPOLITAN SOUTH EAST REGION.",
            "examples": [
              "eq.METROPOLITAN SOUTH EAST REGION"
            ]
          },
          {
            "name": "latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. Blank for 85 crashes in the September 2026 release. From -39.03083 to -34.115696."
          },
          {
            "name": "longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. From 140.96648 to 149.75746."
          },
          {
            "name": "vicgrid_x",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2129485.022 to 2920148.029."
          },
          {
            "name": "vicgrid_y",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2273772.291 to 2815696.123."
          },
          {
            "name": "total_persons",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 1 to 97.",
            "examples": [
              "eq.97"
            ]
          },
          {
            "name": "inj_or_fatal",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 48.",
            "examples": [
              "eq.48"
            ]
          },
          {
            "name": "fatality",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "seriousinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15.",
            "examples": [
              "eq.15"
            ]
          },
          {
            "name": "otherinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 43.",
            "examples": [
              "eq.43"
            ]
          },
          {
            "name": "noninjured",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 94.",
            "examples": [
              "eq.94"
            ]
          },
          {
            "name": "males",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 46.",
            "examples": [
              "eq.46"
            ]
          },
          {
            "name": "females",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 51.",
            "examples": [
              "eq.51"
            ]
          },
          {
            "name": "bicyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "passenger",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 95.",
            "examples": [
              "eq.95"
            ]
          },
          {
            "name": "driver",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "pedestrian",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9, 11.",
            "examples": [
              "eq.11"
            ]
          },
          {
            "name": "pillion",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "motorcyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "unknown",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 52.",
            "examples": [
              "eq.52"
            ]
          },
          {
            "name": "ped_cyclist_5_12",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "ped_cyclist_13_18",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "old_ped_65_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "old_driver_75_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "young_driver_18_25",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "no_of_vehicles",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "heavyvehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4.",
            "examples": [
              "eq.4"
            ]
          },
          {
            "name": "passengervehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19.",
            "examples": [
              "eq.19"
            ]
          },
          {
            "name": "motorcycle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "pt_vehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "deg_urban_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: LARGE_PROVINCIAL_CITIES, MELBOURNE_CBD, MELB_URBAN, RURAL_VICTORIA, SMALL_CITIES, SMALL_TOWNS, TOWNS.",
            "examples": [
              "eq.TOWNS"
            ]
          },
          {
            "name": "srns",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: A, B, C, M.",
            "examples": [
              "eq.M"
            ]
          },
          {
            "name": "rma",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Road Management Act class, such as Freeway, Arterial Highway or Local Road. Values: Arterial Highway, Arterial Other, Freeway, Local Road, Non Arterial, Proposed Road.",
            "examples": [
              "eq.Proposed Road"
            ]
          },
          {
            "name": "divided",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Divided, Undivided.",
            "examples": [
              "eq.Undivided"
            ]
          },
          {
            "name": "stat_div_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Country, Metro.",
            "examples": [
              "eq.Metro"
            ]
          },
          {
            "name": "sa2_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "sa2_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "lga_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.29399"
            ]
          },
          {
            "name": "lga_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.Yarriambiack"
            ]
          },
          {
            "name": "sal_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "sal_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "sed_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.28804"
            ]
          },
          {
            "name": "sed_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Yan Yean (Northern Victoria)"
            ]
          },
          {
            "name": "ced_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.238"
            ]
          },
          {
            "name": "ced_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Wills"
            ]
          },
          {
            "name": "select",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Fields to return, comma-separated. Every field when absent."
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/vic-road-crashes/versions/{version}/rows": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Query Road crashes, Victoria",
        "operationId": "queryRows_vic_road_crashes_version",
        "description": "Rows of Road crashes, Victoria in one dated version, filtered and paged. 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 with `ilike`. 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`.",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "A dated version loaded for queries, from the versions path. Answers for a dated version never change."
          },
          {
            "name": "accident_no",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The publisher's identifier for the crash."
          },
          {
            "name": "accident_date",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "date. From 2012-01-01 to 2026-01-31."
          },
          {
            "name": "accident_time",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. 24-hour time."
          },
          {
            "name": "accident_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Collision with a fixed object, Collision with vehicle, Fall from or in moving vehicle, No collision and no object struck, Other accident, Struck Pedestrian, Struck animal, Vehicle overturned (no collision), collision with some other object.",
            "examples": [
              "eq.collision with some other object"
            ]
          },
          {
            "name": "day_of_week",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday.",
            "examples": [
              "eq.Wednesday"
            ]
          },
          {
            "name": "dca_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. DCA (Definitions for Classifying Accidents) code. Kept as text.",
            "examples": [
              "eq.199"
            ]
          },
          {
            "name": "dca_code_description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.VEHICLE STRIKES DOOR OF PARKED/STATIONARY VEHICLE"
            ]
          },
          {
            "name": "light_condition",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Dark No street lights, Dark Street lights off, Dark Street lights on, Dark Street lights unknown, Day, Dusk/Dawn, Unk..",
            "examples": [
              "eq.Unk."
            ]
          },
          {
            "name": "police_attend",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Yes, No or Not known. Values: No, Not known, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_geometry",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Cross intersection, Dead end, Multiple intersection, Not at intersection, Private property, Road closure, T intersection, Unknown, Y intersection.",
            "examples": [
              "eq.Y intersection"
            ]
          },
          {
            "name": "severity",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Fatal accident, Serious injury accident, Other injury accident or Non injury accident. Values: Fatal accident, Non injury accident, Other injury accident, Serious injury accident.",
            "examples": [
              "eq.Serious injury accident"
            ]
          },
          {
            "name": "speed_zone",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. A band such as 60 km/hr. Kept as text because the publisher uses bands. Values: 100 km/hr, 110 km/hr, 30km/hr, 40 km/hr, 50 km/hr, 60 km/hr, 70 km/hr, 75 km/hr, 80 km/hr, 90 km/hr, Camping grounds or off road, Not known, Other speed limit.",
            "examples": [
              "eq.Other speed limit"
            ]
          },
          {
            "name": "run_offroad",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: No, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string."
          },
          {
            "name": "road_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.WYND"
            ]
          },
          {
            "name": "road_route_1",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Kept as text."
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.YARRIAMBIACK"
            ]
          },
          {
            "name": "dtp_region",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: BARWON SOUTH WEST, GIPPSLAND, GRAMPIANS, GREATER METRO, HUME, INNER METRO, LODDON MALLEE, METROPOLITAN SOUTH EAST REGION.",
            "examples": [
              "eq.METROPOLITAN SOUTH EAST REGION"
            ]
          },
          {
            "name": "latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. Blank for 85 crashes in the September 2026 release. From -39.03083 to -34.115696."
          },
          {
            "name": "longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. From 140.96648 to 149.75746."
          },
          {
            "name": "vicgrid_x",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2129485.022 to 2920148.029."
          },
          {
            "name": "vicgrid_y",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2273772.291 to 2815696.123."
          },
          {
            "name": "total_persons",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 1 to 97.",
            "examples": [
              "eq.97"
            ]
          },
          {
            "name": "inj_or_fatal",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 48.",
            "examples": [
              "eq.48"
            ]
          },
          {
            "name": "fatality",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "seriousinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15.",
            "examples": [
              "eq.15"
            ]
          },
          {
            "name": "otherinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 43.",
            "examples": [
              "eq.43"
            ]
          },
          {
            "name": "noninjured",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 94.",
            "examples": [
              "eq.94"
            ]
          },
          {
            "name": "males",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 46.",
            "examples": [
              "eq.46"
            ]
          },
          {
            "name": "females",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 51.",
            "examples": [
              "eq.51"
            ]
          },
          {
            "name": "bicyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "passenger",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 95.",
            "examples": [
              "eq.95"
            ]
          },
          {
            "name": "driver",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "pedestrian",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9, 11.",
            "examples": [
              "eq.11"
            ]
          },
          {
            "name": "pillion",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "motorcyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "unknown",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 52.",
            "examples": [
              "eq.52"
            ]
          },
          {
            "name": "ped_cyclist_5_12",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "ped_cyclist_13_18",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "old_ped_65_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "old_driver_75_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "young_driver_18_25",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "no_of_vehicles",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "heavyvehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4.",
            "examples": [
              "eq.4"
            ]
          },
          {
            "name": "passengervehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19.",
            "examples": [
              "eq.19"
            ]
          },
          {
            "name": "motorcycle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "pt_vehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "deg_urban_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: LARGE_PROVINCIAL_CITIES, MELBOURNE_CBD, MELB_URBAN, RURAL_VICTORIA, SMALL_CITIES, SMALL_TOWNS, TOWNS.",
            "examples": [
              "eq.TOWNS"
            ]
          },
          {
            "name": "srns",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: A, B, C, M.",
            "examples": [
              "eq.M"
            ]
          },
          {
            "name": "rma",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Road Management Act class, such as Freeway, Arterial Highway or Local Road. Values: Arterial Highway, Arterial Other, Freeway, Local Road, Non Arterial, Proposed Road.",
            "examples": [
              "eq.Proposed Road"
            ]
          },
          {
            "name": "divided",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Divided, Undivided.",
            "examples": [
              "eq.Undivided"
            ]
          },
          {
            "name": "stat_div_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Country, Metro.",
            "examples": [
              "eq.Metro"
            ]
          },
          {
            "name": "sa2_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "sa2_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "lga_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.29399"
            ]
          },
          {
            "name": "lga_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.Yarriambiack"
            ]
          },
          {
            "name": "sal_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "sal_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "sed_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.28804"
            ]
          },
          {
            "name": "sed_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Yan Yean (Northern Victoria)"
            ]
          },
          {
            "name": "ced_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.238"
            ]
          },
          {
            "name": "ced_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Wills"
            ]
          },
          {
            "name": "select",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Fields to return, comma-separated. Every field when absent."
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/{slug}/aggregate": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Counts, sums, averages, minimums and maximums by group",
        "operationId": "aggregate",
        "description": "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 with `ilike`. 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`.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "vic-road-crashes"
              ]
            },
            "description": "The dataset's slug, as in its page URL `/d/<slug>/`."
          },
          {
            "name": "group",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "On `aggregate`, fields to group by, comma-separated."
          },
          {
            "name": "metric",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "count"
            },
            "description": "On `aggregate`, `count`, `sum.field`, `avg.field`, `min.field` or `max.field`, comma-separated. `count` when absent."
          },
          {
            "name": "accident_no",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The publisher's identifier for the crash."
          },
          {
            "name": "accident_date",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "date. From 2012-01-01 to 2026-01-31."
          },
          {
            "name": "accident_time",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. 24-hour time."
          },
          {
            "name": "accident_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Collision with a fixed object, Collision with vehicle, Fall from or in moving vehicle, No collision and no object struck, Other accident, Struck Pedestrian, Struck animal, Vehicle overturned (no collision), collision with some other object.",
            "examples": [
              "eq.collision with some other object"
            ]
          },
          {
            "name": "day_of_week",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday.",
            "examples": [
              "eq.Wednesday"
            ]
          },
          {
            "name": "dca_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. DCA (Definitions for Classifying Accidents) code. Kept as text.",
            "examples": [
              "eq.199"
            ]
          },
          {
            "name": "dca_code_description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.VEHICLE STRIKES DOOR OF PARKED/STATIONARY VEHICLE"
            ]
          },
          {
            "name": "light_condition",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Dark No street lights, Dark Street lights off, Dark Street lights on, Dark Street lights unknown, Day, Dusk/Dawn, Unk..",
            "examples": [
              "eq.Unk."
            ]
          },
          {
            "name": "police_attend",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Yes, No or Not known. Values: No, Not known, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_geometry",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Cross intersection, Dead end, Multiple intersection, Not at intersection, Private property, Road closure, T intersection, Unknown, Y intersection.",
            "examples": [
              "eq.Y intersection"
            ]
          },
          {
            "name": "severity",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Fatal accident, Serious injury accident, Other injury accident or Non injury accident. Values: Fatal accident, Non injury accident, Other injury accident, Serious injury accident.",
            "examples": [
              "eq.Serious injury accident"
            ]
          },
          {
            "name": "speed_zone",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. A band such as 60 km/hr. Kept as text because the publisher uses bands. Values: 100 km/hr, 110 km/hr, 30km/hr, 40 km/hr, 50 km/hr, 60 km/hr, 70 km/hr, 75 km/hr, 80 km/hr, 90 km/hr, Camping grounds or off road, Not known, Other speed limit.",
            "examples": [
              "eq.Other speed limit"
            ]
          },
          {
            "name": "run_offroad",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: No, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string."
          },
          {
            "name": "road_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.WYND"
            ]
          },
          {
            "name": "road_route_1",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Kept as text."
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.YARRIAMBIACK"
            ]
          },
          {
            "name": "dtp_region",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: BARWON SOUTH WEST, GIPPSLAND, GRAMPIANS, GREATER METRO, HUME, INNER METRO, LODDON MALLEE, METROPOLITAN SOUTH EAST REGION.",
            "examples": [
              "eq.METROPOLITAN SOUTH EAST REGION"
            ]
          },
          {
            "name": "latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. Blank for 85 crashes in the September 2026 release. From -39.03083 to -34.115696."
          },
          {
            "name": "longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. From 140.96648 to 149.75746."
          },
          {
            "name": "vicgrid_x",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2129485.022 to 2920148.029."
          },
          {
            "name": "vicgrid_y",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2273772.291 to 2815696.123."
          },
          {
            "name": "total_persons",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 1 to 97.",
            "examples": [
              "eq.97"
            ]
          },
          {
            "name": "inj_or_fatal",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 48.",
            "examples": [
              "eq.48"
            ]
          },
          {
            "name": "fatality",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "seriousinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15.",
            "examples": [
              "eq.15"
            ]
          },
          {
            "name": "otherinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 43.",
            "examples": [
              "eq.43"
            ]
          },
          {
            "name": "noninjured",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 94.",
            "examples": [
              "eq.94"
            ]
          },
          {
            "name": "males",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 46.",
            "examples": [
              "eq.46"
            ]
          },
          {
            "name": "females",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 51.",
            "examples": [
              "eq.51"
            ]
          },
          {
            "name": "bicyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "passenger",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 95.",
            "examples": [
              "eq.95"
            ]
          },
          {
            "name": "driver",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "pedestrian",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9, 11.",
            "examples": [
              "eq.11"
            ]
          },
          {
            "name": "pillion",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "motorcyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "unknown",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 52.",
            "examples": [
              "eq.52"
            ]
          },
          {
            "name": "ped_cyclist_5_12",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "ped_cyclist_13_18",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "old_ped_65_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "old_driver_75_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "young_driver_18_25",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "no_of_vehicles",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "heavyvehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4.",
            "examples": [
              "eq.4"
            ]
          },
          {
            "name": "passengervehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19.",
            "examples": [
              "eq.19"
            ]
          },
          {
            "name": "motorcycle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "pt_vehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "deg_urban_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: LARGE_PROVINCIAL_CITIES, MELBOURNE_CBD, MELB_URBAN, RURAL_VICTORIA, SMALL_CITIES, SMALL_TOWNS, TOWNS.",
            "examples": [
              "eq.TOWNS"
            ]
          },
          {
            "name": "srns",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: A, B, C, M.",
            "examples": [
              "eq.M"
            ]
          },
          {
            "name": "rma",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Road Management Act class, such as Freeway, Arterial Highway or Local Road. Values: Arterial Highway, Arterial Other, Freeway, Local Road, Non Arterial, Proposed Road.",
            "examples": [
              "eq.Proposed Road"
            ]
          },
          {
            "name": "divided",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Divided, Undivided.",
            "examples": [
              "eq.Undivided"
            ]
          },
          {
            "name": "stat_div_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Country, Metro.",
            "examples": [
              "eq.Metro"
            ]
          },
          {
            "name": "sa2_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "sa2_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "lga_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.29399"
            ]
          },
          {
            "name": "lga_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.Yarriambiack"
            ]
          },
          {
            "name": "sal_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "sal_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "sed_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.28804"
            ]
          },
          {
            "name": "sed_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Yan Yean (Northern Victoria)"
            ]
          },
          {
            "name": "ced_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.238"
            ]
          },
          {
            "name": "ced_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Wills"
            ]
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/{slug}/versions/{version}/aggregate": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Counts, sums, averages, minimums and maximums by group",
        "operationId": "aggregateVersion",
        "description": "Groups and totals of any dataset in one dated 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 with `ilike`. 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`.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "vic-road-crashes"
              ]
            },
            "description": "The dataset's slug, as in its page URL `/d/<slug>/`."
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "A dated version loaded for queries, from the versions path. Answers for a dated version never change."
          },
          {
            "name": "group",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "On `aggregate`, fields to group by, comma-separated."
          },
          {
            "name": "metric",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "count"
            },
            "description": "On `aggregate`, `count`, `sum.field`, `avg.field`, `min.field` or `max.field`, comma-separated. `count` when absent."
          },
          {
            "name": "accident_no",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The publisher's identifier for the crash."
          },
          {
            "name": "accident_date",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "date. From 2012-01-01 to 2026-01-31."
          },
          {
            "name": "accident_time",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. 24-hour time."
          },
          {
            "name": "accident_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Collision with a fixed object, Collision with vehicle, Fall from or in moving vehicle, No collision and no object struck, Other accident, Struck Pedestrian, Struck animal, Vehicle overturned (no collision), collision with some other object.",
            "examples": [
              "eq.collision with some other object"
            ]
          },
          {
            "name": "day_of_week",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday.",
            "examples": [
              "eq.Wednesday"
            ]
          },
          {
            "name": "dca_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. DCA (Definitions for Classifying Accidents) code. Kept as text.",
            "examples": [
              "eq.199"
            ]
          },
          {
            "name": "dca_code_description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.VEHICLE STRIKES DOOR OF PARKED/STATIONARY VEHICLE"
            ]
          },
          {
            "name": "light_condition",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Dark No street lights, Dark Street lights off, Dark Street lights on, Dark Street lights unknown, Day, Dusk/Dawn, Unk..",
            "examples": [
              "eq.Unk."
            ]
          },
          {
            "name": "police_attend",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Yes, No or Not known. Values: No, Not known, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_geometry",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Cross intersection, Dead end, Multiple intersection, Not at intersection, Private property, Road closure, T intersection, Unknown, Y intersection.",
            "examples": [
              "eq.Y intersection"
            ]
          },
          {
            "name": "severity",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Fatal accident, Serious injury accident, Other injury accident or Non injury accident. Values: Fatal accident, Non injury accident, Other injury accident, Serious injury accident.",
            "examples": [
              "eq.Serious injury accident"
            ]
          },
          {
            "name": "speed_zone",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. A band such as 60 km/hr. Kept as text because the publisher uses bands. Values: 100 km/hr, 110 km/hr, 30km/hr, 40 km/hr, 50 km/hr, 60 km/hr, 70 km/hr, 75 km/hr, 80 km/hr, 90 km/hr, Camping grounds or off road, Not known, Other speed limit.",
            "examples": [
              "eq.Other speed limit"
            ]
          },
          {
            "name": "run_offroad",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: No, Yes.",
            "examples": [
              "eq.Yes"
            ]
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string."
          },
          {
            "name": "road_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.WYND"
            ]
          },
          {
            "name": "road_route_1",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Kept as text."
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string.",
            "examples": [
              "eq.YARRIAMBIACK"
            ]
          },
          {
            "name": "dtp_region",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: BARWON SOUTH WEST, GIPPSLAND, GRAMPIANS, GREATER METRO, HUME, INNER METRO, LODDON MALLEE, METROPOLITAN SOUTH EAST REGION.",
            "examples": [
              "eq.METROPOLITAN SOUTH EAST REGION"
            ]
          },
          {
            "name": "latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. Blank for 85 crashes in the September 2026 release. From -39.03083 to -34.115696."
          },
          {
            "name": "longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Decimal degrees. From 140.96648 to 149.75746."
          },
          {
            "name": "vicgrid_x",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2129485.022 to 2920148.029."
          },
          {
            "name": "vicgrid_y",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 2273772.291 to 2815696.123."
          },
          {
            "name": "total_persons",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 1 to 97.",
            "examples": [
              "eq.97"
            ]
          },
          {
            "name": "inj_or_fatal",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 48.",
            "examples": [
              "eq.48"
            ]
          },
          {
            "name": "fatality",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "seriousinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15.",
            "examples": [
              "eq.15"
            ]
          },
          {
            "name": "otherinjury",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 43.",
            "examples": [
              "eq.43"
            ]
          },
          {
            "name": "noninjured",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 94.",
            "examples": [
              "eq.94"
            ]
          },
          {
            "name": "males",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 46.",
            "examples": [
              "eq.46"
            ]
          },
          {
            "name": "females",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 51.",
            "examples": [
              "eq.51"
            ]
          },
          {
            "name": "bicyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "passenger",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 95.",
            "examples": [
              "eq.95"
            ]
          },
          {
            "name": "driver",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "pedestrian",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9, 11.",
            "examples": [
              "eq.11"
            ]
          },
          {
            "name": "pillion",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "motorcyclist",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "unknown",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. From 0 to 52.",
            "examples": [
              "eq.52"
            ]
          },
          {
            "name": "ped_cyclist_5_12",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5, 8.",
            "examples": [
              "eq.8"
            ]
          },
          {
            "name": "ped_cyclist_13_18",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "old_ped_65_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "old_driver_75_and_over",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3.",
            "examples": [
              "eq.3"
            ]
          },
          {
            "name": "young_driver_18_25",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5.",
            "examples": [
              "eq.5"
            ]
          },
          {
            "name": "no_of_vehicles",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21.",
            "examples": [
              "eq.21"
            ]
          },
          {
            "name": "heavyvehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4.",
            "examples": [
              "eq.4"
            ]
          },
          {
            "name": "passengervehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19.",
            "examples": [
              "eq.19"
            ]
          },
          {
            "name": "motorcycle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2, 3, 4, 5, 6, 7, 9.",
            "examples": [
              "eq.9"
            ]
          },
          {
            "name": "pt_vehicle",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. Values: 0, 1, 2.",
            "examples": [
              "eq.2"
            ]
          },
          {
            "name": "deg_urban_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: LARGE_PROVINCIAL_CITIES, MELBOURNE_CBD, MELB_URBAN, RURAL_VICTORIA, SMALL_CITIES, SMALL_TOWNS, TOWNS.",
            "examples": [
              "eq.TOWNS"
            ]
          },
          {
            "name": "srns",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: A, B, C, M.",
            "examples": [
              "eq.M"
            ]
          },
          {
            "name": "rma",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Road Management Act class, such as Freeway, Arterial Highway or Local Road. Values: Arterial Highway, Arterial Other, Freeway, Local Road, Non Arterial, Proposed Road.",
            "examples": [
              "eq.Proposed Road"
            ]
          },
          {
            "name": "divided",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Divided, Undivided.",
            "examples": [
              "eq.Undivided"
            ]
          },
          {
            "name": "stat_div_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Values: Country, Metro.",
            "examples": [
              "eq.Metro"
            ]
          },
          {
            "name": "sa2_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "sa2_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Statistical Area Level 2 (2021) the point falls in. Joined by location from abs-sa2-2021, not published by the publisher."
          },
          {
            "name": "lga_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.29399"
            ]
          },
          {
            "name": "lga_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Local Government Area (2025) the point falls in. Joined by location from abs-lga-2025, not published by the publisher.",
            "examples": [
              "eq.Yarriambiack"
            ]
          },
          {
            "name": "sal_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "sal_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Suburb and Locality (2021) the point falls in. Joined by location from abs-suburbs-localities-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "poa_2021_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Postal Area (2021) the point falls in. Joined by location from abs-postal-areas-2021, not published by the publisher."
          },
          {
            "name": "sed_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.28804"
            ]
          },
          {
            "name": "sed_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the State Electoral Division (2025) the point falls in. Joined by location from abs-state-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Yan Yean (Northern Victoria)"
            ]
          },
          {
            "name": "ced_2025_code",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Code of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.238"
            ]
          },
          {
            "name": "ced_2025_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. Name of the Commonwealth Electoral Division (2025) the point falls in. Joined by location from abs-federal-electoral-divisions-2025, not published by the publisher.",
            "examples": [
              "eq.Wills"
            ]
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/{slug}/versions": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "The versions loaded for queries, newest first, with the URLs to query each",
        "operationId": "queryVersions",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "vic-road-crashes"
              ]
            },
            "description": "The dataset's slug, as in its page URL `/d/<slug>/`."
          }
        ],
        "responses": {
          "200": {
            "description": "Loaded versions with row counts and URLs."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
