Suburb - Ethnicity
Ancestry breakdown
GET
/v1/suburbs/{suburb_name}/ethnicity/ancestry3¢ per callAncestry breakdown from the ABS census.
Price: 3¢ per call.
Authorization
Request
The only values you send. Fields under Responses below are what comes back — you never pass those.
Path parameters
suburb_namestringrequiredQuery parameters
None — this endpoint accepts no query parameters. Call the path above with your bearer token and nothing else.
Responses
Successful Response
application/json
list[EthnicityRow]fields returned to you
Array of:
area_namestringalways returnedSuburb (SAL) name.
area_levelstringalways returnedAlways 'suburb'.
proportionnumbermay be nullShare of the suburb identifying with this category (0–1).
ancestrystringmay be nullOnly on /ethnicity/ancestry.
birthplacestringmay be nullOnly on /ethnicity/birthplace.
GET
/v1/suburbs/{suburb_name}/ethnicity/ancestrycURL
curl --request GET \
--url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/ethnicity/ancestry' \
--header 'Authorization: Bearer test'Example Responses
{
"data": [
{
"area_name": "Belmont North",
"area_level": "suburb",
"ancestry": "Australians",
"proportion": 0.926304347826087
},
{
"area_name": "Belmont North",
"area_level": "suburb",
"ancestry": "Northern and Western Europeans",
"proportion": 0.028440434782608694
},
{
"area_name": "Belmont North",
"area_level": "suburb",
"ancestry": "Southern Europeans",
"proportion": 0.0016239130434782605
}
]
}Successful Response200
application/json
