---
title: "Get Timeseries"
method: GET
path: "/api/v1/observations/timeseries/{indicator_id}/{country_code}"
tags: ["Observations"]
---

# Get Timeseries

`GET /api/v1/observations/timeseries/{indicator_id}/{country_code}`

## Request

- Base URL: `https://api.africadb.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.africadb.com/api/v1/observations/timeseries/{indicator_id}/{country_code}`
- Auth: none declared

Return the full time series for one indicator + country, with optional transform.

## Path parameters

- `indicator_id` string, required
- `country_code` string, required

## Query parameters

- `start_year` integer
- `end_year` integer: Defaults to current year + 5 so IMF WEO forecasts are included
- `transform` string, nullable: Transform: pct_change, yoy, per_capita, per_gdp, moving_avg_3, moving_avg_5, indexed
- `base_year` integer, nullable: Base year for indexed transform

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/africadb/apis/africa-data-bank-api.md) · [All operations](https://skmtc.dev/africadb/apis/africa-data-bank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/africadb/apis/africa-data-bank-api/revisions/2a50da82945b?raw)
