# API-Hockey

> Follow ice hockey with API-Hockey: games and results with the score by period, goals and penalties, standings, team season statistics, head-to-head records and bookmakers' pre-match odds, for more than 250 leagues and cups, from the NHL and the AHL to the KHL, Sweden's SHL, Finland's Liiga and the world championships. Needs an API-SPORTS key; the free plan allows 100 requests a day.

App · Sports · 16 actions. Web page: https://docs.lodol.com/docs/integrations/api-hockey

## Actions

### Find leagues and cups

Find hockey competitions by name, country, season or type, each with its ID, logo, country and every season on file with its dates. With no filter it lists all of them.

**Inputs**

- League (`league_id`, text): Optional. Only this competition. Pick one from the list, or pass a league ID such as 57 for the NHL.
- Search (`search`, text): Optional. Only names containing this, at least 3 characters.
- Country (`country`, text): Optional. Only this country, by name as the list gives it, such as USA, Canada or Sweden.
- Season (`season`, number): Optional. Only this season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.
- Type (`league_type`, text): Optional. Only leagues, or only cups. One of: `league`, `cup`.

**Outputs**

- `count` (number): How many came back.
- `leagues` (list): The competitions.

**Example output**

```json
{
  "count": 1,
  "leagues": [
    {
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "current_season": {
        "current": true,
        "end": "2027-04-11",
        "season": 2026,
        "start": "2026-09-19"
      },
      "id": 57,
      "logo": "https://media.api-sports.io/hockey/leagues/57.png",
      "name": "NHL",
      "seasons": [
        {
          "current": false,
          "end": "2025-06-18",
          "season": 2024,
          "start": "2024-09-21"
        },
        {
          "current": false,
          "end": "2026-06-15",
          "season": 2025,
          "start": "2025-09-20"
        },
        {
          "current": true,
          "end": "2027-04-11",
          "season": 2026,
          "start": "2026-09-19"
        }
      ],
      "type": "League"
    }
  ]
}
```

### Find teams

Find teams by name, by league and season, by country or by ID, each with its logo, country, colours, the year it was founded and its arena.

**Inputs**

- Team ID (`team_id`, text): Optional. Only this team, by ID, such as 704 for the Winnipeg Jets.
- Search (`search`, text): Optional. Only names containing this, at least 3 characters.
- League (`league_id`, text): Optional. Only this competition. Pick one from the list, or pass a league ID such as 57 for the NHL.
- Season (`season`, number): Optional. Only this season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.
- Country (`country`, text): Optional. Only this country, by name as the list gives it, such as USA, Canada or Sweden.

**Outputs**

- `count` (number): How many came back.
- `teams` (list): The teams.

**Example output**

```json
{
  "count": 1,
  "teams": [
    {
      "arena": {
        "capacity": null,
        "location": "Winnipeg, Manitoba",
        "name": "Winnipeg Arena"
      },
      "colors": [
        "Blue",
        "Red",
        "White"
      ],
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "founded": 1972,
      "id": 704,
      "logo": "https://media.api-sports.io/hockey/teams/704.png",
      "name": "Winnipeg Jets",
      "national": false
    }
  ]
}
```

### Get a game

Get one game by ID: its start time, round, status, the score and each period's goals, overtime and the shootout included.

**Inputs**

- Game ID (`game_id`, text, required): The game's ID, such as 370293. List games returns them.
- Time zone (`timezone`, text): Optional. Give dates and times in this time zone, such as America/New_York or Europe/Stockholm. UTC when left empty.

**Outputs**

