Iran Postal Code API
Look up postal codes in Iran with PostalDataPI — sub-5ms responses, one API key for 240+ countries and territories.
Country Code
IR
Format
varies
Example
00
About Iran postal codes
Iran uses 10-digit postal codes, though the first 5 digits identify the region and are most commonly used. Tehran codes start with 1, Isfahan with 8, Shiraz with 7. The system managed by Iran Post covers all 31 provinces with nearly 4,000 regional codes.
Local term: postal code | Regex pattern: ^.+$
API Usage Examples
cURL
curl -X POST https://postaldatapi.com/api/lookup \
-H "Content-Type: application/json" \
-d '{"zipcode": "00", "country": "IR", "apiKey": "YOUR_API_KEY"}'Python
from postaldatapi import PostalDataPI
client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup("00", country="IR")
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('00', { country: 'IR' });
console.log(result.placeName, result.latitude, result.longitude);$0.000028 per query
Same price for Iran and all 240+ countries and territories. No tiers, no per-country pricing.