Nigerian data over plain HTTPS.
Query Dataminal from applications, notebooks, pipelines and AI agents. Read-only JSON with an API key, and the release behind each row, so what you build can cite what it shows.
Read-only JSON with an API key, and the release behind each row, for applications, notebooks and AI agents.
- 48 datasets on the API
- JSON over HTTPS
- API keys by plan
curl -H "X-Api-Key: $DATAMINAL_API_KEY" "https://api.dataminal.com/nigeria/cpi/latest"import requests
BASE = "https://api.dataminal.com"
rows = requests.get(
f"{BASE}/nigeria/cpi/history",
params={"category": "food", "geography": "national"},
timeout=30,
).json()["data"]
for row in sorted(rows, key=lambda r: r["period"])[-3:]:
print(row["period"], row["yoy_pct"], row["source_release"])Data products that show their sources.
Dashboards and monitors
Inflation, the exchange rate, reserves, oil output and grid generation, refreshed when the agency publishes and labelled with the release.
Notebooks and models
Full histories as flat records, with the methodology a figure is measured on and the breaks where it changes.
Pipelines
Poll a dataset's releases endpoint and pull what is new. Every statistical dataset lists the editions it has ingested.
AI agents
An agent needs no SDK: every route is a GET with query parameters and a flat JSON response, so any HTTP tool can call it, and the rows carry something to cite. To use Dataminal in Claude, ChatGPT, Gemini or Perplexity without writing code, add Dataminal's MCP server.
Start from the list, not the docs.
The API describes itself: the root and /datasets list every dataset family and its path. Most dataset pages on the site also carry an API tab with parameters and a working example.
curl -H "X-Api-Key: $DATAMINAL_API_KEY" "https://api.dataminal.com/datasets"curl -H "X-Api-Key: $DATAMINAL_API_KEY" "https://api.dataminal.com/nigeria/labour/breakdown?dimension=sex&metric=unemployment_rate"
# Responses pin one methodology_version. A request whose range
# crosses NBS's 2023 survey change returns the current series
# with a methodology_break block saying what was withheld.Built to be relied on.
Keys and plans
An API key returns full rows within your plan's request and row allowance, and filter parameters narrow a request to the rows you need.
Formats
JSON from every API route, and CSV from the dataset pages on the site with a free account.
Versions and breaks
Where a measure changed method, a response pins one methodology version, and a range that crosses the change says so in a
methodology_breakblock.Clear errors
An invalid parameter returns HTTP 400 and an unknown route 404, each with an
errorstring saying what was wrong.
Keep going.
Make your first request.
Every endpoint, with its parameters, an example and its response.