Skip to content

open-admin-data/libya-administrative-divisions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libya Administrative Divisions / ليبيا

Overview

Item Details
Region 3
District 22
Baladiya 104
Muhalla 1,165
Coordinates ✅ Included (all levels)
Formats JSON, NDJSON, CSV
License CC-BY-4.0
Last Updated 2026-05-29
Website openadmindata.org/ly
API openadmindata.org/api/ly

Browse by Region

# Region Districts Baladiyas Muhallas Link
1 الشرق (East) 7 26 287 Browse
2 الغرب (West) 9 63 741 Browse
3 الجنوب (South) 6 15 137 Browse

Data Files

File Format Description
all-region.json JSON All 3 region records
all-district.json JSON All 22 district records
all-baladiya.json JSON All 104 baladiya records
all-muhalla.json JSON All 1,165 muhalla records
all-flat.json JSON Levels 1-3 flat array
all-flat.ndjson NDJSON Streaming format
all-flat.csv CSV Spreadsheet format
hierarchy.json JSON Nested tree
schema.json JSON Schema Data schema

Quick Start

Python

import json

with open("data/all-region.json", "r", encoding="utf-8") as f:
    data = json.load(f)

for r in data:
    print(f"{r['name']['local']} ({r['name']['en']}) — {r['children_count']['district']} districts")

JavaScript

import { readFileSync } from "fs";

const data = JSON.parse(readFileSync("data/all-region.json", "utf-8"));
console.log(`Total: ${data.length} regions`);

Schema

Field Type Description
id string Unique identifier
level integer 1=region, 2=district, 3=baladiya, 4=muhalla
level_name object Level label (local + English)
name.local string Name in local script
name.en string English name
name.slug string URL-safe slug
parent object/null Parent division reference
ancestors array Full ancestor chain
children_count object Count of children per level
zip_codes array Postal codes (where available)
geo.lat string Latitude (WGS84)
geo.lon string Longitude (WGS84)

Full schema: data/schema.json

Hierarchy Browse

divisions/{region-slug}/
divisions/{region-slug}/{district-slug}/
divisions/{region-slug}/{district-slug}/{baladiya-slug}/

Muhallas are listed inline in each baladiya's README.

AI Integration

Citation

Libya Administrative Divisions Dataset (CC-BY-4.0)
URL: https://github.com/open-admin-data/libya-administrative-divisions

See CITATION.cff for machine-readable citation.

License

Related

  • Open Admin Data — Browse, search and explore administrative divisions for every country
  • open-admin-data — GitHub organization with all country repos
  • ListBase — Structured reference data for every country

About

Open dataset of Libya's administrative divisions — 3 regions, 22 districts, 104 baladiyas, 1165 muhallas. Bilingual Arabic + English. CC-BY-4.0

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors