Open economic evidence

Open economic data. Traceable by design.

Access the data behind the African Economies explorer, including source records, units, dates and machine-readable downloads.

Access the dataset

42 country-year records · 6 economies · 2019–2025. Source snapshot retrieved 2026-09-19.

CSV opens in Excel, Numbers, Stata, R and other analysis tools. JSON includes definitions, source links and metadata. Blank CSV cells and JSON null values mean unavailable, not zero.

World Bank data terms · CC BY 4.0

Preview the dataset & field definitions

GDP: current US$ million. Trade, trade balance, exports and imports: % of GDP. Figures below retain source precision.

Country-year observations
countryyeargdptradebalance
GHA201968352.629246155576.824802732152-1.9256030070897978
GHA202070008.2438598665966.5754987162431-3.5246577428201995
GHA202179514.204730397962.7078309128346-2.5975919735884005
GHA202273919.003212199870.1154557937915-0.7873686891497016
GHA202380547.146875952664.3878615301086-0.8462285413093973
GHA202483288.585604026868.96687176094861.1446946370601054
GHA2025114209.905278717Not availableNot available
CIV201960382.89469735569644.66041058307950.6605669470109028
CIV202063027.852805420441.94263181905260.044305149546801204
CIV202172794.636653779345.1140327762435-0.5214971023630994
CIV202270922.824813910252.8663910413483-4.3316703888894
CIV202380780.312569164648.8170039103332-3.9463258089050015
CIV202487113.17914928451.26498454009830.7910376769637004
CIV202599773.5556661988154.55790693365735.0128844764387
NGA2019668219.9926865749Not availableNot available
NGA2020598586.817817392Not availableNot available
NGA2021609147.716965348Not availableNot available
NGA2022646950.257575455Not availableNot available
NGA2023487387.801877803Not availableNot available
NGA2024252261.880140271Not availableNot available
NGA2025290794.361542112Not availableNot available
SEN201923403.995992135464.2362506061005-14.269982211327498
SEN202024530.513037751860.0468716137065-18.6457659025654
SEN202127520.78412975080269.3759939883832-20.096789757029
SEN202227783.332222675979.3974220189679-25.999093570866297
SEN202330696.33129578260271.5942815846823-25.381355821934896
SEN202432169.996051850268.2363510312865-17.2720527442191
SEN202537006.536238373171.0687063150657-6.092969615532297
KEN2019100378.43620737131.759461841481-8.903470467614602
KEN2020100657.50575054530.3991387830411-7.5170484187224
KEN2021109703.6589049940135.0020477795269-8.782571375883299
KEN2022114448.9781526369940.2753238373561-8.3612671114623
KEN2023107500.88468501340.9337677377556-7.507079138011399
KEN2024120397.5378498260140.0062529666939-6.296343184990199
KEN2025135941.27887881537.5210445911226-5.9929090259813
ZAF2019389330.03222426953.89799640814060.5062624020896003
ZAF2020337974.65540805550.75965908041774.392169240374901
ZAF2021419986.28437536856.16471362775466.218507382567001
ZAF2022407596.04306788564.947134402342.131746230514402
ZAF2023381440.72449123265.67987597407070.827749537292398
ZAF2024401144.99837358561.6467704730251.937043656235602
ZAF2025427184.32599730760.91109713936281.9092923280878011

country = ISO 3-letter code; year = observation year; retrievedAt = IDER retrieval date; sourceUpdatedAt = source database update date. The CSV also includes exportsPctGDP and importsPctGDP. JSON adds indicator definitions, source URLs and observation status.

API access

Use this public, read-only endpoint in your analysis tools. No API key is required. It serves the dated snapshot above; it is not a live World Bank feed.

https://iderafrica.com/api/data

Optional filters: country = GHA, CIV, NGA, SEN, KEN, ZAF; indicator = gdp, trade, balance; year = 2019–2025.

Add format=csv for CSV, or format=json&download=1 to save JSON. Omit filters for all records. Invalid, duplicate or empty parameters return HTTP 400; writes return HTTP 405. GET, HEAD and OPTIONS are supported. Cross-origin public reads are enabled without credentials.

Example: Ghana’s trade balance

https://iderafrica.com/api/data?country=GHA&indicator=balance

Read the example response on this page

Seven annual observations. The JSON response includes metadata and an observations array with country, year, indicator, value, unit, sourceUrl, importsSourceUrl, sourceUpdatedAt, retrievedAt and status. The values are shown below.

Ghana · trade balance · % of GDP
yearvaluestatus
2019-1.9256030070897978derived
2020-3.5246577428201995derived
2021-2.5975919735884005derived
2022-0.7873686891497016derived
2023-0.8462285413093973derived
20241.1446946370601054derived
2025Not availableunavailable

African Economies · GDP and trade, 2019–2025

Six economies: Ghana, Côte d’Ivoire, Nigeria, Senegal, Kenya and South Africa. GDP in current US$ million; trade and trade balance in percent of GDP. Annual coverage 2019–2025, from the World Bank World Development Indicators API, dataset vintage 13 July 2026, retrieved 19 September 2026. Missing values are retained; annual 2026 observations are not available.

Source, methods and reuse

World Bank World Development Indicators API, dataset vintage 13 July 2026, retrieved 19 September 2026. API precision is retained; display values are rounded. GDP in current US dollars is divided by one million. Trade balance equals exports minus imports of goods and services as percentages of GDP from the same year and source vintage. Nominal GDP changes are not real growth. Missing country-year observations remain unavailable. World Bank CC BY 4.0 terms apply.

Read API

The read-only JSON endpoint supports country (GHA, CIV, NGA, SEN, KEN, ZAF), indicator (gdp, trade, balance) and year (2019–2025) filters. Invalid values receive a clear error. The version is 2026-09-19. No API key is required for this open dataset; the site’s current access policy still applies.

Custom datasets and analytical products

Commission a sector, customer, investment or development evidence product with agreed definitions, sources, refresh schedules and reuse rights. Restricted project resources are shared through the signed-in client workspace with explicit access assignments.

Evidence into action

Make your next business, investment or policy decision with stronger evidence.

Discuss the questions, methods, expertise, timeframe and deliverables your decision needs.