Guides
Transport
Use indicators and data endpoints for transport, roads, rail, shipping connectivity, and digital infrastructure.
Transport And Connectivity In Africa API
Transport and connectivity data is exposed through the shared indicator and data endpoints.
Current coverage comes from the World Bank WDI slice and lives under the infrastructure category.
GET /v1/indicators?category=infrastructureGET /v1/data?category=infrastructureGET /v1/sources/world_bank_wdi
Current 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.
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"