API — Oman (OM)

11 governorates, 49 wilayats, 361 villages.

Endpoints

GET /api/v1/countries/om.json
Full dataset — all levels, all records
GET /api/v1/om/governorate.json
All 11 governorates (محافظة)
GET /api/v1/om/wilayat.json
All 49 wilayats (ولاية)
GET /api/v1/om/village.json
All 361 villages (قرية)
GET /api/v1/om/governorate/{slug}.json
Single governorate with children

Quick Start

JavaScript

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

Python

import requests
data = requests.get('https://openadmindata.org/api/v1/countries/om.json').json()
governorates = data['data']['governorate']
print(f"Oman: {len(governorates)} governorates")

cURL

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