Addiction, alcohol, gambling and drug offences - councils (LGA) [Data Explorer (legacy)]
/v1/lga/{lga_name}/crime/data-explorer-addiction-and-substance-offences5¢ per callLegacy Data Explorer figures for a council (LGA): 36 fields on addiction, alcohol, gambling and drug offences, each with its latest value, its own as_of date and its rank among comparable areas.
Coverage: Council (lga) level; 4,507 values; latest periods 2016-12-31 to 2023-12-31. Current to 2023-12-31. Full description, field list and method: /v1/datasets/data-explorer-crime-disadvantage-addiction-and-substance-offences-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_namestringrequiredCouncil (LGA) name exactly as /v1/lga/list returns it, e.g. `Lake Macquarie`.
Query parameters
fieldsstringoptionalComma-separated subset of: alcohol_consumption_per_person, alcoholics_men, alcoholics_people, alcoholics_women, amphetamine, beer_consumption_per_person, cannabis, cider_consumption_per_person, cocaine, drug_convictions, drug_offences, drug_use_per_1_000_people, ecstasy, gaming_machine_losses_per_capita, ghb, heroin, locations_with_poker_machines, methylamphetamine, other_drug_offences, other_drugs, people_at_risk_of_dangerous_binge_drinking, poker_machines, poker_machines_pokies, possess_drugs, prescription, produce_drugs, rehab_attendance_per_1_000_people, sell_or_supply_drugs, smokers_tobacco_men, smokers_tobacco_people, smokers_tobacco_women, spending_on_poker_machines_per_person, spirit_consumption_per_person, total_poker_machine_losses, trafficking_drugs, wine_consumption_per_person. Omit for all.
historybooleanoptionalAlso return every earlier period of each field (oldest first).
Responses
Successful Response
datasetstringalways returnedDataset slug; describe it with /v1/datasets/{slug}.
collectionstringalways returnedAlways data-explorer: the legacy Data Explorer figures, served as last built.
levelstringalways returnedsuburb, lga, postcode, sa2, sa3 or electorate.
areastringalways returnedCanonical name (or postcode) of the area answered.
as_ofstring · datealways returnedLatest `as_of` among the fields returned (excluding forecasts).
modelledbooleanalways returnedTrue when the figures are scores or estimates from a model.
fieldsarray of FigureFieldalways returnedEvery requested field held for the area. Fields with no value for it are left out.
/v1/lga/{lga_name}/crime/data-explorer-addiction-and-substance-offencescurl --request GET \
--url 'https://api.microburbs.com.au/v1/lga/Lake%20Macquarie/crime/data-explorer-addiction-and-substance-offences' \
--header 'Authorization: Bearer test'{
"data": {
"dataset": "data-explorer-crime-disadvantage-addiction-and-substance-offences-lga",
"collection": "data-explorer",
"level": "lga",
"area": "Port Phillip",
"as_of": "2023-12-31",
"modelled": false,
"fields": [
{
"field": "alcohol_consumption_per_person",
"name": "Alcohol consumption per person",
"unit": "L",
"as_of": "2017-12-31",
"value": 9.11,
"rank": 5,
"areas": 30,
"forecast": false,
"name_inferred": false,
"see_also": []
},
{
"field": "alcoholics_men",
"name": "Alcoholics - men",
"unit": "ratio 0-1",
"as_of": "2018-12-31",
"value": 0.12,
"rank": 1,
"areas": 29,
"forecast": false,
"name_inferred": false,
"see_also": []
},
{
"field": "alcoholics_people",
"name": "Alcoholics - people",
"unit": "ratio 0-1",
"as_of": "2018-12-31",
"value": 0.17,
"rank": 1,
"areas": 29,
"forecast": false,
"name_inferred": false,
"see_also": []
}
]
}
}