API — Singapore (SG)
5 regions, 55 planning areas, 332 subzones.
Endpoints
GET
/api/v1/sg/planning_area.json
All 55 planning areas (Planning Area)
GET
/api/v1/sg/region/{slug}.json
Single region with children
Quick Start
JavaScript
fetch('https://openadmindata.org/api/v1/countries/sg.json')
.then(r => r.json())
.then(data => {
const levels = data.meta.levels.map(l => l.name_en);
console.log('Singapore:', levels.join(' → '));
console.log(data.data.region.length, 'regions');
});
Python
import requests
data = requests.get('https://openadmindata.org/api/v1/countries/sg.json').json()
regions = data['data']['region']
print(f"Singapore: {len(regions)} regions")
cURL
curl -s https://openadmindata.org/api/v1/sg/region.json | jq '.count'
Schema
Each entity record contains:
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier |
name_local | string | Name in local script |
name_en | string | English / romanized name |
slug | string | URL-safe slug |
lat | number | Latitude (WGS84) |
lon | number | Longitude (WGS84) |
parent_id | string? | Parent entity ID (null for top level) |
parent_name_local | string? | Parent name in local script |
parent_name_en | string? | Parent English name |
postal_code | string? | Postal code (deepest level only, where available) |