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

Penalties

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

Every penalty in order: period, time, side, player, who drew it, minutes, kind and offence.

GEThttps://api.icehockeyapi.com/v1/games/{game_id}/penalties
Get a key
https://api.icehockeyapi.com/v1/games/gm_seyr9d88/penalties
curl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/penalties" \
  -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
    "data": [
        {
            "number": 1,
            "period": 1,
            "time_seconds": 885,
            "side": "home",
            "player": {
                "id": "pl_9phqbmpc",
                "name": "Mika Zibanejad"
            },
            "drawn_by": {
                "id": "pl_fpkynced",
                "name": "Elias Pettersson"
            },
            "minutes": 2,
            "kind": "minor",
            "offence": "interference"
        },
        {
            "number": 2,
            "period": 2,
            "time_seconds": 923,
            "side": "away",
            "player": {
                "id": "pl_wr9e9aq0",
                "name": "Guillaume Brisebois"
            },
            "drawn_by": {
                "id": "pl_hrj96gn4",
                "name": "Noah Laba"
            },
            "minutes": 2,
            "kind": "minor",
            "offence": "holding"
        },
        {
            "number": 3,
            "period": 2,
            "time_seconds": 1157,
            "side": "away",
            "player": {
                "id": "pl_v38bhy6z",
                "name": "Brock Boeser"
            },
            "drawn_by": {
                "id": "pl_ayhqj0q8",
                "name": "Marcus Pettersson"
            },
            "minutes": 2,
            "kind": "minor",
            "offence": "tripping"
        }
    ],
    "meta": {
        "game_id": "gm_seyr9d88",
        "count": 3,
        "detail": true,
        "plan": "Complete"
    }
}

Parameters

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

Returns

FieldType
numberint
periodint
time_secondsint
sidestring
playerobject
player.idstring
player.namestring
drawn_byobject
drawn_by.idstring
drawn_by.namestring
minutesint
kindstring
offencestring

Errors