Guides
Transport
Use indicators, data endpoints, and current signals for transport, roads, rail, airport traffic, port operations, shipping connectivity, and digital infrastructure.
Transport And Connectivity In Africa API
Transport and connectivity data is exposed through the shared indicator, data, and signals endpoints.
Current coverage combines the World Bank WDI backbone with official South Africa airport traffic, South Africa airport on-time performance, South Africa port operations, and Kenya port operations.
GET /v1/indicators?category=infrastructureGET /v1/data?category=infrastructureGET /v1/sources/world_bank_wdiGET /v1/sources/acsa_za_airport_signalsGET /v1/sources/acsa_za_on_time_performance_signalsGET /v1/sources/kpa_ke_port_signalsGET /v1/countries/{country_code}/signalsGET /v1/sources/tnpa_za_port_signals
Historical Transport Metrics
air_transport_passengersair_transport_departuresliner_shipping_connectivity_indexrail_lines_kmroad_network_total_kmpaved_roads_pctmobile_subscriptions_per_100fixed_broadband_subscriptions_per_100secure_internet_servers_per_million
These are annual country-level transport and connectivity observations and fit the current observation model cleanly.
Current Airport And Port Operations
South Africa currently includes official ACSA airport traffic, ACSA network on-time performance, and TNPA port operations in /v1/countries/za/signals.
Kenya now includes official KPA port operations in /v1/countries/ke/signals.
-
airport_passengers_ytd_total -
airport_aircraft_movements_ytd_total -
airport_on_time_performance_ytd_pct -
airport_on_time_performance_latest_month_pct -
port_throughput_latest_tonnes -
port_container_throughput_latest_teu -
port_transit_cargo_latest_tonnes -
port_vessel_calls_latest_total
The airport traffic figures are ACSA network year-to-date totals as of the latest published month. The on-time figures are the latest published ACSA network performance percentages for the same reporting month. The TNPA port figures are national port-system totals from South Africa. The KPA port figures are annual Port of Mombasa performance totals from the latest official Kenya Ports Authority cargo-growth article. All of them appear in the country signal payload with as_of_period so clients can see which publication period the source covers.
This means the current live transport operations layer is now strongest for South Africa and Kenya, while the broader transport indicator layer still comes from the historical backbone through /v1/data.
Example Queries
curl "https://api.africa-api.com/v1/indicators?category=infrastructure&has_data=true" \
-H "Authorization: Bearer $AFRICA_API_KEY"curl "https://api.africa-api.com/v1/data?country_codes=eg,ke,za&metric_key=air_transport_passengers&year=2023" \
-H "Authorization: Bearer $AFRICA_API_KEY"curl "https://api.africa-api.com/v1/data?country_code=ng&metric_key=mobile_subscriptions_per_100&start_year=2018&end_year=2024" \
-H "Authorization: Bearer $AFRICA_API_KEY"curl "https://api.africa-api.com/v1/countries/za/signals" \
-H "Authorization: Bearer $AFRICA_API_KEY"