New: MCP server for Claude and other assistants· every season back to 1917 on ArchiveSee plans
Documentation / Inside a game

Play by play

GET /v1/games/{game_id}/events
Live and up

Every event in order: type, period, time, side, players, goalie, zone, rink position and shot type. While a North American top league game is being played it is read again every minute, and meta.live gives the period, clock and score as they stand.

GEThttps://api.icehockeyapi.com/v1/games/{game_id}/events
Get a key
https://api.icehockeyapi.com/v1/games/gm_seyr9d88/events
curl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/events" \
  -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
    "data": [
        {
            "number": 1,
            "period": 1,
            "time_seconds": 0,
            "type": "period_start",
            "side": null,
            "players": [],
            "goalie": null,
            "zone": null,
            "x": null,
            "y": null,
            "shot_type": null
        },
        {
            "number": 2,
            "period": 1,
            "time_seconds": 0,
            "type": "faceoff",
            "side": "away",
            "players": [
                {
                    "id": "pl_fpkynced",
                    "name": "Elias Pettersson"
                },
                {
                    "id": "pl_1rp3dfd1",
                    "name": "J.T. Miller"
                }
            ],
            "goalie": null,
            "zone": "neutral",
            "x": 0,
            "y": 0,
            "shot_type": null
        },
        {
            "number": 3,
            "period": 1,
            "time_seconds": 11,
            "type": "hit",
            "side": "away",
            "players": [
                {
                    "id": "pl_fpkynced",
                    "name": "Elias Pettersson"
                },
                {
                    "id": "pl_qf6kqgj1",
                    "name": "Vladislav Gavrikov"
                }
            ],
            "goalie": null,
            "zone": "offensive",
            "x": 71,
            "y": -39,
            "shot_type": null
        }
    ],
    "meta": {
        "game_id": "gm_seyr9d88",
        "count": 307,
        "detail": true,
        "plan": "Complete"
    }
}

Parameters

NameInTypeWhat it does
game_id requiredpathid A game, from /v1/games.

Returns

FieldType
numberint
periodint
time_secondsint
typestring
sidenull
playerslist
goalienull
zonenull
xnull
ynull
shot_typenull

Errors