- `country` (object): A country, or a region such as World for international competitions.
- `date` (text): When it starts, with the time zone's offset (ISO 8601).
- `has_events` (true/false): True when Get game events has its goals and penalties.
- `id` (number): The game's ID.
- `league` (object): The competition, and the season this is from.
- `periods` (object): The goals in each part of the game; null for a part not played.
- `scores` (object): Each side's goals, overtime included, and one more for the winner of a shootout. Null before the game starts.
- `status` (object): Where the game stands.
- `teams` (object): Both sides.
- `time` (text): Its start time, HH:MM, in that time zone.
- `timer` (text): The game clock while it is being played, when the API has it.
- `timestamp` (number): When it starts, as a Unix timestamp.
- `timezone` (text): The time zone date and time are given in.
- `week` (text): The playoff round, such as Quarter-finals or Final; null in the regular season.

**Example output**

```json
{
  "country": {
    "code": "US",
    "flag": "https://media.api-sports.io/flags/us.svg",
    "id": 31,
    "name": "USA"
  },
  "date": "2024-09-22T22:00:00+00:00",
  "has_events": true,
  "id": 370293,
  "league": {
    "id": 57,
    "logo": "https://media.api-sports.io/hockey/leagues/57.png",
    "name": "NHL",
    "season": 2024,
    "type": "League"
  },
  "periods": {
    "first": {
      "away": 1,
      "home": 1
    },
    "overtime": {
      "away": 0,
      "home": 1
    },
    "penalties": {
      "away": null,
      "home": null
    },
    "second": {
      "away": 0,
      "home": 0
    },
    "third": {
      "away": 1,
      "home": 1
    }
  },
  "scores": {
    "away": 2,
    "home": 3
  },
  "status": {
    "long": "After Over Time",
    "short": "AOT"
  },
  "teams": {
    "away": {
      "id": 704,
      "logo": "https://media.api-sports.io/hockey/teams/704.png",
      "name": "Winnipeg Jets"
    },
    "home": {
      "id": 683,
      "logo": "https://media.api-sports.io/hockey/teams/683.png",
      "name": "Edmonton Oilers"
    }
  },
  "time": "22:00",
  "timer": null,
  "timestamp": 1727042400,
  "timezone": "UTC",
  "week": null
}
```

### Get account status

See the connected key's API-Hockey plan, when it renews, and how many of today's requests are used and left. It is free: it never counts against the day.

**Inputs**: None.

**Outputs**

- `active` (true/false): True while the subscription is active.
- `daily_limit` (number): Requests allowed a day.
- `plan` (text): The plan, such as Free.
- `requests_remaining` (number): Requests left today; the day starts at midnight UTC.
- `requests_today` (number): Requests used today.
- `subscription_end` (text): When the plan renews or ends.

**Example output**

```json
{
  "active": true,
  "daily_limit": 100,
  "plan": "Free",
  "requests_remaining": 88,
  "requests_today": 12,
  "subscription_end": "2027-10-01T00:00:00+00:00"
}
```

### Get game events

Get a game's goals and penalties in the order they happened: the period and minute, the team, who scored or was penalised, the assists, and the kind of goal or the penalty.

**Inputs**

- Game ID (`game_id`, text, required): The game's ID, such as 370293. List games returns them, and says whether each game has events.

**Outputs**

- `count` (number): How many came back.
- `events` (list): Its goals and penalties, in order.
- `game_id` (number): The game asked about.

**Example output**

```json
{
  "count": 3,
  "events": [
    {
      "assists": [
        "L. Stanley",
        "A. Jonsson Fjallby"
      ],
      "comment": null,
      "game_id": 370293,
      "minute": "00",
      "period": "P1",
      "players": [
        "D. Gustafsson"
      ],
      "team": {
        "id": 704,
        "logo": "https://media.api-sports.io/hockey/teams/704.png",
        "name": "Winnipeg Jets"
      },
      "type": "goal"
    },
    {
      "assists": [
        "C. Dineen",
        "C. Carrick"
      ],
      "comment": null,
      "game_id": 370293,
      "minute": "03",
      "period": "P1",
      "players": [
        "S. O'Reilly"
      ],
      "team": {
        "id": 683,
        "logo": "https://media.api-sports.io/hockey/teams/683.png",
        "name": "Edmonton Oilers"
      },
      "type": "goal"
    },
    {
      "assists": [],
      "comment": "Holding",
      "game_id": 370293,
      "minute": "03",
      "period": "P2",
      "players": [
        "D. Anhorn"
      ],
      "team": {
        "id": 704,
        "logo": "https://media.api-sports.io/hockey/teams/704.png",
        "name": "Winnipeg Jets"
      },
      "type": "penalty"
    }
  ],
  "game_id": 370293
}
```

