Suburb - Risks
Hazard item counts
GET
/v1/suburbs/{suburb_name}/risks/counts5¢ per callCounts of contamination points, heritage items and erosion-prone polygons inside the suburb.
Price: 5¢ 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
RiskCountsfields returned to you
area_namestringalways returnedCanonical ABS SAL suburb name.
area_levelstringalways returnedAlways 'suburb'.
contamination_points_nintegeralways returnedContamination-register points inside the suburb.
heritage_items_nintegeralways returnedHeritage items inside the suburb.
erosion_nintegeralways returnedCoastal-erosion-prone polygons intersecting the suburb.
GET
/v1/suburbs/{suburb_name}/risks/countscURL
curl --request GET \
--url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/risks/counts' \
--header 'Authorization: Bearer test'Example Responses
{
"data": {
"area_name": "Belmont North",
"area_level": "suburb",
"contamination_points_n": 3,
"heritage_items_n": 0,
"erosion_n": 0
}
}Successful Response200
application/json
