Microburbs
Suburb - Shapes

Public-housing share by SA1

GET/v1/suburbs/{suburb_name}/shapes/public-housing-sa120¢ per call

SA1 polygons in the suburb with their 2021 census public-housing share (only SA1s above 0%).

Price: 20¢ per call.

Authorization

Request

The only values you send. Fields under Responses below are what comes back — you never pass those.

Path parameters

suburb_namestringrequired

Query parameters

None — this endpoint accepts no query parameters. Call the path above with your bearer token and nothing else.

Responses

Successful Response

application/json
SuburbPublicHousingSa1fields returned to you
area_namestringalways returned

Canonical ABS SAL name.

area_levelstringalways returned

Always 'suburb'.

countintegeralways returned

Number of SA1s returned (only SA1s with a non-zero share).

geojsonobjectalways returned

GeoJSON FeatureCollection — one Feature per SA1 whose centroid falls inside the suburb and whose 2021 public-housing share is > 0. Properties: `sa1` (ABS SA1 code), `public_housing_pct` (0–100).

GET/v1/suburbs/{suburb_name}/shapes/public-housing-sa1
cURL
curl --request GET \
  --url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/shapes/public-housing-sa1' \
  --header 'Authorization: Bearer test'
Example Responses
{
  "data": {
    "area_level": "suburb",
    "area_name": "Belmont North",
    "count": 7,
    "geojson": {
      "features": [
        {
          "geometry": {
            "coordinates": [
              [
                [
                  151.66,
                  -32.99
                ],
                [
                  151.67,
                  -32.99
                ],
                [
                  151.67,
                  -33
                ],
                [
                  151.66,
                  -32.99
                ]
              ]
            ],
            "type": "Polygon"
          },
          "properties": {
            "sa1": "11102130801",
            "public_housing_pct": 36.9
          },
          "type": "Feature"
        }
      ],
      "type": "FeatureCollection"
    }
  }
}
Successful Response200
application/json