How I Built a $0/Month Nigerian Retail Price & CBN Inflation Tracker with FastAPI, Postgres, and GitHub Actions
In Nigeria's $25B+ consumer retail and FMCG market, official inflation numbers arrive with a lag — and even when the official Central Bank of Nigeria (CBN) NFEM exchange rate holds steady around ₦1,387–₦1,392/$1 , the exact same branded grocery item can cost 20% to 55% more depending on which online supermarket you buy it from on the same day. For example, in our latest live snapshot on…
In Nigeria, the official inflation numbers are often released with a significant delay, and even when the Central Bank of Nigeria (CBN) exchange rate remains stable around ₦1,387–₦1,392/$1, the same branded grocery item can cost 20% to 55% more depending on which online supermarket you purchase it from on the same day. The Figures.ng platform aims to create an open, continuously updated price floor for Nigeria's $25B+ consumer retail and FMCG market without incurring substantial costs.
The platform uses a zero-server architecture, where components run on free or low-cost managed tiers until revenue justifies scaling. Scraping occurs via GitHub Actions Cron jobs, pulling official Central Bank of Nigeria (CBN) JSON endpoints and running polite Python collectors across Nigerian online supermarkets and e-commerce catalogs for 115+ high-demand brand queries.
The platform stores canonical SKUs across 6 sectors in a Supabase PostgreSQL database, performing row-level security and automated outlier cleanup passes.
Normalization of e-commerce data is a critical challenge, as search results often include multiple pack sizes, cartons, wholesale pallets, and promo bundles. The platform employs strict multipack and multi-carton guards in Python to reject these patterns unless the canonical SKU expects that exact pack count. Postgres PERCENTILE_CONT(0.5) calculates the national composites' median, paired with a database-level QA trigger to flag any new price jumping more than 20% from the prior verified observation.
This ensures accurate price benchmarks without relying on average calculations that could be skewed by outliers.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to