API — United Arab Emirates (AE)

7 emirates, 107 citys.

Endpoints

GET /api/v1/countries/ae.json
Full dataset — all levels, all records
GET /api/v1/ae/emirate.json
All 7 emirates (إمارة)
GET /api/v1/ae/city.json
All 107 citys (مدينة)
GET /api/v1/ae/emirate/{slug}.json
Single emirate with children
Example: /api/v1/ae/emirate/abu-dhabi.json

Quick Start

JavaScript

fetch('https://openadmindata.org/api/v1/countries/ae.json')
  .then(r => r.json())
  .then(data => {
    const levels = data.meta.levels.map(l => l.name_en);
    console.log('United Arab Emirates:', levels.join(' → '));
    
    console.log(data.data.emirate.length, 'emirates');
  });

Python

import requests
data = requests.get('https://openadmindata.org/api/v1/countries/ae.json').json()
emirates = data['data']['emirate']
print(f"United Arab Emirates: {len(emirates)} emirates")

cURL

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