Documentation / Seasons
Season teams
GET /v1/seasons/{season_id}/teamsFree key and up
The teams that took part in a season, with their number of games. The free key reads current seasons.
GET
https://api.icehockeyapi.com/v1/seasons/{season_id}/teamshttps://api.icehockeyapi.com/v1/seasons/ss_0n4zhhna/teamscurl "https://api.icehockeyapi.com/v1/seasons/ss_0n4zhhna/teams" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"id": "tm_n4551jwr",
"name": "Anaheim Ducks",
"short_name": "ANA",
"country": "North America",
"games": 13
},
{
"id": "tm_7vyb6jrq",
"name": "Boston Bruins",
"short_name": "BOS",
"country": "North America",
"games": 14
},
{
"id": "tm_fyjh4knt",
"name": "Buffalo Sabres",
"short_name": "BUF",
"country": "North America",
"games": 13
}
],
"meta": {
"count": 32,
"plan": "Complete"
}
}Run works once the API is live; the code above works now.
Parameters
| Name | In | Type | What it does |
|---|---|---|---|
season_id required | path | id | A season, from /v1/leagues/{league_id}/seasons. |
Returns
| Field | Type |
|---|---|
id | string |
name | string |
short_name | string |
country | string |
games | int |