---
title: "GET /insights/leaderboards/{year}"
method: GET
path: "/insights/leaderboards/{year}"
tags: ["insight"]
---

# GET /insights/leaderboards/{year}

`GET /insights/leaderboards/{year}`

Gets a list of `LeaderboardInsight` objects from a specific year. Use year=0 for overall.

## Path parameters

- `year` integer, required

## Headers

- `If-None-Match` string

## Response `200`

Successful response

- LeaderboardInsight[]
  - `data` object, required
    - `rankings` object[], required
      - `value` number, required — Value of the insight that the corresponding team/event/matches have, e.g. number of blue banners, or number of matches played.
      - `keys` string[], required — Team/Event/Match keys that have the corresponding value.
    - `key_type` 'team' | 'event' | 'match', required — What type of key is used in the rankings; either 'team', 'event', or 'match'.
  - `name` string, required — Name of the insight.
  - `year` integer, required — Year the insight was measured in (year=0 for overall insights).

## Other responses

- `304` — Not Modified - Use Local Cached Value
- `401` — Authorization information is missing or invalid.
- `404` — Not Found

---

[API](https://skmtc.net/thebluealliance/apis/the-blue-alliance-api-v3.md) · [All operations](https://skmtc.net/thebluealliance/apis/the-blue-alliance-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thebluealliance/the-blue-alliance-api-v3/revisions/b9b0f447dbcb/schema)
