API — Greece (GR)

8 decentralized administrations, 14 peripherys, 398 municipalitys.

Endpoints

GET /api/v1/countries/gr.json
Full dataset — all levels, all records
GET /api/v1/gr/administration.json
All 8 decentralized administrations (Αποκεντρωμένη Διοίκηση)
GET /api/v1/gr/periphery.json
All 14 peripherys (Περιφέρεια)
GET /api/v1/gr/municipality.json
All 398 municipalitys (Δήμος)
GET /api/v1/gr/administration/{slug}.json
Single decentralized administration with children

Quick Start

JavaScript

fetch('https://api.openadmindata.org/api/v1/countries/gr.json')
  .then(r => r.json())
  .then(data => {
    const levels = data.meta.levels.map(l => l.name_en);
    console.log('Greece:', levels.join(' → '));
    
    console.log(data.data.administration.length, 'decentralized administrations');
  });

Python

import requests
data = requests.get('https://api.openadmindata.org/api/v1/countries/gr.json').json()
administrations = data['data']['administration']
print(f"Greece: {len(administrations)} decentralized administrations")

cURL

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