Back to API overview

Player

Player details

Definition

GET https://api-v2.swissunihockey.ch/api/players/:player_id

Returns the details for the player as a JSON object.

These fields are returned:

club
string
Current club
number
string
Player number
position
string
Player position
year_of_birth
string
Year of birth of player
height
string
Height of the player in cm
weight
string
Weight of the player in kg
license
string
Type of license and league of validity

Sample Response

Player Statistics

Definition

GET https://api-v2.swissunihockey.ch/api/players/:player_id/statistics

Returns a Table for a given player with the following columns.

saison
integer
Identifier of the Saison when the statistics were taken.
liga
text
Name of the Liga the player was in at the time.
verein
text
Name of the Verein the player was in at the time.
games
text
Amount of games played.
goals
text
Amount of goals scored.
assists
text
Amount of assists made.
points
text
Amount of points scored.
2-minute-penalty
text
Amount of 2 minute penalties.
5-minute-penalty
text
Amount of 5 minute penalties.
10-minute-penalty
text
Amount of 10 minute penalties.
matchpenalty
text
Amount of match penalties.

Sample Response

Player Overview

Definition

GET https://api-v2.swissunihockey.ch/api/players/:player_id/overview

Returns a Table for a given player with an overview of the player's teams' games and other games the player has been playing (not with their team).

date
text
Date of the game.
location
text
Place the game has been played.
time
text
Time the game started.
home
text
Home team name.
away
text
Away team name.
score
text
Score of the game.
goals
text
Amount of goals the player has scored in the game.
Can also contain a text if the player has not scored.
assists
text
Amount of assists the player has scored in the game.
points
text
Amount of points the player has scored in the game.
match_penalties
text
Amount of match penalties.

Sample Response