---
title: "Returns a 'ResultData' for a given set of Indicators, Locations, StartYear and EndYear."
method: GET
path: "/api/v1/empirical/data"
tags: ["EmpiricalData"]
---

# Returns a 'ResultData' for a given set of Indicators, Locations, StartYear and EndYear.

`GET /api/v1/empirical/data`

## Request

- Base URL: `https://population.un.org/dataportalapi`
- URL: `https://population.un.org/dataportalapi/api/v1/empirical/data`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/united-nations/apis/data-portal-api/docs/api/v1/empirical/data/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Query parameters

- `indicatorId` integer
- `locationId` integer
- `yearStart` integer
- `yearEnd` integer
- `sexId` integer
- `ageId` integer
- `categoryId` integer
- `included` boolean

## Response `200`

Returns 'EmpiricalData' for a given set of parameters.

- EmpiricalDataDto[]
  - `timeLabel` number, double
  - `sexId` integer
  - `ageId` integer
  - `ageMid` number, double
  - `ageLabel` string, nullable
  - `nonStandardAgeLabel` string, nullable
  - `categoryId` integer
  - `category2Id` integer, nullable
  - `value` number, double
  - `dataProcessTypeId` integer
  - `dataProcessType` string, nullable
  - `dataProcessId` integer
  - `dataProcess` string, nullable
  - `dataProcessShortName` string, nullable
  - `dataCatalogShortName` string, nullable
  - `dataCatalogName` string, nullable
  - `dataTypeName` string, nullable
  - `dataTypeGroupName` string, nullable
  - `dataTypeGroupShortName` string, nullable
  - `dataProcessTypeShortName` string, nullable
  - `dataTypeGroup2ShortName` string, nullable
  - `populationSubgroupId` integer, nullable
  - `populationSubgroupName` string, nullable
  - `inclusion` boolean
  - `footnote` Footnote
    - `noteCountry` string, nullable
    - `noteData` string, nullable
    - `notePopulation` string, nullable
    - `noteContraceptiveUseMethods` string, nullable
    - `noteUnmetNeedIndicator` string, nullable
  - `seriesNameLegend` string, nullable
  - `seriesNameTooltip` string, nullable
  - `seriesNameShort` string, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Returns Status 404 NotFound if supplied 'Topic Ids' or 'Topic Short Names' do not exist
- `406`: Not Acceptable
- `429`: Returns Status 429 Too Many Requests when there are more than 5 requests coming in a time window of 10 seconds from the same IP Address
- `500`: Returns Status 500 Internal Server Error if an exception is thrown from the Database, Repository or Web API code.

## Changes

- **2026-11-07** `2f5f5b77ad0d`: 1 info
  - the endpoint scheme security `Bearer` was added to the API

[Operation history](https://skmtc.dev/united-nations/apis/data-portal-api/changes/api/v1/empirical/data/get.md)

---

[API](https://skmtc.dev/united-nations/apis/data-portal-api.md) - [All operations](https://skmtc.dev/united-nations/apis/data-portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/united-nations/apis/data-portal-api/revisions/2f5f5b77ad0d?raw)
