placedb

Countries

🇱🇾 Libya 22 administrative divisions

22 first-level administrative divisions — states, provinces, regions or counties, depending on the country — and 430 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
LY · LBY · 434
Capital
Tripoli
Continent
Africa
Currency
LYD — Libyan dinar
Calling code
+218
Internet domain
.ly
Divisions
22
Cities and towns
430

Divisions

The 22 divisions of Libya

22 of them carry an ISO 3166-2 code. Counts are cities and towns inside each division.

Division ISO 3166-2 Cities and towns Population
Jabal al Akhdar LY-JA 45 —
Murqub LY-MB 44 —
Jabal al Gharbi District LY-JG 33 304,159
Marj District LY-MJ 31 —
Derna District LY-DR 30 —
Misrata District LY-MI 26 —
Al Wahat District LY-WA 24 —
Butnan District LY-BU 22 —
Murzuq District LY-MQ 19 —
Sirte District LY-SR 19 141,378
Wadi al Hayaa District LY-WD 19 —
Nalut District LY-NL 17 —
Nuqat al Khams District LY-NQ 16 —
Tripoli District LY-TB 15 —
Benghazi LY-BA 14 631,555
Zawiya District LY-ZA 14 —
Jafara LY-JI 13 —
Kufra District LY-KF 11 50,104
Sabha District LY-SB 7 —
Jufra LY-JU 6 —
Ghat District LY-GT 2 —
Wadi al Shatii District LY-WS 2 —

A further 1 places could not be matched to a division and are listed separately in the API as "unassigned": true.

Get it

Both files, in one request each

# every division of Libya
curl -s https://api.placedb.org/v1/regions/LY.json

# the cities and towns of one division (id from the file above)
curl -s https://api.placedb.org/v1/cities/LY/<id>.json

No key, no account, no rate limit. The endpoints · try it live.