54 country records · API status

African country data through one REST API.

Query country profiles, indicators, exchange rates, trade and government records. Check the coverage guide for available countries, metrics and reporting periods.

$ curl https://api.africa-api.com/v1/countries/ke/profile -H "Authorization: Bearer $AFRICA_API_KEY"

Free tier: 1,000 requests/month · no card required · see pricing

54Countries
JSONResponses
RESTAPI
1,000Free requests / month

Data from named upstream sources

World BankIMFUnited NationsILOFAOWHOWTO
See sources and methodology ->

Choose an endpoint

Protected endpoints use bearer-token authentication. Each reference lists its parameters and response fields. Start with Countries, Agriculture, or Policies.

Other endpoints

CountriesAPI

Look up codes, capitals, currencies, languages and profiles for 54 African countries.

/v1/countries
capitalregioncurrencieslanguagesprofile
DataAPI

Query indicators by country, year and source, or request the latest available values.

/v1/data
country_codemetric_keyyearlatestsource
IndicatorsAPI

Find metric names, check country and year coverage, and request rankings.

/v1/indicators
categoryhas_datacoveragerankings
TradeAPI

Query trade totals, partner flows and product categories for the countries covered.

/v1/trade/*
overviewflowspartnersproducts
GovernmentAPI

Look up leaders, terms, cabinets and elections where records are available.

/v1/government/*
overviewleaderstermscabinet
PoliciesAPI

Search laws and policy documents, and look up adoption, implementation and repeal events.

/v1/policies/*
countrydocument_typestatusevents
MarketsAPI

Look up exchanges, tickers, available price history and exchange rates.

/v1/markets/*
exchangestickershistoryfx-rates
GeographiesAPI

Look up relationships between continents, regions, subregions and countries.

/v1/geographies
typeparent_keycountry_codeq

How it works

Create a key, then run the example request.

1

Get an API key

Create an account in the dashboard, generate a key once, and reuse the same bearer-token pattern across the platform.

2

Request country data

Use signals for a country summary, profiles for reference data, or /v1/data to query specific metrics and years.

curl -H "Authorization: Bearer $AFRICA_API_KEY" https://api.africa-api.com/v1/countries/ng/signals
3

Check coverage and sources

Check which countries and reporting periods are available for your metric. Use source metadata to understand where an observation comes from.

Inspect the data and API

Browse the data, read the reference and check source metadata before integrating.

Browse the data

Explore country profiles, indicator rankings and available history. The pages include API request examples.

Open the explorer ->

Versioned /v1 routes

Public routes use /v1 paths. Changes are intended to be additive where possible; check the reference for each endpoint.

API reference ->

Source metadata

Observation responses include source and reporting-period fields. Check source metadata before comparing figures.

Sources & methodology ->

Official MCP server

Run the local MCP server with npx and an API key. The guide includes setup commands for supported clients.

MCP docs ->

Transparent pricing

The Free plan includes 1,000 requests a month with no card required. Paid plans have higher request and key limits.

See pricing ->

Status you can check

Check the public health endpoint. Authenticated requests provide source refresh details.

API status ->

Connect an MCP client

The MCP server provides read-only tools for country data, indicators, markets, trade and government records. See the guide for client setup and runtime requirements. Machine-readable documentation is available at llms.txt.

claude mcp add africa-api -e AFRICA_API_KEY=your-key -- npx -y africa-api-mcp

Make your first API request

Create an API key and run the quickstart request. The Free plan includes 1,000 requests a month, with no card required.