Back to API overview

National Player

Player List

Definition

GET https://api-v2.swissunihockey.ch/api/national_players

Returns a list of players for a given selection that is currently actively playing.

Returns the following fields in a TABLE.

number
string
Players number (on the back) or '-'.
position
string
Play position or an empty string.
name
string
The players name.

Sample Response

Player Details

Definition

GET https://api-v2.swissunihockey.ch/api/national_players/:national_player_id

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
selection
string
What national selection this player plays in.

Sample Response

Player Statistics

Definition

GET https://api-v2.swissunihockey.ch/api/national_players/statistics

Returns a table with statistics for all national players that have played at least one game during their career. This view is also called the 'Ewiges Kader'.

selection_id
one of {1, 2}
A selection id of 1 returns all male national players, 2 returns all female national players.
order
string
Order criterion, see header for possible values.
direction
one of {"desc", "asc"}
Order direction

Sample Response

Player National Team Statistics

Definition

GET https://api-v2.swissunihockey.ch/api/national_players/:national_player_id/statistics

Returns a Table containing "Spielerstatistik Nationalteam" data for a given player with the following columns.

selection
text
Name of the Selection the player has been in.
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