NigeriaOpenData
API Documentation
Access Nigeria economic data programmatically — raw data is free, AI queries require an API key

Get Your API Key

Enter your email to receive a free API key. The key gives you access to the AI-powered query endpoint.

Raw Data Free

GET/api/v1/data

Returns all economic data points (1999-2025) as JSON. No authentication required.

?year=2024Optional: filter by specific year
curl https://your-domain.com/api/v1/data?year=2025
Response fields
total_debt_usdTotal public debt in USD billions
external_debt_usdExternal debt in USD billions
domestic_debt_ngn_tnDomestic debt in NGN trillions
external_reserves_usdCBN reserves in USD billions
exchange_rate_officialOfficial NGN/USD rate
exchange_rate_parallelParallel market rate
inflation_rateCPI annual %
gdp_usdGDP in USD billions
debt_to_gdpDebt-to-GDP ratio %

AI Query API Key Required

POST/api/v1/query

Ask any question about Nigeria's economy in natural language. AI responds with data-backed analysis.

X-API-KeyYour API key (header)
queryYour question (JSON body)
curl -X POST https://your-domain.com/api/v1/query \ -H "Content-Type: application/json" \ -H "X-API-Key: ndc_your_key_here" \ -d '{"query": "How much debt did Buhari add per day?"}'

Pricing

Free Tier
$0
Raw data API (unlimited)
AI queries (100/month)
Community support
Pro (Coming Soon)
$29/mo
Unlimited AI queries
Weekly PDF reports
Custom analysis
Priority support