### Get pre-match odds

Get bookmakers' pre-match odds for a game, or for a league's games in a season, optionally from one bookmaker or for one bet type. Odds appear 1 to 7 days before a game, are updated once a day and are kept for 7 days after it.

**Inputs**

- Game ID (`game_id`, text): Optional. Only this game's odds. Set this, or a league and a season.
- League (`league_id`, text): Optional. Only this competition. Pick one from the list, or pass a league ID such as 57 for the NHL.
- Season (`season`, number): Optional. Only this season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.
- Bookmaker (`bookmaker_id`, text): Optional. Only this bookmaker's odds. Pick one from the list.
- Bet type (`bet_id`, text): Optional. Only this kind of bet, such as Home/Away. Pick one from the list.

**Outputs**

- `count` (number): How many came back.
- `odds` (list): Each game's odds.

**Example output**

```json
{
  "count": 1,
  "odds": [
    {
      "bookmakers": [
        {
          "bets": [
            {
              "id": 2,
              "name": "Home/Away",
              "values": [
                {
                  "odd": 2.25,
                  "value": "Home"
                },
                {
                  "odd": 1.57,
                  "value": "Away"
                }
              ]
            }
          ],
          "id": 3,
          "name": "bet365"
        }
      ],
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "game": {
        "country": {
          "code": "US",
          "flag": "https://media.api-sports.io/flags/us.svg",
          "id": 31,
          "name": "USA"
        },
        "date": "2026-10-02T00:00:00+00:00",
        "has_events": true,
        "id": 444609,
        "league": {
          "id": 57,
          "logo": "https://media.api-sports.io/hockey/leagues/57.png",
          "name": "NHL",
          "season": 2026,
          "type": "League"
        },
        "periods": {
          "first": {
            "away": 2,
            "home": 0
          },
          "overtime": {
            "away": null,
            "home": null
          },
          "penalties": {
            "away": null,
            "home": null
          },
          "second": {
            "away": 0,
            "home": 1
          },
          "third": {
            "away": 1,
            "home": 0
          }
        },
        "scores": {
          "away": 3,
          "home": 1
        },
        "status": {
          "long": "Finished",
          "short": "FT"
        },
        "teams": {
          "away": {
            "id": 687,
            "logo": "https://media.api-sports.io/hockey/teams/687.png",
            "name": "Minnesota Wild"
          },
          "home": {
            "id": 689,
            "logo": "https://media.api-sports.io/hockey/teams/689.png",
            "name": "Nashville Predators"
          }
        },
        "time": "00:00",
        "timer": null,
        "timestamp": 1790899200,
        "timezone": "UTC",
        "week": null
      },
      "league": {
        "id": 57,
        "logo": "https://media.api-sports.io/hockey/leagues/57.png",
        "name": "NHL",
        "season": 2026,
        "type": "League"
      }
    }
  ]
}
```

### Get standings

Get a season's tables, such as the NHL's two conferences and four divisions: each team's place, games played, won and lost in regulation and in overtime, goals scored and conceded, points and form. Narrow to one team, stage or group.

**Inputs**

- League (`league_id`, text, required): The competition, such as 57 for the NHL, 35 for the KHL or 47 for the SHL. Pick one from the list, or pass a league ID from an earlier step.
- Season (`season`, number, required): The season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.
- Team ID (`team_id`, text): Optional. Only this team's line in each table it is in.
- Stage (`stage`, text): Optional. Only this stage, by name. List standings stages gives a season's stages.
- Group (`group`, text): Optional. Only this group, by name, such as Central Division. List standings groups gives a season's groups.

