Voting patterns - federal electorates [Data Explorer (legacy)]
/v1/electorates/{electorate_name}/demographics/data-explorer-voting-patterns5¢ per callLegacy Data Explorer figures for a federal electorate: 1 fields on voting patterns, each with its latest value, its own as_of date and its rank among comparable areas.
Coverage: Federal electorate level; 142 values; latest periods 2017-11-15 to 2017-11-15. Current to 2017-11-15. Full description, field list and method: /v1/datasets/data-explorer-people-lifestyle-voting-patterns-electorate.
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
electorate_namestringrequiredFederal electorate name, e.g. `Wentworth`.
Query parameters
fieldsstringoptionalComma-separated subset of: gay_marriage_support. 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/electorates/{electorate_name}/demographics/data-explorer-voting-patternscurl --request GET \
--url 'https://api.microburbs.com.au/v1/electorates/Wentworth/demographics/data-explorer-voting-patterns' \
--header 'Authorization: Bearer test'{
"data": {
"dataset": "data-explorer-people-lifestyle-voting-patterns-electorate",
"collection": "data-explorer",
"level": "electorate",
"area": "Wentworth",
"as_of": "2017-11-15",
"modelled": false,
"fields": [
{
"field": "gay_marriage_support",
"name": "Gay marriage support",
"unit": "ratio 0-1",
"as_of": "2017-11-15",
"value": 0.81,
"rank": 2,
"areas": 28,
"forecast": false,
"name_inferred": false,
"see_also": []
}
]
}
}