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/countriesGET /v1/countries/{country_code}GET /v1/geographiesGET /v1/geographies/{geography_key}
What To Use When
- Use
countriesfor country metadata, borders, coordinates, currencies, and languages. - Use
geographiesfor 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"