**Outputs**

- `count` (number): How many came back.
- `standings` (list): The tables, in the API's order.

**Example output**

```json
{
  "count": 2,
  "standings": [
    {
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "group": "Western Conference",
      "league": {
        "id": 57,
        "logo": "https://media.api-sports.io/hockey/leagues/57.png",
        "name": "NHL",
        "season": 2024,
        "type": "League"
      },
      "stage": "NHL - Regular Season",
      "table": [
        {
          "description": "Promotion - NHL (Play Offs: )",
          "form": "WLWWW",
          "games": {
            "losses": {
              "percentage": 0.268,
              "total": 22
            },
            "overtime_losses": {
              "percentage": 0.049,
              "total": 4
            },
            "overtime_wins": {
              "percentage": 0.159,
              "total": 13
            },
            "played": 82,
            "wins": {
              "percentage": 0.524,
              "total": 43
            }
          },
          "goals": {
            "against": 191,
            "for": 277
          },
          "points": 116,
          "position": 1,
          "team": {
            "id": 704,
            "logo": "https://media.api-sports.io/hockey/teams/704.png",
            "name": "Winnipeg Jets"
          }
        },
        {
          "description": "Promotion - NHL (Play Offs: )",
          "form": "WLWWL",
          "games": {
            "losses": {
              "percentage": 0.268,
              "total": 22
            },
            "overtime_losses": {
              "percentage": 0.122,
              "total": 10
            },
            "overtime_wins": {
              "percentage": 0.049,
              "total": 4
            },
            "played": 82,
            "wins": {
              "percentage": 0.561,
              "total": 46
            }
          },
          "goals": {
            "against": 219,
            "for": 275
          },
          "points": 110,
          "position": 2,
          "team": {
            "id": 702,
            "logo": "https://media.api-sports.io/hockey/teams/702.png",
            "name": "Vegas Golden Knights"
          }
        }
      ]
    },
    {
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "group": "Central Division",
      "league": {
        "id": 57,
        "logo": "https://media.api-sports.io/hockey/leagues/57.png",
        "name": "NHL",
        "season": 2024,
        "type": "League"
      },
      "stage": "NHL - Regular Season",
      "table": [
        {
          "description": "Promotion - NHL (Play Offs: )",
          "form": "WLWWW",
          "games": {
            "losses": {
              "percentage": 0.268,
              "total": 22
            },
            "overtime_losses": {
              "percentage": 0.049,
              "total": 4
            },
            "overtime_wins": {
              "percentage": 0.159,
              "total": 13
            },
            "played": 82,
            "wins": {
              "percentage": 0.524,
              "total": 43
            }
          },
          "goals": {
            "against": 191,
            "for": 277
          },
          "points": 116,
          "position": 1,
          "team": {
            "id": 704,
            "logo": "https://media.api-sports.io/hockey/teams/704.png",
            "name": "Winnipeg Jets"
          }
        },
        {
          "description": "Promotion - NHL (Play Offs: )",
          "form": "LLLLL",
          "games": {
            "losses": {
              "percentage": 0.317,
              "total": 26
            },
            "overtime_losses": {
              "percentage": 0.073,
              "total": 6
            },
            "overtime_wins": {
              "percentage": 0.11,
              "total": 9
            },
            "played": 82,
            "wins": {
              "percentage": 0.5,
              "total": 41
            }
          },
          "goals": {
            "against": 224,
            "for": 277
          },
          "points": 106,
          "position": 2,
          "team": {
            "id": 681,
            "logo": "https://media.api-sports.io/hockey/teams/681.png",
            "name": "Dallas Stars"
          }
        }
      ]
    }
  ]
}
```

### Get team statistics

Get a team's season in one competition: games played, won and lost at home, away and in all, overtime included, with their share of the games, and goals scored and conceded in total and per game.

**Inputs**

