---
title: "Query multiple years"
method: GET
path: "/v3/years"
tags: ["Year"]
---

# Query multiple years

`GET /v3/years`

## Request

- Base URL: `https://api.statbotics.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.statbotics.io/v3/years`
- Auth: none declared

## Query parameters

- `metric` string, nullable: How to sort the returned values. Any column in the table is valid.
- `ascending` boolean, nullable: Whether to sort the returned values in ascending order. Default is ascending
- `limit` integer, nullable: Maximum number of events to return. Default is 1000.
- `offset` integer, nullable: Offset from the first result to return.

## Response `200`

Returns a list of Years since 2002. Older data is not available.

- object[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/statbotics/apis/statbotics-rest-api.md) · [All operations](https://skmtc.dev/statbotics/apis/statbotics-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/statbotics/apis/statbotics-rest-api/revisions/7b24722146a3?raw)
