---
title: "All series under an indicator, filtered by area and year"
method: GET
path: "/api/v1/un-sdg/indicator/{code}/data"
tags: ["Global Economy & Trade"]
---

# All series under an indicator, filtered by area and year

`GET /api/v1/un-sdg/indicator/{code}/data`

Returns observations for every series that reports against an indicator (indicators typically have several series for disaggregation by sex, age, or location). Source: `/Indicator/Data`.

## Path parameters

- `code` string, required — Indicator code (e.g. '1.1.1').

## Query parameters

- `area` string, nullable — Comma-separated M49 area codes.
- `time_period` string, nullable — Comma-separated years to restrict to.
- `page` integer — Page number (1-indexed).
- `page_size` integer — Records per page, upstream cap 10000.

## Response `200`

Paginated observation rows across all series under the indicator.

- EnvelopeSdgIndicatorDataPayload
  - `data` SdgIndicatorDataPayload, required
    - `indicator_code` string, required — Indicator code queried.
    - `data` SdgDataRow[], required — Observation rows across all series under the indicator.
      - `goal` string[] — Goal code(s) this observation contributes to.
      - `target` string[] — Target code(s) this observation contributes to.
      - `indicator` string[] — Indicator code(s) this observation contributes to.
      - `series` string, nullable — Series code (e.g. 'SI_POV_DAY1').
      - `geoAreaCode` string, nullable — UN M49 geography code (string).
      - `geoAreaName` string, nullable — Geography name.
      - `timePeriodStart` union — Observation year (integer when whole; 1989, 2023).
        - integer
        - number
        - string
      - `value` union — Observation value (float when numeric; original string retained otherwise).
        - number
        - string
      - `time_detail` string, nullable — Narrower period label when present (e.g. '2022-Q1'); null for annual.
      - `time_coverage` string, nullable — Cumulative-period label when the indicator spans more than one year.
      - `upper_bound` union — Confidence-interval upper bound when the custodian publishes one (common for WHO mortality).
        - number
        - string
      - `lower_bound` union — Confidence-interval lower bound.
        - number
        - string
      - `base_period` string, nullable — Base year for index or PPP-denominated indicators (e.g. '2021').
      - `source` string, nullable — Custodian attribution string (e.g. 'Poverty and Inequality Portal, World Bank'). Pass-through for row-level attribution; Sugra envelope source stays 'un_sdg'.
      - `footnotes` string[] — Methodology footnotes and access-date caveats published by the custodian.
      - `attributes` object — Per-row attribute codes: Nature (C/CA/E/G/M/N/NA), Observation Status, Units (PERCENT, NUMBER, PER_100000_POP, CU_USD, INDEX, ...), UnitMultiplier.
      - `dimensions` object — Per-row disaggregation codes: Sex, Age, Location, Reporting Type, plus indicator-specific dims (Income quintile, Disability status, Education level).
    - `pagination` SdgPagination, required
      - `page` integer, nullable — Current page number (1-indexed).
      - `page_size` integer, nullable — Records per page.
      - `total_pages` integer, nullable — Total number of pages for this filter set.
      - `total_elements` integer, nullable — Total number of matching observations upstream.
    - `count` integer, required — Number of rows on this page.
  - `meta` SugraMeta, required — Metadata attached to every /api/v1/* response envelope.
    - `endpoint` string, required — Requested endpoint path.
    - `data_time` string, required — ISO 8601 UTC timestamp of the source data, not of the request.
    - `response_time` string, required — ISO 8601 UTC timestamp when this response was produced.
    - `provider` string, required — API name and version.
    - `source` string, nullable — Identifier of the primary upstream source used for this response.
    - `attribution` string, nullable — Human-readable attribution mandated by an upstream source (e.g. a securities regulator or self-regulatory organization). Present only on responses whose source requires the owner and source to be clearly identified. Do not remove or alter it when using the response.
    - `fallback_used` boolean, nullable — True when the primary source failed and a fallback produced the data.
    - `fallback_chain` string[], nullable — Ordered list of sources attempted, in the order they were tried.
    - `cached` boolean, nullable — True when this response was served from the internal cache.
    - `stale` boolean, nullable — True when the cached response was returned after the upstream rate-limited or errored. Clients can use this to detect degraded data.

## Other responses

- `401` — Missing or invalid `x-api-key` header.
- `422` — Validation Error
- `429` — Daily rate limit exceeded. Check `X-RateLimit-Reset` for the next window.
- `503` — Upstream source is temporarily unavailable. Retry after a short delay.

---

[API](https://skmtc.net/sugra/apis/sugra-api.md) · [All operations](https://skmtc.net/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sugra/sugra-api/versions/dcf7427e6897/schema)
