UnifyAPI
← Back to catalog

unsdg.data.query

mock data$0.002 / call

UN 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.

Referenceprovider: Unsdg#unsdg#reference

Input schema

limit

Maximum number of records to return per page (1-200, default 50). Large series may have thousands of records across countries and years.

integer
end_year

Filter data records up to and including this year (e.g. 2023). Combined with start_year to define a time range.

integer
start_year

Filter data records starting from this year (e.g. 2010). Combined with end_year to define a time range.

integer
series_coderequired

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.

string
geo_area_code

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.

string

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>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.