API — Solomon Islands (SB)

10 provinces, 50 constituencys, 183 wards.

Endpoints

GET /api/v1/countries/sb.json
Full dataset — all levels, all records
GET /api/v1/sb/province.json
All 10 provinces (Province)
GET /api/v1/sb/constituency.json
All 50 constituencys (Constituency)
GET /api/v1/sb/ward.json
All 183 wards (Ward)
GET /api/v1/sb/province/{slug}.json
Single province with children
Example: /api/v1/sb/province/choiseul.json

Quick Start

JavaScript

fetch('https://openadmindata.org/api/v1/countries/sb.json')
  .then(r => r.json())
  .then(data => {
    const levels = data.meta.levels.map(l => l.name_en);
    console.log('Solomon Islands:', levels.join(' → '));
    
    console.log(data.data.province.length, 'provinces');
  });

Python

import requests
data = requests.get('https://openadmindata.org/api/v1/countries/sb.json').json()
provinces = data['data']['province']
print(f"Solomon Islands: {len(provinces)} provinces")

cURL

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