HDX Location List
hdx.reference.locationsFind HDX-tracked countries or regions with their published dataset counts, optionally filtered by name, and get location IDs to use as country filters in dataset searches.
Instructions
List countries/regions tracked on HDX with their published dataset count, optionally filtered by a name substring. Use the returned location id as the country filter for hdx.dataset_search. Data: HDX CKAN Action API (data.humdata.org), no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max locations to return (1-100, default 50) | |
| query | No | Substring filter on location name (e.g. "sudan") |
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. |