---
title: "Lean timeseries for one country + one series"
method: GET
path: "/api/v1/un-sdg/country/{m49}/series/{code}"
tags: ["Global Economy & Trade"]
---

# Lean timeseries for one country + one series

`GET /api/v1/un-sdg/country/{m49}/series/{code}`

Returns the full time-series for a single series in a single country with no pagination. Source: `/Series/{seriesCode}/GeoArea/{geoAreaCode}/DataSlice`. This is the leanest call for the common 'give me poverty rate in Brazil' question. Use /geo-areas to translate country names to M49 codes, or use the ISO3->M49 helper in helpers/un_sdg_client.py.

## Path parameters

- `m49` string, required — UN M49 numeric geography code as string (e.g. '840' for USA, '76' for Brazil).
- `code` string, required — Series code (e.g. SI_POV_DAY1).

## Response `200`

Observation rows for the series/country combination.

- EnvelopeSdgDataSlicePayload
  - `data` SdgDataSlicePayload, required
    - `series_code` string, required — Series code.
    - `geo_area_code` string, required — M49 geography code (string).
    - `geo_area_name` string, nullable — Geography name.
    - `data` SdgDataRow[], required — Observation rows for this series/country slice.
      - `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).
    - `count` integer, required — Number of observations returned.
  - `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/4e2740743eb4/schema)
