---
title: "Get historical data"
method: GET
path: "/api/v1/history/{indicator}/{country}"
---

# Get historical data

`GET /api/v1/history/{indicator}/{country}`

## Request

- Base URL: `https://statisticsoftheworld.com`
- URL: `https://statisticsoftheworld.com/api/v1/history/{indicator}/{country}`
- Auth: none declared

Returns 20+ years of historical data for an indicator-country pair.

## Path parameters

- `indicator` string, required
- `country` string, required

## Response `200`

Historical time series

- object
  - `indicator` Indicator
    - `id` string
    - `label` string
    - `category` string
    - `format` 'number' | 'percent' | 'currency' | 'years' | 'ratio' | 'index'
  - `country` string
  - `data` object[]
    - `year` integer
    - `value` number, nullable

---

[API](https://skmtc.dev/statisticsoftheworld/apis/statistics-of-the-world-api.md) - [All operations](https://skmtc.dev/statisticsoftheworld/apis/statistics-of-the-world-api/llms.txt) - [OpenAPI document](https://skmtc.dev/statisticsoftheworld/apis/statistics-of-the-world-api/revisions/5b8b3dc90635?raw)
