South Africa Postal Code API

Look up postal codes in South Africa with PostalDataPI — sub-10ms responses, one API key for 70+ countries.

Country Code

ZA

Format

NNNN

Example

0002

About South Africa postal codes

South Africa uses 4-digit postal codes. Pretoria starts with 0, Cape Town with 7-8, Johannesburg with 2.

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": "0002", "country": "ZA", "apiKey": "YOUR_API_KEY"}'

Python

from postaldatapi import PostalDataPI

client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup("0002", country="ZA")
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('0002', { country: 'ZA' });
console.log(result.placeName, result.latitude, result.longitude);

$0.000028 per query

Same price for South Africa and all 70+ countries. No tiers, no per-country pricing.

South Africa Postal Code API | PostalDataPI