Documentation / Players
Career
GET /v1/players/{player_id}/seasonsLive and upMCP tool: player_career
A player's career season by season, every league and team, regular season and playoffs, with skater or goalie numbers.
GET
https://api.icehockeyapi.com/v1/players/{player_id}/seasonshttps://api.icehockeyapi.com/v1/players/pl_zgna58ee/seasonscurl "https://api.icehockeyapi.com/v1/players/pl_zgna58ee/seasons" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"season": "2015-16",
"stage": "regular",
"league_name": "HCBAA",
"team_name": "CNHA Blazers U15 AA",
"games": 29,
"goals": 10,
"assists": 9,
"points": 19,
"penalty_minutes": 14,
"plus_minus": null,
"power_play_goals": null,
"short_handed_goals": null,
"game_winning_goals": null,
"shots": null
},
{
"season": "2016-17",
"stage": "playoffs",
"league_name": "CSSHL U15",
"team_name": "Okanagan HA U15 Prep",
"games": 3,
"goals": 1,
"assists": 1,
"points": 2,
"penalty_minutes": 2,
"plus_minus": null,
"power_play_goals": null,
"short_handed_goals": null,
"game_winning_goals": null,
"shots": null
},
{
"season": "2016-17",
"stage": "regular",
"league_name": "CSSHL U15",
"team_name": "Okanagan HA U15 Prep",
"games": 30,
"goals": 1,
"assists": 6,
"points": 7,
"penalty_minutes": 8,
"plus_minus": null,
"power_play_goals": null,
"short_handed_goals": null,
"game_winning_goals": null,
"shots": null
}
],
"meta": {
"count": 21,
"player_id": "pl_zgna58ee",
"plan": "Complete"
}
}Run works once the API is live; the code above works now.
Parameters
| Name | In | Type | What it does |
|---|---|---|---|
player_id required | path | id | A player, from /v1/players. |
Returns
| Field | Type |
|---|---|
season | string |
stage | string |
league_name | string |
team_name | string |
games | int |
goals | int |
assists | int |
points | int |
penalty_minutes | int |
plus_minus | null |
power_play_goals | null |
short_handed_goals | null |
game_winning_goals | null |
shots | null |