africaAPI

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=infrastructure
  • GET /v1/data?category=infrastructure
  • GET /v1/sources/world_bank_wdi

Current Transport Metrics

  • air_transport_passengers
  • air_transport_departures
  • liner_shipping_connectivity_index
  • rail_lines_km
  • road_network_total_km
  • paved_roads_pct
  • mobile_subscriptions_per_100
  • fixed_broadband_subscriptions_per_100
  • secure_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"

On this page