Documentation / Teams
Team stats
GET /v1/teams/{team_id}/statsLive and up
A team's regular season in one season: overall, home and away records, shots a game and average home attendance.
GET
https://api.icehockeyapi.com/v1/teams/{team_id}/statshttps://api.icehockeyapi.com/v1/teams/tm_kpzj338v/stats?season_id=ss_0n4zhhnacurl "https://api.icehockeyapi.com/v1/teams/tm_kpzj338v/stats?season_id=ss_0n4zhhna" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": {
"team": {
"id": "tm_kpzj338v",
"name": "New York Rangers",
"short_name": "NYR",
"country": "North America"
},
"season_id": "ss_0n4zhhna",
"label": "2026-27",
"overall": {
"games": 7,
"wins": 5,
"losses": 2,
"ties": 0,
"overtime_wins": 0,
"overtime_losses": 0,
"shootout_wins": 0,
"shootout_losses": 0,
"goals_for": 23,
"goals_against": 13,
"points": 10,
"goal_difference": 10
},
"home": {
"games": 4,
"wins": 4,
"losses": 0,
"ties": 0,
"overtime_wins": 0,
"overtime_losses": 0,
"shootout_wins": 0,
"shootout_losses": 0,
"goals_for": 20,
"goals_against": 7,
"points": 8,
"goal_difference": 13
},
"away": {
"games": 3,
"wins": 1,
"losses": 2,
"ties": 0,
"overtime_wins": 0,
"overtime_losses": 0,
"shootout_wins": 0,
"shootout_losses": 0,
"goals_for": 3,
"goals_against": 6,
"points": 2,
"goal_difference": -3
},
"shots_for_per_game": 23.3,
"shots_against_per_game": 23.7,
"average_home_attendance": 17796
},
"meta": {
"points_rule": "2-1-0",
"stage": "regular season",
"plan": "Complete"
}
}Run works once the API is live; the code above works now.
Parameters
| Name | In | Type | What it does |
|---|---|---|---|
team_id required | path | id | A team, from /v1/teams. |
season_id required | query | id | A season, from /v1/leagues/{league_id}/seasons. |
Returns
| Field | Type |
|---|---|
team | object |
team.id | string |
team.name | string |
team.short_name | string |
team.country | string |
season_id | string |
label | string |
overall | object |
overall.games | int |
overall.wins | int |
overall.losses | int |
overall.ties | int |
overall.overtime_wins | int |
overall.overtime_losses | int |
overall.shootout_wins | int |
overall.shootout_losses | int |
overall.goals_for | int |
overall.goals_against | int |
overall.points | int |
overall.goal_difference | int |
home | object |
home.games | int |
home.wins | int |
home.losses | int |
home.ties | int |
home.overtime_wins | int |
home.overtime_losses | int |
home.shootout_wins | int |
home.shootout_losses | int |
home.goals_for | int |
home.goals_against | int |
home.points | int |
home.goal_difference | int |
away | object |
away.games | int |
away.wins | int |
away.losses | int |
away.ties | int |
away.overtime_wins | int |
away.overtime_losses | int |
away.shootout_wins | int |
away.shootout_losses | int |
away.goals_for | int |
away.goals_against | int |
away.points | int |
away.goal_difference | int |
shots_for_per_game | number |
shots_against_per_game | number |
average_home_attendance | int |