---
title: "Get Available Years"
method: GET
path: "/api/pyq/years"
tags: ["pyq"]
---

# Get Available Years

`GET /api/pyq/years`

## Request

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

List years that have PYQ questions ready for practice, with how many.

Counts exactly what create_pyq_practice serves (source 'pyq:<year>', valid
rows only), so the number on each year tile matches the paper the student
gets — retired questions are excluded.

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
