---
title: "Get predictions for a given year"
method: GET
path: "/api/v1/predictions"
tags: ["predictions"]
---

# Get predictions for a given year

`GET /api/v1/predictions`

Get all predictions for a given year.

## Query parameters

- `year` integer

## Response `200`

OK

- object
  - `predictions` Prediction[]
    - `year` integer, required
    - `shadow` integer, nullable, required
    - `details` string, required
    - `groundhog` Groundhog — An animal that makes an annual prediction on Groundhog Day.
      - `id` integer, required
      - `slug` string, required
      - `shortname` string, required
      - `name` string, required
      - `city` string, required
      - `region` string, required
      - `country` string, required
      - `coordinates` string, required
      - `source` string, required
      - `contact` string, required
      - `currentPrediction` string, required
      - `isGroundhog` integer, required
      - `type` string, required
      - `active` 0 | 1, required
      - `description` string, required
      - `image` string, required
      - `predictions` Prediction[]
      - `predictionsCount` integer — All predictions, excluding nulls.

## Other responses

- `302` — Found
- `400` — Bad Request

---

[API](https://skmtc.dev/swaggerhub/apis/groundhog-day-api.md) · [All operations](https://skmtc.dev/swaggerhub/apis/groundhog-day-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swaggerhub/groundhog-day-api/revisions/323f97be2b21/schema)
