API — Australia (AU)

8 state/territorys, 550 local government areas.

Endpoints

GET /api/v1/countries/au.json
Full dataset — all levels, all records
GET /api/v1/au/state.json
All 8 state/territorys (State/Territory)
GET /api/v1/au/lga.json
All 550 local government areas (Local Government Area)
/api/v1/au/lga.json
GET /api/v1/au/state/{slug}.json
Single state/territory with children

Quick Start

JavaScript

fetch('https://api.openadmindata.org/api/v1/countries/au.json')
  .then(r => r.json())
  .then(data => {
    const levels = data.meta.levels.map(l => l.name_en);
    console.log('Australia:', levels.join(' → '));
    
    console.log(data.data.state.length, 'state/territorys');
  });

Python

import requests
data = requests.get('https://api.openadmindata.org/api/v1/countries/au.json').json()
states = data['data']['state']
print(f"Australia: {len(states)} state/territorys")

cURL

curl -s https://api.openadmindata.org/api/v1/au/state.json | jq '.count'

Schema

Each entity record contains:

FieldTypeDescription
idstringUnique identifier
name_localstringName in local script
name_enstringEnglish / romanized name
slugstringURL-safe slug
latnumberLatitude (WGS84)
lonnumberLongitude (WGS84)
parent_idstring?Parent entity ID (null for top level)
parent_name_localstring?Parent name in local script
parent_name_enstring?Parent English name
postal_codestring?Postal code (deepest level only, where available)