Postal code

Afghanistan postal codes

An Afghanistan postal code looks like 1001. zipcodestack has 1,408 postal codes for Afghanistan.

Format
–
Example
1001
Codes in our database
1,408
Local name
Postal code

Afghanistan postal code format

Pattern– (# digit, @ letter)
Examples1001, 2601, 3801
Regex^(?:\d{4})$

Format and regex from Google's address metadata (libaddressinput). The regex checks the shape of a code, not whether it exists.

Neighbouring countries

Afghanistan postal codes: FAQ

What is the postal code format in Afghanistan?

Afghanistan postal codes have no single published pattern. Examples: 1001, 2601, 3801.

What regex validates Afghanistan postal codes?

^(?:\d{4})$ matches the official format (from Google's address metadata). It checks the shape only; whether a code exists needs a lookup in a postal code database such as the zipcodestack API.

How many postal codes are there in Afghanistan?

The zipcodestack database contains 1,408 postal codes for Afghanistan, each with place name, region and coordinates.

Postal code API

Look up Afghanistan postal codes by API

zipcodestack looks up, validates and searches postal codes in 182 countries: city, state, coordinates, distances and radius search, as JSON.

/v1/search documentation International postal code API All documentation

300 free requests every month. No credit card required.

GET https://api.zipcodestack.com/v1/search?codes=1001&country=af

{
  "results": {
    "1001": [{
      "postal_code": "1001",
      "country_code": "AF",
      "city": "…",
      "state": "…",
      "latitude": …,
      "longitude": …
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free