Suburb - Lifestyle
Nearest capital city + distance
GET
/v1/suburbs/{suburb_name}/lifestyle/cbd3¢ per callNearest capital city and straight-line distance in km.
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
LifestyleCbdfields returned to you
area_namestringalways returnedSuburb (SAL) name.
area_levelstringalways returnedAlways 'suburb' for these endpoints.
citystringmay be nullCapital city name (e.g. 'Sydney').
distance_kmnumberalways returnedStraight-line distance to the capital (km).
GET
/v1/suburbs/{suburb_name}/lifestyle/cbdcURL
curl --request GET \
--url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/lifestyle/cbd' \
--header 'Authorization: Bearer test'Example Responses
{
"data": {
"area_level": "suburb",
"area_name": "Belmont North",
"city": "Sydney",
"distance_km": 108
}
}Successful Response200
application/json
