Country comparison
South Africa vs Morocco
South Africa and Morocco side by side across 71 indicators — each row links to the full 54-country ranking, with sources and the API call behind every figure.
GDP$401.14B vs $160.61BSouth Africa vs Morocco
GDP per Capita$6,267 vs $4,153South Africa vs Morocco
Population64.01M vs 38.08MSouth Africa vs Morocco
Indicator by indicator
Get this comparison via API
One call returns both countries' latest value for any indicator — JSON, with source metadata.
curl "https://api.africa-api.com/v1/data?metric_key=gdp_current_usd&latest=true&country_codes=ZA,MA" \
-H "Authorization: Bearer $AFRICA_API_KEY"Frequently asked questions
Does South Africa or Morocco have the larger economy?
South Africa has the larger economy: $401.14B for South Africa versus $160.61B for Morocco (GDP, current US$).
How do South Africa and Morocco compare across indicators?
This page compares South Africa and Morocco on 71 indicators — economy, demographics, health, governance and more — each with its latest value, source, and a link to the full 54-country ranking.
How do I get this comparison via the API?
Call GET /v1/data?metric_key=<key>&latest=true&country_codes=ZA,MA with a free Africa API key to get both countries' latest values as JSON.
More comparisons