Skip to main content

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_id
https://hockey.sportdevs.com/players-statistics?player_id=eq.{player_id}

Get top 20 players with most goals from a specific league_id and season_id
https://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_id
https://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_id
https://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_id
https://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_id
https://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_id
https://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_id
https://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_id
https://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 type
https://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

Responses

OK


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

Loading...