Rwanda MoH OData API
Access Rwanda's health data programmatically using the OData API
Introduction
The Rwanda Ministry of Health OData API provides a standardized way to access health data programmatically. This API follows the OData (Open Data Protocol) standard, allowing for flexible and powerful querying capabilities.
Base URL
https://api.moh.gov.rw/odata/
Authentication
API requests require authentication. Contact the Rwanda Ministry of Health data team to obtain your API key.
Available Endpoints
- - List of all health indicators
/indicators
- - Available dimensions for data filtering
/dimensions
- - Actual indicator data
/data
Query Examples
Get all indicators
GET https://api.moh.gov.rw/odata/indicators
Get specific indicator
GET https://api.moh.gov.rw/odata/indicators('MALARIA_CASES')
Get data for a specific indicator
GET https://api.moh.gov.rw/odata/data?$filter=IndicatorCode eq 'MALARIA_CASES'
Get data for a specific year and district
GET https://api.moh.gov.rw/odata/data?$filter=IndicatorCode eq 'MALARIA_CASES' and Year eq 2023 and DistrictCode eq 'GASABO'
Response Format
The API returns data in JSON format. Here's an example response:
{ "@odata.context": "https://api.moh.gov.rw/odata/$metadata#data", "value": [ { "IndicatorCode": "MALARIA_CASES", "Year": 2023, "DistrictCode": "GASABO", "Value": 1234 }, // More data... ] }
Rate Limiting
The API is rate-limited to 1000 requests per hour per API key. If you exceed this limit, you'll receive a 429 Too Many Requests response.
Support
For any questions or issues regarding the API, please contact our support team at api-support@moh.gov.rw.