Documentation / Teams
One team
GET /v1/teams/{team_id}Free key and up
One team: its name, short name, country and the leagues it has played in.
GET
https://api.icehockeyapi.com/v1/teams/{team_id}https://api.icehockeyapi.com/v1/teams/tm_kpzj338vcurl "https://api.icehockeyapi.com/v1/teams/tm_kpzj338v" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": {
"id": "tm_kpzj338v",
"name": "New York Rangers",
"short_name": "NYR",
"country": "North America",
"leagues": [
{
"id": "lg_6t11wec7",
"name": "NHL",
"first_season_start": 1926,
"last_season_start": 2026,
"games": 7697
}
]
},
"meta": {
"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. |
Returns
| Field | Type |
|---|---|
id | string |
name | string |
short_name | string |
country | string |
leagues | list |