- League (`league_id`, text, required): The competition, such as 57 for the NHL, 35 for the KHL or 47 for the SHL. Pick one from the list, or pass a league ID from an earlier step.
- Season (`season`, number, required): The season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.
- Team ID (`team_id`, text, required): The team's ID, such as 704 for the Winnipeg Jets. Find teams looks one up. A team's ID is the same in every competition.
- Up to date (`on_date`, date): Optional. Count only games up to this day. The free plan takes only yesterday, today or tomorrow.

**Outputs**

- `country` (object): A country, or a region such as World for international competitions.
- `games` (object): The team's record.
- `goals` (object): Goals scored and conceded.
- `league` (object): The competition, and the season this is from.
- `team` (object): A team.

**Example output**

```json
{
  "country": {
    "code": "US",
    "flag": "https://media.api-sports.io/flags/us.svg",
    "id": 31,
    "name": "USA"
  },
  "games": {
    "losses": {
      "all": {
        "percentage": 0.356,
        "total": 36
      },
      "away": {
        "percentage": 0.46,
        "total": 23
      },
      "home": {
        "percentage": 0.255,
        "total": 13
      }
    },
    "played": {
      "all": 101,
      "away": 50,
      "home": 51
    },
    "wins": {
      "all": {
        "percentage": 0.644,
        "total": 65
      },
      "away": {
        "percentage": 0.54,
        "total": 27
      },
      "home": {
        "percentage": 0.745,
        "total": 38
      }
    }
  },
  "goals": {
    "against": {
      "average": {
        "all": 2.5,
        "away": 3.0,
        "home": 2.0
      },
      "total": {
        "all": 252,
        "away": 150,
        "home": 102
      }
    },
    "for": {
      "average": {
        "all": 3.3,
        "away": 3.1,
        "home": 3.5
      },
      "total": {
        "all": 335,
        "away": 157,
        "home": 178
      }
    }
  },
  "league": {
    "id": 57,
    "logo": "https://media.api-sports.io/hockey/leagues/57.png",
    "name": "NHL",
    "season": 2024,
    "type": "League"
  },
  "team": {
    "id": 704,
    "logo": "https://media.api-sports.io/hockey/teams/704.png",
    "name": "Winnipeg Jets"
  }
}
```

### List bet types

List the kinds of bet API-Hockey has odds for, such as Home/Away or Over/Under, with the IDs the odds filter takes.

**Inputs**

- Search (`search`, text): Optional. Only names containing this, at least 3 characters.

**Outputs**

- `bets` (list): The bet types.
- `count` (number): How many came back.

**Example output**

```json
{
  "bets": [
    {
      "id": 1,
      "name": "3Way Result"
    },
    {
      "id": 2,
      "name": "Home/Away"
    }
  ],
  "count": 2
}
```

### List bookmakers

List the bookmakers API-Hockey has odds from, with the IDs the odds filter takes. These IDs are API-Hockey's own: the same bookmaker can have another ID in another API-SPORTS API.

**Inputs**

- Search (`search`, text): Optional. Only names containing this, at least 3 characters.

**Outputs**

- `bookmakers` (list): The bookmakers.
- `count` (number): How many came back.

**Example output**

```json
{
  "bookmakers": [
    {
      "id": 1,
      "name": "bwin"
    },
    {
      "id": 3,
      "name": "bet365"
    }
  ],
  "count": 2
}
```

### List countries

List the countries and regions that have hockey competitions in API-Hockey, each with its ID, code and flag. The names are what the Country filters take.

**Inputs**

- Search (`search`, text): Optional. Only names containing this, at least 3 characters.
- Country code (`code`, text): Optional. Only the country with this two-letter code, such as US, CA or SE.

**Outputs**

- `count` (number): How many came back.
- `countries` (list): The countries.

**Example output**

```json
{
  "count": 2,
  "countries": [
    {
      "code": "US",
      "flag": "https://media.api-sports.io/flags/us.svg",
      "id": 31,
      "name": "USA"
    },
    {
      "code": null,
      "flag": null,
      "id": 34,
      "name": "World"
    }
  ]
}
```

