Tanzania Postal Code API
Look up postal codes in Tanzania with PostalDataPI — sub-5ms responses, one API key for 240+ countries and territories.
Country Code
TZ
Format
varies
Example
,,,35091
About Tanzania postal codes
Tanzania uses 5-digit postal codes managed by Tanzania Posts Corporation. Dar es Salaam codes start with 11, Dodoma (the capital) with 41. The system serves both mainland Tanzania and Zanzibar.
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": ",,,35091", "country": "TZ", "apiKey": "YOUR_API_KEY"}'Python
from postaldatapi import PostalDataPI
client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup(",,,35091", country="TZ")
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(',,,35091', { country: 'TZ' });
console.log(result.placeName, result.latitude, result.longitude);$0.000028 per query
Same price for Tanzania and all 240+ countries and territories. No tiers, no per-country pricing.