HDX HAPI Baseline Population
hdx-hapi.geography.baseline_populationGet baseline population demographics broken down by gender and age range for a country or subnational admin area. Filter by location_code (ISO3), gender, age_range, admin1_name, and admin_level. Data: HDX Humanitarian API (hapi.humdata.org), run by UN OCHA Centre for Humanitarian Data, CC BY 4.0, no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (1-1000, default 100) | |
| gender | No | Gender code: f=female, m=male, x=non-binary, u=unknown, o=other, all=all | |
| offset | No | Number of rows to skip, for pagination (default 0) | |
| age_range | No | Age range as "[start]-[end]" (e.g. "0-4", "18-59"), or "all" for all ages | |
| admin1_name | No | 1st-level subnational admin area name to filter results, e.g. "Kayes" | |
| admin_level | No | Admin granularity of returned rows: 0=national, 1=admin1, 2=admin2 | |
| location_code | No | ISO3 country code to filter results, e.g. "MLI", "AFG", "SOM" | |
| location_name | No | Country name to filter results (alternative to location_code), e.g. "Mali" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |