AI4M API
The AI4M API gives you monthly malaria risk for all 37 states and 774 Local Government Areas (LGAs) in Nigeria: an estimate for each month that has passed, and a forecast for up to four months ahead.
It is the same data the AI4M dashboard shows. Use it to bring risk scores into your own analysis, reports or systems.
What you can get
Section titled “What you can get”| Data | Detail |
|---|---|
| Risk scores | A score from 0 to 1 for each state and LGA, with its likely range and risk level, for every month since January 2018 |
| Forecasts | The same for each of the next one to four months |
| Boundaries | State and LGA outlines as GeoJSON, for drawing maps |
All endpoints are read-only and return JSON.
Start here
Section titled “Start here”Quick startMake your first request in a few minutes.
AuthenticationGet an API key and send it with each request.
API referenceEvery endpoint, with parameters and example responses.
Python SDKA ready-made client for scripts and notebooks.
TypeScript SDKFor Node services and web applications.
Go SDKFor Go services, with no dependencies.
Before you rely on the numbers
Section titled “Before you rely on the numbers”AI4M’s scores come from a statistical model, not from reported cases. Read Scores and levels to understand what a score means, and Limitations to understand where the model is weaker.
Base URL
Section titled “Base URL”https://api.ai4mproject.comQuestions about access: [email protected].