placedb

Countries

🇦🇫 Afghanistan 34 administrative divisions

34 first-level administrative divisions (states, provinces, regions or counties, depending on the country) and 1,061 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
AF · AFG · 004
Capital
Kabul
Continent
Asia
Currency
AFN, afghani
Calling code
+93
Internet domain
.af
Divisions
34
Cities and towns
1,061

Divisions

The 34 divisions of Afghanistan

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

Division ISO 3166-2 Cities and towns Population
Badakhshan Province AF-BDS 236 1,054,087
Badghis Province AF-BDG 63 549,583
Baghlan Province AF-BGL 73 1,014,634
Balkh Province AF-BAL 104 1,509,183
Bamyan Province AF-BAM 170 495,557
Daykundi Province AF-DAY 4 516,504
Farah Province AF-FRA 12 563,026
Faryab Province AF-FYB 6 1,109,223
Ghazni Province AF-GHA 31 1,362,504
Ghor Province AF-GHO 16 764,472
Helmand Province AF-HEL 32 1,446,230
Herat Province AF-HER 32 1,762,157
Jowzjan Province AF-JOW 17 613,481
Kabul Province AF-KAB 26 5,766,181
Kandahar Province AF-KAN 30 1,431,876
Kapisa Province AF-KAP 7 399,500
Khost Province AF-KHO 16 647,730
Kunar Province AF-KNR 15 578,500
Kunduz Province AF-KDZ 15 820,000
Laghman Province AF-LAG 3 4,035,000
Logar Province AF-LOG 12 442,037
Maidan Wardak Province AF-WAR 8 656,720
Nangarhar Province AF-NAN 16 1,735,531
Nimruz Province AF-NIM 11 149,000
Nuristan Province AF-NUR 5 160,000
Paktia Province AF-PIA 8 667,956
Paktika Province AF-PKA 20 393,800
Panjshir Province AF-PAN 1 176,000
Parwan Province AF-PAR 8 664,502
Samangan Province AF-SAM 13 438,235
Sar-e Pol Province AF-SAR 19 532,000
Takhar Province AF-TAK 16 1,113,173
Uruzgan Province AF-URU 8 436,079
Zabul Province AF-ZAB 8 391,150

A further 0 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 Afghanistan
curl -s https://api.placedb.org/v1/regions/AF.json

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

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