### List games

List games and results by day, by league and season, or by team, each with its start time, round, status, the score and each period's goals, overtime and the shootout included.

**Inputs**

- Date (`on_date`, date): Optional. Only games on this day, in the time zone chosen below. The free plan takes only yesterday, today or tomorrow.
- League (`league_id`, text): Optional. Only this competition. Pick one from the list, or pass a league ID such as 57 for the NHL.
- Season (`season`, number): Optional. Only this season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.
- Team ID (`team_id`, text): Optional. Only this team, by ID, such as 704 for the Winnipeg Jets.
- Time zone (`timezone`, text): Optional. Give dates and times in this time zone, such as America/New_York or Europe/Stockholm. UTC when left empty.

**Outputs**

- `count` (number): How many came back.
- `games` (list): The games, in the order given.

**Example output**

```json
{
  "count": 1,
  "games": [
    {
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "date": "2024-09-22T22:00:00+00:00",
      "has_events": true,
      "id": 370293,
      "league": {
        "id": 57,
        "logo": "https://media.api-sports.io/hockey/leagues/57.png",
        "name": "NHL",
        "season": 2024,
        "type": "League"
      },
      "periods": {
        "first": {
          "away": 1,
          "home": 1
        },
        "overtime": {
          "away": 0,
          "home": 1
        },
        "penalties": {
          "away": null,
          "home": null
        },
        "second": {
          "away": 0,
          "home": 0
        },
        "third": {
          "away": 1,
          "home": 1
        }
      },
      "scores": {
        "away": 2,
        "home": 3
      },
      "status": {
        "long": "After Over Time",
        "short": "AOT"
      },
      "teams": {
        "away": {
          "id": 704,
          "logo": "https://media.api-sports.io/hockey/teams/704.png",
          "name": "Winnipeg Jets"
        },
        "home": {
          "id": 683,
          "logo": "https://media.api-sports.io/hockey/teams/683.png",
          "name": "Edmonton Oilers"
        }
      },
      "time": "22:00",
      "timer": null,
      "timestamp": 1727042400,
      "timezone": "UTC",
      "week": null
    }
  ]
}
```

### List head-to-head games

List the games two teams have played each other, in every season or only one league, season or day, with a count of each side's wins and goals across the finished ones.

**Inputs**

- First team ID (`first_team_id`, text, required): One of the two teams, by ID, such as 704 for the Winnipeg Jets. The summary counts its wins first.
- Second team ID (`second_team_id`, text, required): The other team, by ID, such as 681 for the Dallas Stars.
- League (`league_id`, text): Optional. Only this competition. Pick one from the list, or pass a league ID such as 57 for the NHL.
- Season (`season`, number): Optional. Only this season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.
- Date (`on_date`, date): Optional. Only games on this day, in the time zone chosen below. The free plan takes only yesterday, today or tomorrow.
- Time zone (`timezone`, text): Optional. Give dates and times in this time zone, such as America/New_York or Europe/Stockholm. UTC when left empty.

**Outputs**

- `count` (number): How many came back.
- `games` (list): Their games, oldest first.
- `summary` (object): A count of the finished games among them, overtime and shootouts included.

**Example output**

