africaAPI

Guides

Geography

Use countries and geographies endpoints to work with location hierarchy and spatial reference data.

Geography In Africa API

There is no standalone /v1/geography endpoint. Geography-related data is split across:

  • GET /v1/countries
  • GET /v1/countries/{country_code}
  • GET /v1/geographies
  • GET /v1/geographies/{geography_key}

What To Use When

  • Use countries for country metadata, borders, coordinates, currencies, and languages.
  • Use geographies for hierarchy traversal across continent, region, subregion, and country nodes.

Example Query

curl "https://api.africa-api.com/v1/geographies?parent_key=subregion:eastern-africa" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

On this page