API — Sao Tome and Principe (ST)

2 islands, 7 districts.

Endpoints

GET /api/v1/countries/st.json
Full dataset — all levels, all records
GET /api/v1/st/island.json
All 2 islands (Ilha)
GET /api/v1/st/district.json
All 7 districts (Distrito)
GET /api/v1/st/island/{slug}.json
Single island with children
Example: /api/v1/st/island/prncipe.json

Quick Start

JavaScript

fetch('https://openadmindata.org/api/v1/countries/st.json')
  .then(r => r.json())
  .then(data => {
    const levels = data.meta.levels.map(l => l.name_en);
    console.log('Sao Tome and Principe:', levels.join(' → '));
    
    console.log(data.data.island.length, 'islands');
  });

Python

import requests
data = requests.get('https://openadmindata.org/api/v1/countries/st.json').json()
islands = data['data']['island']
print(f"Sao Tome and Principe: {len(islands)} islands")

cURL

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