get_data
Retrieve actual statistical data for development indicators from ESCAP Data Explorer. Specify indicator code, dataset type, optional country, and year range to get SDMX data with observation values.
Instructions
Step 5: Retrieve actual data for a given indicator, optional country, and time period. Returns SDMX data (JSON or XML) including observation values, time periods, and attributes. It is recommended to call check_data_availability first to confirm data exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endYear | Yes | End year | |
| countryId | No | Country/ref_area code (optional — omit for all countries) | |
| startYear | Yes | Start year | |
| datasetType | Yes | Dataset type: "SDG" or "Thematic" | |
| indicatorCode | Yes | Indicator code |