---
title: "Get a groundhog by slug"
method: GET
path: "/api/v1/groundhogs/{slug}"
tags: ["groundhogs"]
---

# Get a groundhog by slug

`GET /api/v1/groundhogs/{slug}`

Returns a prognosticating animal and its known predictions.

## Response `200`

OK

- object
  - `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[]
      - `year` integer, required
      - `shadow` integer, nullable, required
      - `details` string, required
      - `groundhog` Groundhog — recursive
    - `predictionsCount` integer — All predictions, excluding nulls.

## Other responses

- `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)