```json
{
  "count": 2,
  "games": [
    {
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "date": "2024-11-09T20:00:00+00:00",
      "has_events": true,
      "id": 386460,
      "league": {
        "id": 57,
        "logo": "https://media.api-sports.io/hockey/leagues/57.png",
        "name": "NHL",
        "season": 2024,
        "type": "League"
      },
      "periods": {
        "first": {
          "away": 0,
          "home": 2
        },
        "overtime": {
          "away": null,
          "home": null
        },
        "penalties": {
          "away": null,
          "home": null
        },
        "second": {
          "away": 0,
          "home": 2
        },
        "third": {
          "away": 1,
          "home": 0
        }
      },
      "scores": {
        "away": 1,
        "home": 4
      },
      "status": {
        "long": "Finished",
        "short": "FT"
      },
      "teams": {
        "away": {
          "id": 681,
          "logo": "https://media.api-sports.io/hockey/teams/681.png",
          "name": "Dallas Stars"
        },
        "home": {
          "id": 704,
          "logo": "https://media.api-sports.io/hockey/teams/704.png",
          "name": "Winnipeg Jets"
        }
      },
      "time": "20:00",
      "timer": null,
      "timestamp": 1731182400,
      "timezone": "UTC",
      "week": null
    },
    {
      "country": {
        "code": "US",
        "flag": "https://media.api-sports.io/flags/us.svg",
        "id": 31,
        "name": "USA"
      },
      "date": "2024-12-01T21:30:00+00:00",
      "has_events": true,
      "id": 386621,
      "league": {
        "id": 57,
        "logo": "https://media.api-sports.io/hockey/leagues/57.png",
        "name": "NHL",
        "season": 2024,
        "type": "League"
      },
      "periods": {
        "first": {
          "away": 1,
          "home": 1
        },
        "overtime": {
          "away": null,
          "home": null
        },
        "penalties": {
          "away": null,
          "home": null
        },
        "second": {
          "away": 0,
          "home": 0
        },
        "third": {
          "away": 0,
          "home": 2
        }
      },
      "scores": {
        "away": 1,
        "home": 3
      },
      "status": {
        "long": "Finished",
        "short": "FT"
      },
      "teams": {
        "away": {
          "id": 704,
          "logo": "https://media.api-sports.io/hockey/teams/704.png",
          "name": "Winnipeg Jets"
        },
        "home": {
          "id": 681,
          "logo": "https://media.api-sports.io/hockey/teams/681.png",
          "name": "Dallas Stars"
        }
      },
      "time": "21:30",
      "timer": null,
      "timestamp": 1733088600,
      "timezone": "UTC",
      "week": null
    }
  ],
  "summary": {
    "draws": 0,
    "first_team_goals": 5,
    "first_team_wins": 1,
    "played": 2,
    "second_team_goals": 4,
    "second_team_wins": 1
  }
}
```

### List seasons

List the seasons API-Hockey has data for, oldest first, as the four-digit years the Season fields take. A season played across two years is named by the year it starts in.

**Inputs**: None.

**Outputs**

- `count` (number): How many came back.
- `seasons` (list): The seasons, oldest first.

**Example output**

```json
{
  "count": 5,
  "seasons": [
    2022,
    2023,
    2024,
    2025,
    2026
  ]
}
```

### List standings groups

List the groups a competition's season has, such as the NHL's conferences and divisions, by the names Get standings takes as its Group.

**Inputs**

- League (`league_id`, text, required): The competition, such as 57 for the NHL, 35 for the KHL or 47 for the SHL. Pick one from the list, or pass a league ID from an earlier step.
- Season (`season`, number, required): The season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.

**Outputs**

- `count` (number): How many came back.
- `groups` (list): The groups, by name.

**Example output**

```json
{
  "count": 6,
  "groups": [
    "Western Conference",
    "Eastern Conference",
    "Atlantic Division",
    "Central Division",
    "Pacific Division",
    "Metropolitan Division"
  ]
}
```

### List standings stages

List the stages of a competition's season, such as the NHL's regular season and pre-season, which Get standings can narrow to.

**Inputs**

- League (`league_id`, text, required): The competition, such as 57 for the NHL, 35 for the KHL or 47 for the SHL. Pick one from the list, or pass a league ID from an earlier step.
- Season (`season`, number, required): The season, as the four-digit year it starts in, such as 2024 for 2024-25. The free plan reads the 2022 to 2024 seasons. From 1900 to 2100.

**Outputs**

- `count` (number): How many came back.
- `stages` (list): The stages, by name.

**Example output**

```json
{
  "count": 2,
  "stages": [
    "NHL - Regular Season",
    "NHL - Pre-season"
  ]
}
```
