Players Statistics
This endpoint allows you to retrieve the statistics from players.
For the type argument you can search by: overall, home and away, but overall is most common type for this endpoint.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
lang
attribute. Example:lang=en
.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated every minute.
Recommended Calls: Limit calls to 1 per minute.
Use Cases
Get statistics from a specific player_idhttps://hockey.sportdevs.com/players-statistics?player_id=eq.{player_id}
Get top 20 players with most goals from a specific league_id and season_idhttps://hockey.sportdevs.com/players-statistics?league_id=eq.{league_id}&season_id=eq.{season_id}&order=goals.desc&limit=20
Get top 20 players with most rating from a specific league_id and season_idhttps://hockey.sportdevs.com/players-statistics?league_id=eq.{league_id}&season_id=eq.{season_id}&order=rating.desc&limit=20
Get top 20 players with most red cards from a specific league_id and season_idhttps://hockey.sportdevs.com/players-statistics?league_id=eq.{league_id}&season_id=eq.{season_id}&order=red_cards.desc&limit=20
Get top 20 players with most yellow cards from a specific league_id and season_idhttps://hockey.sportdevs.com/players-statistics?league_id=eq.{league_id}&season_id=eq.{season_id}&order=yellow_cards.desc&limit=20
Get top 20 players with most assists from a specific league_id and season_idhttps://hockey.sportdevs.com/players-statistics?league_id=eq.{league_id}&season_id=eq.{season_id}&order=assists.desc&limit=20
Get statistics from a specific player_id and team_idhttps://hockey.sportdevs.com/players-statistics?player_id=eq.{player_id}&team_id=eq.{team_id}
Get statistics from a specific player_id, team_id and league_idhttps://hockey.sportdevs.com/players-statistics?player_id=eq.{player_id}&team_id=eq.{team_id}&league_id=eq.{league_id}
Get statistics from a specific player_id, team_id, league_id and season_idhttps://hockey.sportdevs.com/players-statistics?player_id=eq.{player_id}&team_id=eq.{team_id}&league_id=eq.{league_id}&season_id=eq.{season_id}
Get statistics from a specific player_id, team_id, league_id, season_id and typehttps://hockey.sportdevs.com/players-statistics?player_id=eq.{player_id}&team_id=eq.{team_id}&league_id=eq.{league_id}&season_id=eq.{season_id}&type=eq.{type}
Query Parameters
- player_id integer
Default value:
eq.70098
The id of the player
- team_id integer
Default value:
eq.36892
The id of the team
- league_id integer
Default value:
eq.2071
The id of the league
- season_id integer
Default value:
eq.14286
The id of the season
- type text
Default value:
eq.regularSeason
The type of the statistics
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
The id of the player's statistics
Note: This is a Primary Key.
- player_id integer
The id of the player
Note: This is a Foreign Key to
players.id
. - team_id integer
The id of the team
Note: This is a Foreign Key to
teams.id
. - team_name text
The name of the team
- team_hash_image character varying
Possible values:
<= 64 characters
The name image of the team
- league_id integer
The id of the league
Note: This is a Foreign Key to
leagues.id
. - league_name text
The name of the league
- league_hash_image character varying
Possible values:
<= 64 characters
The name image of the league
- season_id integer
The id of the season
Note: This is a Foreign Key to
seasons.id
. - season_name text
The name of the season
- type text
The type of the statistics
- total_assists numeric
The number of total assists
- shots_blocked numeric
The number of blocked shots made by the player
- even_strength_time_on_ice numeric
The number of even time on ice by the player
- faceoff_win_percentage numeric
The number of face offs by the player
- faceoffs_taken numeric
The number of face off taken by the player
- faceoffs_won numeric
The number of face off wins by the player
- game_winning_goals_scored numeric
The number of game winning goals by the player
- total_goals_scored numeric
The number of total goals scored
- total_hits numeric
The number of hits made by the player
- overtime_goals_scored numeric
The number of over time goals made by the player
- total_penalty_minutes numeric
The number of penalty minutes made by the player
- plus_minus_rating numeric
The number of plus minus made by the player
- total_points numeric
The number of points by the player
- power_play_goals_scored numeric
The number of power play goals made by the player
- power_play_points numeric
The number of power play points made by the player
- power_play_time_on_ice numeric
The number of power play time on ice made by the player
- total_shifts_played numeric
The number of shifts made by the player
- short_handed_goals_scored numeric
The number of short handed goals made by the player
- short_handed_points numeric
The number of short handed points made by the player
- short_handed_time_on_ice numeric
The number of short handed time on ice made by the player
- total_shots_taken numeric
The number of shots taken made by the player
- shooting_percentage numeric
The number of shots made by the player
- total_time_on_ice numeric
The number of time on ice by the player
- total_appearances numeric
The number of appearances by the player
[
{
"id": 1,
"player_id": 70098,
"team_id": 36892,
"team_name": "Anaheim Ducks",
"team_hash_image": "717a785e0b01853b9f996144bd33b0c8297d7fe9ece3f940467af8ddaabda6c4",
"league_id": 2071,
"league_name": "NHL",
"league_hash_image": "04f699e960eab3da1e26aff4fd198b3f9e05f8bdceb1a3a389c873e5a2a75e59",
"season_id": 14286,
"season_name": "NHL 21/22",
"type": "regularSeason",
"total_assists": 0,
"shots_blocked": 4,
"even_strength_time_on_ice": 5226,
"game_winning_goals_scored": 0,
"total_goals_scored": 0,
"total_hits": 11,
"overtime_goals_scored": 0,
"total_penalty_minutes": 0,
"plus_minus_rating": 0,
"total_points": 0,
"power_play_goals_scored": 0,
"power_play_points": 0,
"power_play_time_on_ice": 0,
"total_shifts_played": 111,
"short_handed_goals_scored": 0,
"short_handed_points": 0,
"short_handed_time_on_ice": 54,
"total_shots_taken": 6,
"shooting_percentage": 0,
"total_time_on_ice": 5280,
"total_appearances": 6
}
]