What Ghana actually trades: merchandise exports and imports in dollars, and the share of each made up of food, agricultural raw materials, fuel, ores and metals, and manufactures. 11 indicators covering 1960-2025. 548 records.
Every column this dataset returns, with its type. This is the shape of the API response.
| Field | Type |
|---|---|
| indicator_code | TEXT NOT NULL |
| indicator_name | TEXT NOT NULL |
| year | INTEGER NOT NULL |
| value | DECIMAL(24,6) |
| unit | TEXT |
| source | TEXT |
| indicator codeTEXT NOT NULL | indicator nameTEXT NOT NULL | yearINTEGER NOT NULL | valueDECIMAL(24,6) | unitTEXT | sourceTEXT |
|---|---|---|---|---|---|
| TM.VAL.FOOD.ZS.UN | Food imports (% of merchandise imports) | 1962 | 20.827324 | % of merchandise imports | World Bank Open Data (CC BY 4.0) |
| TM.VAL.FOOD.ZS.UN | Food imports (% of merchandise imports) | 1963 | 15.731505 | % of merchandise imports | World Bank Open Data (CC BY 4.0) |
| TM.VAL.FOOD.ZS.UN | Food imports (% of merchandise imports) | 1964 | 18.29664 | % of merchandise imports | World Bank Open Data (CC BY 4.0) |
| TM.VAL.FOOD.ZS.UN | Food imports (% of merchandise imports) | 1965 | 12.784996 | % of merchandise imports | World Bank Open Data (CC BY 4.0) |
| TM.VAL.FOOD.ZS.UN | Food imports (% of merchandise imports) | 1966 | 17.673867 | % of merchandise imports | World Bank Open Data (CC BY 4.0) |
543 more rows — see the plans
See the plansGET connect.apighana.com/api/data/trade_composition
Cite this dataset and the organisation its records come from (World Bank Open Data). Datasets are updated, so keep the date you accessed it in the citation. These records cover 1960 to 2025; say which period your figures come from. Last updated from the source on Sep 18, 2026.
API Ghana. (2026). Trade composition (Version 1.0) [Data set, compiled from World Bank Open Data]. Retrieved October 1, 2026, from https://apighana.com/datasets/trade-composition
curl "https://connect.apighana.com/api/data/trade_composition?page=1&limit=20" \ -H "X-API-Key: $APIGHANA_KEY"
const response = await fetch(
"https://connect.apighana.com/api/data/trade_composition?page=1&limit=20",
{ headers: { "X-API-Key": process.env.APIGHANA_KEY } },
);
const { data, meta } = await response.json();import os, requests
response = requests.get(
"https://connect.apighana.com/api/data/trade_composition",
headers={"X-API-Key": os.environ["APIGHANA_KEY"]},
params={"page": 1, "limit": 20},
)
rows = response.json()["data"]