Libya
ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Libya. Use them in forms, validation, and CountriesDB integrations.
About Libya codes
Need Libya (LY) for a checkout form, shipping zone, or backend validation? This page summarizes the ISO 3166-1 country codes and official subdivisions developers use with CountriesDB.
This guide lists 22 official ISO 3166-2 subdivisions for Libya. These are the same codes CountriesDB serves through widgets and the Backend Data API.
For production, use the CountriesDB country/subdivision widget or fetch Libya from the Data API and validate codes server-side instead of copying values from this page.
ISO codes
Official subdivisions (22)
Official ISO 3166-2 codes for Libya. Use these values in region/state selects and server-side validation, not informal or marketing region names.
| Code | Name | Type |
|---|---|---|
| LY-BU | Al Buţnān | popularate |
| LY-JA | Al Jabal al Akhḑar | popularate |
| LY-JG | Al Jabal al Gharbī | popularate |
| LY-JI | Al Jafārah | popularate |
| LY-JU | Al Jufrah | popularate |
| LY-KF | Al Kufrah | popularate |
| LY-MJ | Al Marj | popularate |
| LY-MB | Al Marqab | popularate |
| LY-WA | Al Wāḩāt | popularate |
| LY-NQ | An Nuqāţ al Khams | popularate |
| LY-ZA | Az Zāwiyah | popularate |
| LY-BA | Banghāzī | popularate |
| LY-DR | Darnah | popularate |
| LY-GT | Ghāt | popularate |
| LY-MI | Mişrātah | popularate |
| LY-MQ | Murzuq | popularate |
| LY-NL | Nālūt | popularate |
| LY-SB | Sabhā | popularate |
| LY-SR | Surt | popularate |
| LY-TB | Ţarābulus | popularate |
| LY-WD | Wādī al Ḩayāt | popularate |
| LY-WS | Wādī ash Shāţi’ | popularate |
Frequently asked questions
- What is the ISO 3166-1 code for Libya?
- Libya uses ISO 3166-1 alpha-2 LY, alpha-3 LBY, and numeric 434. These codes show up in forms, shipping, banking, and APIs.
- How many official ISO 3166-2 subdivisions does Libya have?
- CountriesDB lists 22 official ISO 3166-2 subdivisions for Libya (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
- How do I use Libya country and subdivision data in a form?
- Use the CountriesDB widget or Data API to fill country and subdivision selects for Libya, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.
Use Libya in your app
Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Libya (LY) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.