Age bands
Age bands: national and city
Changed onAge bands 0-14, 15-24, 25-34, 35-44, 45-54, 55-64 and 65+ for one country, as shares (0-1) and counts. national: UN World Population Prospects 2024. cities: Pan Africa Data estimates (WorldPop age shares on UN WUP city populations) for functional cities whose coverage is at least 0.8 in every year 2015-2035; excluded_cities lists this country's cities that fail that rule. The two levels come from different sources. One cell = one band in one year, at $0.25.
get/age/{country_code}
Request
- Base URLhttps://panafricadata.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
country_codestring required
Query parameters
levelstring
'all', 'national' or 'city'
citystring nullable
One functional_city_id (e.g. KE-FC-NAIROBI); city level only
year_frominteger
year_tointeger
Response
Successful Response
unknown required
Changes
- info
endpoint added
- info