Addiction, alcohol, gambling and drug offences - suburbs [Data Explorer (legacy)]
/v1/suburbs/{suburb_name}/crime/data-explorer-addiction-and-substance-offences5¢ per callLegacy Data Explorer figures for a suburb: 63 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: Suburb level; 203,028 values; latest periods 2021-12-30 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.
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).
Exact suburb identifier required. Exact official suburb name (SAL), e.g. Burwood (NSW) — many suburbs carry a state suffix. If starting from free text or an unverified bare name, first call GET /v1/geocode/suburb?q=<text>, then use the exact data[].area_name it returns. Suburb data endpoints do not guess a state or typo-correct names.
Authorization
Request
The only values you send. Fields under Responses below are what comes back — you never pass those.
Path parameters
suburb_namestringrequiredExact official suburb name (SAL), e.g. `Burwood (NSW)` — many suburbs carry a state suffix. If starting from free text or an unverified bare name, first call `GET /v1/geocode/suburb?q=<text>`, then use the exact `data[].area_name` it returns. Suburb data endpoints do not guess a state or typo-correct names.
Query parameters
fieldsstringoptionalComma-separated subset of: addiction_index, alcohol_services_open_24_hours, alcohol_services_open_until_12am, alcohol_services_open_until_1am, alcohol_services_open_until_2am, alcohol_services_open_until_3am, alcohol_services_open_until_4am, alcohol_services_open_until_5am, alcohol_services_open_until_6am, alcohol_services_open_until_7am, alcohol_venues_open_after_12am, alcohol_venues_open_after_3am, alcohol_venues_open_after_5am, betting_and_gaming_offences, betting_and_gaming_offences_crime_betting_and_gaming_offences, byo_venues, cultivate_drugs, cultivate_or_manufacture_drugs, cultivating_cannabis, dangerous_substance_offences, dealing_trafficking_in_amphetamines, dealing_trafficking_in_cannabis, dealing_trafficking_in_cocaine, dealing_trafficking_in_ecstasy, dealing_trafficking_in_narcotics, dealing_trafficking_in_other_drugs, drink_driving, drug_dealing, drug_dealing_crime_drug_offences_drug_dealing, drug_driving, drug_offences, drug_offences_all_types, drug_offences_total, drug_possession, drug_possession_crime_drug_offences_drug_possession, drug_trafficking, drug_use, drunk_and_disorderly_in_public, gaming_racing_and_betting_offences, importing_drugs, liquor_excl_drunkenness, liquor_and_tobacco_licensing_offences, liquor_licences, liquor_licenses, liquor_offences, manufacture_drug, manufacture_drugs, overall_addiction, other_drug_offences, other_drug_offences_crime_other_drug_offences, other_drug_offences_crime_drug_offences_other_drug_offences, poker_machines, possess_drug_manufacturing_equipment_or_precursor, possession_and_or_use_of_amphetamines, possession_and_or_use_of_cannabis, possession_and_or_use_of_cocaine, possession_and_or_use_of_ecstasy, possession_and_or_use_of_narcotics, possession_and_or_use_of_other_drugs, possession_of_drug_paraphernalia, restaurants_with_alcohol_service, total_drug_offences, total_drug_offences_crime_comb_sec_drug_offences. 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/suburbs/{suburb_name}/crime/data-explorer-addiction-and-substance-offencescurl --request GET \
--url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/crime/data-explorer-addiction-and-substance-offences' \
--header 'Authorization: Bearer test'{
"data": {
"dataset": "data-explorer-crime-disadvantage-addiction-and-substance-offences",
"collection": "data-explorer",
"level": "suburb",
"area": "Bondi",
"as_of": "2023-12-31",
"modelled": false,
"fields": [
{
"field": "addiction_index",
"name": "Addiction Index",
"unit": "number",
"as_of": "2023-05-30",
"value": 45,
"rank": 122,
"areas": 757,
"forecast": false,
"name_inferred": false,
"see_also": []
},
{
"field": "alcohol_venues_open_after_12am",
"name": "Alcohol venues open after 12am",
"unit": "number",
"as_of": "2022-12-31",
"value": 0,
"rank": 477,
"areas": 588,
"forecast": false,
"name_inferred": false,
"see_also": []
},
{
"field": "alcohol_venues_open_after_3am",
"name": "Alcohol venues open after 3am",
"unit": "number",
"as_of": "2022-12-31",
"value": 0,
"rank": 468,
"areas": 588,
"forecast": false,
"name_inferred": false,
"see_also": []
}
]
}
}