africaAPI

Reference

Sources

Inspect upstream source metadata, licenses, citations, and the latest ingestion run details.

List Sources

GET/v1/sources

Lists the sources currently known to the public API.

Request
curl "https://api.africa-api.com/v1/sources" \
  -H "Authorization: Bearer $AFRICA_API_KEY"
Response
{
  "data": [
    {
      "code": "world_bank_wdi",
      "name": "World Development Indicators",
      "organization": "World Bank"
    },
    {
      "code": "who_gho",
      "name": "Global Health Observatory",
      "organization": "World Health Organization"
    },
    {
      "code": "unesco_uis",
      "name": "UIS Education Statistics",
      "organization": "UNESCO Institute for Statistics"
    }
  ]
}

Get Source Detail

GET/v1/sources/{source_code}

Returns source metadata and the latest successful ingestion run.

Current official statistical sources include World Bank WDI, UN WPP, ILOSTAT, WHO GHO, and UNESCO UIS.

Request
curl "https://api.africa-api.com/v1/sources/un_wpp" \
  -H "Authorization: Bearer $AFRICA_API_KEY"
Response
{
  "data": {
    "code": "un_wpp",
    "name": "World Population Prospects",
    "organization": "United Nations",
    "dataset_url": "https://population.un.org/wpp",
    "license_name": null,
    "citation": null,
    "latest_run": {
      "status": "succeeded",
      "dataset_version": "unwpp-1950-2026",
      "records_written": 45738,
      "completed_at": "2026-03-07T13:10:58Z"
    }
  }
}

On this page