Lifestyle and prevention - councils (LGA) [Data Explorer (legacy)]
/v1/lga/{lga_name}/demographics/data-explorer-lifestyle-and-prevention5¢ per callLegacy Data Explorer figures for a council (LGA): 12 fields on lifestyle and prevention, each with its latest value, its own as_of date and its rank among comparable areas.
Coverage: Council (lga) level; 4,509 values; latest periods 2016-12-31 to 2018-12-31. Current to 2018-12-31. Full description, field list and method: /v1/datasets/data-explorer-people-lifestyle-lifestyle-and-prevention-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: people_doing_no_exercise, obesity, obese_males, obese_young_females, obese_young_males, overweight_young_males, share_smoking_during_pregnancy, share_vaccine_coverage, proportion_of_obese_males, proportion_of_overweight_males, proportion_of_overweight_people, smoking_during_pregnancy. 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}/demographics/data-explorer-lifestyle-and-preventioncurl --request GET \
--url 'https://api.microburbs.com.au/v1/lga/Lake%20Macquarie/demographics/data-explorer-lifestyle-and-prevention' \
--header 'Authorization: Bearer test'{
"data": {
"dataset": "data-explorer-people-lifestyle-lifestyle-and-prevention-lga",
"collection": "data-explorer",
"level": "lga",
"area": "Port Phillip",
"as_of": "2018-12-31",
"modelled": false,
"fields": [
{
"field": "people_doing_no_exercise",
"name": "% People doing no exercise",
"unit": "%",
"as_of": "2018-12-31",
"value": 54.4,
"rank": 27,
"areas": 29,
"forecast": false,
"name_inferred": false,
"see_also": []
},
{
"field": "obesity",
"name": "Obesity",
"as_of": "2016-12-31",
"value": 0.082,
"rank": 29,
"areas": 29,
"forecast": false,
"name_inferred": true,
"see_also": []
},
{
"field": "obese_males",
"name": "Obese males",
"unit": "%",
"as_of": "2018-12-31",
"value": 11500,
"rank": 22,
"areas": 29,
"forecast": false,
"name_inferred": false,
"see_also": []
}
]
}
}