EmpiricalData
Returns a 'ResultData' for a given set of Indicators, Locations, StartYear and EndYear.
Changed on<br>Note: Version 2 of this endpoint returns 'X-DP-Validation' Response Header with comma separated list of ISO3 codes that could not be found in the database.
get/api/v1/empirical/data
Request
- Base URLhttps://population.un.org/dataportalapi
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
indicatorIdinteger
IndicatorId for which to get the Empirical Data for.
locationIdinteger
LocationId for which to get the Empirical Data for.
yearStartinteger
Start Year for which to get the Empirical Data for.
yearEndinteger
End Year for which to get the Empirical Data for.
sexIdinteger
SexId for which to get the Empirical Data for.
ageIdinteger
AgeId for which to get the Empirical Data for.
categoryIdinteger
CategoryId for which to get the Empirical Data for.
includedboolean
Whether to show Included series.
Response
Returns 'EmpiricalData' for a given set of parameters.
Changes
- info
the endpoint scheme security
Bearerwas added to the API
- info