placedb

Countries

🇿🇦 South Africa 9 administrative divisions

9 first-level administrative divisions — states, provinces, regions or counties, depending on the country — and 3,483 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
ZA · ZAF · 710
Capital
Pretoria
Continent
Africa
Currency
ZAR — rand
Calling code
+27
Internet domain
.za
Divisions
9
Cities and towns
3,483

Divisions

The 9 divisions of South Africa

9 of them carry an ISO 3166-2 code. Counts are cities and towns inside each division.

Division ISO 3166-2 Cities and towns Population
Gauteng ZA-GP 706 15,099,422
KwaZulu-Natal ZA-KZN 614 12,423,907
Limpopo ZA-LP 544 6,572,720
Eastern Cape ZA-EC 392 7,230,204
Western Cape ZA-WC 307 7,113,776
Mpumalanga ZA-MP 281 5,143,324
North West ZA-NW 226 3,804,548
Free State ZA-FS 213 2,964,412
Northern Cape ZA-NC 196 1,355,946

A further 4 places could not be matched to a division and are listed separately in the API as "unassigned": true.

Get it

Both files, in one request each

# every division of South Africa
curl -s https://api.placedb.org/v1/regions/ZA.json

# the cities and towns of one division (id from the file above)
curl -s https://api.placedb.org/v1/cities/ZA/<id>.json

No key, no account, no rate limit. The endpoints · try it live.