Afghanistan — Country Data API

ISO-2: AF ISO-3: AFG Asia AFN — Afghan Afghani

Afghanistan (AF/AFG) geographic data via REST API: capital Kabul, AFN (Afghan Afghani), Pashto, Dari, states/provinces, cities, postal codes. Access Afghanistan country data through CountryDataAPI using ISO code 'AF'. Free to start, JSON format, plans from $9.99/mo.

Country overview

Capital

Kabul

Currency

AFN

Afghan Afghani

Languages

Pashto, Dari

Timezone

UTC+4:30

What data is available for Afghanistan?

The following geographic datasets are available for Afghanistan via the REST API.

States & Provinces

All administrative subdivisions for Afghanistan

Get all states

Cities

All cities and localities in Afghanistan

Get all cities

Zip / Postal Codes

Complete postal code dataset for Afghanistan

Get zip codes

API Request Example

Fetch Afghanistan data using the ISO code AF as the query parameter.

Get country by code

GET https://api.countrydataapi.com/v1/countries/by-code?code=AF

Authorization: Bearer YOUR_API_KEY

cURL example

curl "https://api.countrydataapi.com/v1/states/by-country?country=AF"   -H "Authorization: Bearer YOUR_KEY"

Access Afghanistan Data via API

Integrate Afghanistan geographic data into your application today. Countries, states, cities, and zip codes in one API.