Afghanistan Postal Code API
Look up postal codes in Afghanistan with PostalDataPI — sub-5ms responses, one API key for 240+ countries and territories.
Country Code
AF
Format
NNNN
Example
1001
About Afghanistan postal codes
Afghanistan uses 4-digit postal codes managed by Afghan Post, one of Central Asia's oldest postal services, established during the reign of Amir Sher Ali Khan in 1870. Kabul codes start with 10. The system covers all 34 provinces despite challenging mountainous terrain.
Local term: postal code | Regex pattern: ^\d{4}$
API Usage Examples
cURL
curl -X POST https://postaldatapi.com/api/lookup \
-H "Content-Type: application/json" \
-d '{"zipcode": "1001", "country": "AF", "apiKey": "YOUR_API_KEY"}'Python
from postaldatapi import PostalDataPI
client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup("1001", country="AF")
print(result.place_name, result.latitude, result.longitude)Node.js
import { PostalDataPI } from 'postaldatapi';
const client = new PostalDataPI({ apiKey: 'YOUR_API_KEY' });
const result = await client.lookup('1001', { country: 'AF' });
console.log(result.placeName, result.latitude, result.longitude);$0.000028 per query
Same price for Afghanistan and all 240+ countries and territories. No tiers, no per-country pricing.