API — Philippines (PH)

17 regions, 84 provinces, 1,634 municipalitys, 42,036 barangays.

Endpoints

GET /api/v1/countries/ph.json
Full dataset — all levels, all records
GET /api/v1/ph/region.json
All 17 regions (Rehiyon)
GET /api/v1/ph/province.json
All 84 provinces (Lalawigan)
GET /api/v1/ph/municipality.json
All 1,634 municipalitys (Bayan)
GET /api/v1/ph/barangay.json
All 42,036 barangays (Barangay)
GET /api/v1/ph/region/{slug}.json
Single region with children

Quick Start

JavaScript

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

Python

import requests
data = requests.get('https://openadmindata.org/api/v1/countries/ph.json').json()
regions = data['data']['region']
print(f"Philippines: {len(regions)} regions")

cURL

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