API — Timor-Leste (TL)

13 municipalitys, 65 administrative posts, 442 sucos.

Endpoints

GET /api/v1/countries/tl.json
Full dataset — all levels, all records
GET /api/v1/tl/municipality.json
All 13 municipalitys (Município)
GET /api/v1/tl/administrative_post.json
All 65 administrative posts (Posto Administrativo)
GET /api/v1/tl/suco.json
All 442 sucos (Suco)
GET /api/v1/tl/municipality/{slug}.json
Single municipality with children

Quick Start

JavaScript

fetch('https://openadmindata.org/api/v1/countries/tl.json')
  .then(r => r.json())
  .then(data => {
    const levels = data.meta.levels.map(l => l.name_en);
    console.log('Timor-Leste:', levels.join(' → '));
    
    console.log(data.data.municipality.length, 'municipalitys');
  });

Python

import requests
data = requests.get('https://openadmindata.org/api/v1/countries/tl.json').json()
municipalitys = data['data']['municipality']
print(f"Timor-Leste: {len(municipalitys)} municipalitys")

cURL

curl -s https://openadmindata.org/api/v1/tl/municipality.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)