unsdg.data.query
mock data$0.002 / callUN SDG Data Query
Query UN SDG time-series indicator data by series code. Returns country-level or regional annual measurements for indicators like poverty rates, maternal mortality, CO2 emissions, literacy rates, and more. Filter by UN M49 geo area code (e.g. "356" for India, "840" for USA) and/or year range. Each record includes the geo area, year, value, source, and any disaggregation dimensions (age, sex, urbanization). Get series codes from unsdg.indicators.list; get geo area codes from unsdg.geo.countries.
Input schema
Maximum number of records to return per page (1-200, default 50). Large series may have thousands of records across countries and years.
Filter data records up to and including this year (e.g. 2023). Combined with start_year to define a time range.
Filter data records starting from this year (e.g. 2010). Combined with end_year to define a time range.
UN SDG series code to query (e.g. "SI_POV_DAY1" for poverty rate, "SH_STA_MORT" for maternal mortality, "EN_ATM_CO2" for CO2 emissions). Obtain series codes from unsdg.indicators.list.
UN M49 numeric geo area code to filter by country or region (e.g. "356" for India, "840" for USA, "076" for Brazil). Use unsdg.geo.countries to look up codes.
Call via REST
curl -X POST https://unifyapi.pro/api/call/unsdg.data.query \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"limit":0,"end_year":0,"start_year":0,"series_code":"<series_code>","geo_area_code":"<geo_area_code>"}'