African Inflation Monitor avatar

African Inflation Monitor

Pricing

from $0.10 / latest cpi snapshot

Go to Apify Store
African Inflation Monitor

African Inflation Monitor

Monthly CPI and inflation data for 7 African countries pulled directly from national statistics offices — Ghana (GSS), Morocco (HCP), Tunisia (INS), South Africa (SARB), Zambia (BoZ), Kenya (CBK), Uganda (UBOS). Returns CPI index, YoY %, MoM % and food sub-indices. Every record is source-attributed.

Pricing

from $0.10 / latest cpi snapshot

Rating

0.0

(0)

Developer

Simon M

Simon M

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Share

Africa Inflation Monitor — Monthly CPI Data

Delivers monthly Consumer Price Index (CPI) and inflation rates for 7 African countries — directly from national statistics offices and central banks. Data is typically available 2–4 weeks after the reference period, compared to 6–12 months for World Bank / IMF aggregator feeds.

Countries: Ghana · Morocco · Tunisia · South Africa · Zambia · Kenya · Uganda


Why this actor

AggregatorAfrica CPI lagThis actor
World Bank6–12 months2–4 weeks
IMF6–12 months2–4 weeks

Each record includes CPI index level, year-on-year % change, month-on-month % change, and food/non-food sub-categories where available — normalised across all 7 countries.


Coverage

CountrySourceLegalCPI indexYoYMoMFoodHistorical depth
Ghana (GH)GSS StatsBank PX-Web API🟡 no ban✅ pub✅ pub✅ indexJan 1998
Morocco (MA)HCP BDS API — CC-BY 4.0🟢 CC-BYderivedderived✅ indexJan 2017
Tunisia (TN)INS HTML tables🟢 open✅ pub✅ pub✅ indexRolling 9 mo
South Africa (ZA)SARB JSON API🟡 © footer✅ pubJan 2000
Zambia (ZM)BoZ JSON API🟡 no ban✅ pub✅ pub✅ yoyFeb 2010
Kenya (KE)CBK wpDataTables🟡 © footer✅ pub— + annualAvgJan 2005
Uganda (UG)UBOS Excel via WP🟡 © footerderivedderived✅ indexJul 2017

Note: Food sub-category is not available for South Africa or Kenya from any machine-readable source without browser automation. South Africa also lacks a CPI index level via the SARB API (headline YoY only).


Modes

latest (default)

Returns the single most recently published CPI month for each country. One API call per country, results in ~7 records. Recommended for scheduled daily or weekly runs.

historical

Returns monthly CPI rows for a specified date range. Requires dateFrom and dateTo in YYYY-MM format.

Limitations in historical mode:

  • Tunisia: only the rolling 9-month window is available — no archive API.
  • Uganda: each month requires downloading a separate Excel file (~650 KB each). For Uganda, latest mode is strongly recommended; historical across many months is slow.

Input

ParameterTypeDefaultDescription
modestringlatestlatest or historical
countriesstring[]all 7ISO 3166-1 alpha-2 codes: GH, MA, TN, ZA, ZM, KE, UG
dateFromstringRequired for historical. YYYY-MM
dateTostringRequired for historical. YYYY-MM
maxItemsinteger5000Hard cap on total output records

Output example

Ghana — latest:

{
"schemaVersion": "0.1",
"id": "GH:2026-01",
"country": "GH",
"countryName": "Ghana",
"period": "2026-01",
"currency": "GHS",
"cpiIndex": 262.3,
"cpiBaseYear": "2018",
"yoyChange": 3.8,
"yoyChangeDerived": false,
"momChange": 0.2,
"momChangeDerived": false,
"food": 294.3,
"foodType": "index",
"nonFood": 239.1,
"nonFoodType": "index",
"annualAverage": null,
"source": {
"name": "Ghana Statistical Service (GSS) StatsBank",
"url": "https://statsbank.statsghana.gov.gh/api/v1/en/Macroeconomic Indicators/Prices and Inflation/cpi.px",
"retrievedAt": "2026-06-04T14:05:06.862Z",
"asOfDate": "2026-01",
"licenseNote": "Source: Ghana Statistical Service (statsghana.gov.gh). Government statistical data, reproduced for informational purposes."
},
"warnings": []
}

Kenya — latest (headline-only source):

{
"id": "KE:2026-05",
"country": "KE",
"period": "2026-05",
"currency": "KES",
"cpiIndex": null,
"yoyChange": 6.68,
"momChange": null,
"food": null,
"annualAverage": 4.66,
"source": { "name": "Central Bank of Kenya (CBK)", ... }
}

Cost (Pay-per-event)

Run typeCost
latest — all 7 countries$0.10
latest — 2 countries$0.10 (same snapshot charge)
Historical — 1 country, 12 months$0.12
Historical — Ghana full (1998–2026, ~337 months)$3.37
Historical — all 7, full depth~$13

Legality & disclaimers

All data reproduced from official government sources. Each output record carries a source.licenseNote with the legal basis:

  • Morocco (HCP): CC-BY 4.0 — explicit open licence
  • Tunisia (INS): Explicit open data declaration
  • Ghana, Zambia, Kenya, Uganda, South Africa: No redistribution prohibition found on any government web page as of 2026-06-04 (verified via direct inspection). Published under the factual-data rationale: raw statistical figures are not copyrightable; only creative expression is protected.

This data is for informational purposes only. Not financial advice.

All values are reproduced faithfully from the source — no values are synthesised or adjusted.


Limitations

  • South Africa: cpiIndex = null, food = null — SARB API only publishes headline YoY %. Stats SA (the primary source) is blocked by a WAF.
  • Kenya: cpiIndex = null, food = null, momChange = null — CBK only publishes YoY and 12-month annual average.
  • Tunisia: Rolling 9-month window only — no historical archive available via any machine-readable route.
  • Uganda: historical mode downloads one Excel file (~650 KB) per month. For ranges > 3 months, consider using latest mode on a schedule instead.
  • Morocco: yoyChangeDerived: true — YoY and MoM are computed from the index, not published directly by HCP.
  • Data cadence: CPI is published monthly, typically 2–4 weeks after the reference period. Scheduling this actor daily is fine but new data will only appear once per month.

Issues / feedback

Open an issue or contact simon.maltzen@mail.de