Who Ghana actually trades food and agricultural goods with: import and export quantity and value for each commodity against each partner country, year by year since 1986. The bilateral detail behind the trade totals — which country buys the cocoa and which sells the rice. Sourced from FAO FAOSTAT, CC BY 4.0. 191815 records.
The newest figures in this dataset are from 2023; the source has published nothing newer. Check the dates before relying on a figure.
Every column this dataset returns, with its type. This is the shape of the API response.
| Field | Type |
|---|---|
| item | TEXT NOT NULL |
| item_code | TEXT |
| element | TEXT |
| partner | TEXT |
| year | INTEGER NOT NULL |
| value | DECIMAL(20,4) |
| unit | TEXT |
| flag | TEXT |
| source | TEXT |
| itemTEXT NOT NULL | item codeTEXT | elementTEXT | partnerTEXT | yearINTEGER NOT NULL | valueDECIMAL(20,4) | unitTEXT | flagTEXT | sourceTEXT |
|---|---|---|---|---|---|---|---|---|
| Abaca, manila hemp, raw | 809 | Export quantity | Nigeria | 2003 | 0 | t | Official figure | FAO FAOSTAT (CC BY 4.0) |
| Abaca, manila hemp, raw | 809 | Export value | Nigeria | 2003 | 0 | 1000 USD | Official figure | FAO FAOSTAT (CC BY 4.0) |
| Abaca, manila hemp, raw | 809 | Import quantity | Germany | 2002 | 0 | t | Official figure | FAO FAOSTAT (CC BY 4.0) |
| Abaca, manila hemp, raw | 809 | Import quantity | Mauritius | 2005 | 13 | t | Official figure | FAO FAOSTAT (CC BY 4.0) |
| Abaca, manila hemp, raw | 809 | Import value | Germany | 2002 | 0 | 1000 USD | Official figure | FAO FAOSTAT (CC BY 4.0) |
191,810 more rows — see the plans
See the plansGET connect.apighana.com/api/data/agricultural_trade_partners
Cite this dataset and the organisation its records come from (FAO FAOSTAT). Datasets are updated, so keep the date you accessed it in the citation. These records cover 1998 to 2023; say which period your figures come from. Last updated from the source on Sep 18, 2026.
API Ghana. (2026). Agricultural trade partners (Version 1.0) [Data set, compiled from FAO FAOSTAT]. Retrieved October 1, 2026, from https://apighana.com/datasets/agricultural-trade-partners
curl "https://connect.apighana.com/api/data/agricultural_trade_partners?page=1&limit=20" \ -H "X-API-Key: $APIGHANA_KEY"
const response = await fetch(
"https://connect.apighana.com/api/data/agricultural_trade_partners?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/agricultural_trade_partners",
headers={"X-API-Key": os.environ["APIGHANA_KEY"]},
params={"page": 1, "limit": 20},
)
rows = response.json()["data"]