Documentation / Players
One player
GET /v1/players/{player_id}Free key and up
One player: name, position, shoots, birth date and place, nationality, height, weight, draft and number of awards.
GET
https://api.icehockeyapi.com/v1/players/{player_id}https://api.icehockeyapi.com/v1/players/pl_zgna58eecurl "https://api.icehockeyapi.com/v1/players/pl_zgna58ee" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": {
"id": "pl_zgna58ee",
"name": "Matt Rempe",
"first_name": "Matt",
"last_name": "Rempe",
"position": "center",
"shoots": "right",
"birth_date": "2002-06-29",
"birth_place": "Calgary, Alberta",
"birth_country": "CAN",
"nationality": null,
"height_cm": 206,
"weight_kg": 122,
"draft": {
"year": 2020,
"team_code": "NYR",
"round": 6,
"pick": 10,
"overall": 165
},
"awards": 0
},
"meta": {
"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 |
|---|---|
id | string |
name | string |
first_name | string |
last_name | string |
position | string |
shoots | string |
birth_date | string |
birth_place | string |
birth_country | string |
nationality | null |
height_cm | int |
weight_kg | int |
draft | object |
draft.year | int |
draft.team_code | string |
draft.round | int |
draft.pick | int |
draft.overall | int |
awards | int |