---
title: "Shifts"
method: POST
path: "/v1/get_shifts"
tags: ["Multi-table"]
---

# Shifts

`POST /v1/get_shifts`

## Request

- Base URL: `https://mcp.puckapi.com`
- URL: `https://mcp.puckapi.com/v1/get_shifts`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Use for who was on the ice and when: every player's shifts in one NHL game, each with period, start and end (period clock and seconds from the opening faceoff) and duration, plus the official boxscore time on ice and plus/minus. Filter to one team or player. NHL games from 2010-11 on. Costs 10 credits.

## Request body

- object
  - `game_id` string, required: NHL game ID, 10 digits (e.g. 2026020084)
  - `team` string: Only this team's players, by abbreviation (e.g. WSH)
  - `player_id` integer: Only this player, by NHL player ID

## Response `200`

The result, wrapped in data.

- object
  - `data` object, required
    - `game_id` string, required
    - `game_date` string, nullable
    - `home_team` string
    - `away_team` string
    - `players` object[], required
      - `player_id` number, required
      - `name` string, nullable, required
      - `position` string, nullable, required
      - `team` string, required
      - `home_away` 'home' | 'away', required
      - `goalie` boolean, required
      - `shift_count` number, required
      - `shift_seconds` number, required
      - `official_toi_seconds` number, nullable, required
      - `plus_minus` number, nullable, required
      - `shifts` object[], required
        - `period` number, required
        - `start` string, required
        - `end` string, required
        - `start_seconds` number, required
        - `end_seconds` number, required
        - `duration_seconds` number, required
    - `count` number, required
    - `dropped_shifts` number
    - `source` string, nullable
    - `note` string

## Other responses

- `400`: Invalid arguments.
- `401`: Missing or invalid API key.
- `402`: Not enough credits.
- `429`: Rate limited.

---

[API](https://skmtc.dev/puckapi/apis/puckapi-api.md) · [All operations](https://skmtc.dev/puckapi/apis/puckapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/puckapi/apis/puckapi-api/revisions/99b3e5171ab4?raw)
