MicroburbsMicroburbs
Free sandbox: try any request below on the sample suburbs, no signup. For every suburb, create an API key.
Classic docs
Microburbs Property Data API
LGA - Crime

Crime in New South Wales: time of week and offenders - councils (LGA) [Data Explorer (legacy)]

GET/v1/lga/{lga_name}/crime/data-explorer-crime-new-south-wales-by-time-and-offender5¢ per call

Legacy Data Explorer figures for a council (LGA): 129 fields on crime in new south wales: time of week and offenders, each with its latest value, its own as_of date and its rank among comparable areas.

Coverage: Council (lga) level; 15,187 values; latest periods 2022-12-30 to 2022-12-30. Current to 2022-12-30. Full description, field list and method: /v1/datasets/data-explorer-crime-disadvantage-crime-new-south-wales-by-time-and-offender-lga.

Part of the Data Explorer (legacy) collection: figures served as last built. Each field carries its own as_of; several link to the maintained field that replaces them (superseded_by).

Authorization

Request

The only values you send. Fields under Responses below are what comes back — you never pass those.

Path parameters

lga_namestringrequired

Council (LGA) name exactly as /v1/lga/list returns it, e.g. `Lake Macquarie`.

Query parameters

fieldsstringoptional

Comma-separated field slugs, e.g. annual_crimes, arrest_summons, charges_laid, crime_committed_on_friday_between_12am_6am. Omit for all 129. Every field is listed at `/v1/datasets/data-explorer-crime-disadvantage-crime-new-south-wales-by-time-and-offender-lga`.

historybooleanoptional

Also return every earlier period of each field (oldest first).

not sent · default false

Responses

Successful Response

application/json
DatasetFiguresfields returned to you
datasetstringalways returned

Dataset slug; describe it with /v1/datasets/{slug}.

collectionstringalways returned

Always data-explorer: the legacy Data Explorer figures, served as last built.

levelstringalways returned

suburb, lga, postcode, sa2, sa3 or electorate.

areastringalways returned

Canonical name (or postcode) of the area answered.

as_ofstring · datealways returned

Latest `as_of` among the fields returned (excluding forecasts).

modelledbooleanalways returned

True when the figures are scores or estimates from a model.

fieldsarray of FigureFieldalways returned

Every requested field held for the area. Fields with no value for it are left out.

GET/v1/lga/{lga_name}/crime/data-explorer-crime-new-south-wales-by-time-and-offender
cURL
curl --request GET \
  --url 'https://api.microburbs.com.au/v1/lga/Lake%20Macquarie/crime/data-explorer-crime-new-south-wales-by-time-and-offender' \
  --header 'Authorization: Bearer test'
Example Responses
{
  "data": {
    "dataset": "data-explorer-crime-disadvantage-crime-new-south-wales-by-time-and-offender-lga",
    "collection": "data-explorer",
    "level": "lga",
    "area": "Waverley",
    "as_of": "2022-12-30",
    "modelled": false,
    "fields": [
      {
        "field": "annual_crimes",
        "name": "Annual crimes",
        "unit": "number",
        "as_of": "2022-12-30",
        "value": 4140,
        "rank": 16,
        "areas": 33,
        "forecast": false,
        "name_inferred": false,
        "see_also": []
      },
      {
        "field": "crime_committed_on_friday_between_12am_6am",
        "name": "Crime committed on Friday between 12am-6am",
        "unit": "ratio 0-1",
        "as_of": "2022-12-30",
        "value": 0.0142,
        "rank": 21,
        "areas": 33,
        "forecast": false,
        "name_inferred": false,
        "see_also": []
      },
      {
        "field": "crime_committed_on_friday_between_12pm_6pm",
        "name": "Crime committed on Friday between 12pm-6pm",
        "unit": "ratio 0-1",
        "as_of": "2022-12-30",
        "value": 0.049,
        "rank": 25,
        "areas": 33,
        "forecast": false,
        "name_inferred": false,
        "see_also": []
      }
    ]
  }
}
Successful Response200
application/json