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://baseball.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://baseball.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://baseball.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://baseball.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://baseball.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://baseball.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://baseball.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://baseball.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://baseball.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://baseball.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.71789

    The id of the player

  • team_id integer

    Default value: eq.46288

    The id of the team

  • league_id integer

    Default value: eq.2873

    The id of the league

  • season_id integer

    Default value: eq.13080

    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

  • games_played_hitting numeric

    The number of hitting games played by the player

  • ground_outs_hitting numeric

    The number of hitting ground outs made by the player

  • air_outs_hitting numeric

    The number of hitting air outs made by the player

  • runs_hitting numeric

    The number of hitting runs made by the player

  • doubles_hitting numeric

    The number of hitting doubles made by the player

  • triples_hitting numeric

    The number of hitting triples made by the player

  • home_runs_hitting numeric

    The number of hitting home runs made by the player

  • strike_outs_hitting numeric

    The number of hitting strike outs made by the player

  • walks_hitting numeric

    The number of hitting base on balls made by the player

  • intentional_walks_hitting numeric

    The number of hitting intentional walks made by the player

  • hits_hitting numeric

    The number of hitting hits made by the player

  • hit_by_pitch_hitting numeric

    The number of hitting hit by pitch made by the player

  • average_hitting numeric

    The number of hitting avg made by the player

  • at_bats_hitting numeric

    The number of hitting at bats made by the player

  • on_base_percentage_hitting numeric

    The number of hitting obp made by the player

  • slugging_percentage_hitting numeric

    The number of hitting slg made by the player

  • on_base_plus_slugging_hitting numeric

    The number of hitting ops made by the player

  • caught_stealing_hitting numeric

    The number of hitting caught stealing made by the player

  • stolen_bases_hitting numeric

    The number of hitting stolen bases made by the player

  • ground_into_double_play_hitting numeric

    The number of hitting ground into double play made by the player

  • number_of_pitches_hitting numeric

    The hitting number of itches made by the player

  • plate_appearances_hitting numeric

    The number of hitting plate appearances by the player

  • total_bases_hitting numeric

    The number of hitting total bases made by the player

  • runs_batted_in_hitting numeric

    The number of hitting rbi made by the player

  • left_on_base_hitting numeric

    The number of hitting left on base made by the player

  • sacrifice_bunts_hitting numeric

    The number of hitting sac bunts made by the player

  • sacrifice_flies_hitting numeric

    The number of hitting sac flies made by the player

  • babip_hitting numeric

    The number of hitting babip made by the player

  • ground_outs_to_airouts_hitting numeric

    The number of hitting ground outs to air outs made by the player

  • games_played_pitching numeric

    The number of pitching games played by the player

  • games_started_pitching numeric

    The number of pitching games started by the player

  • ground_outs_pitching numeric

    The number of pitching ground outs made by the player

  • air_outs_pitching numeric

    The number of pitching air outs made by the player

  • runs_pitching numeric

    The number of pitching runs made by the player

  • doubles_pitching numeric

    The number of pitching doubles made by the player

  • triples_pitching numeric

    The number of pitching triples made by the player

  • home_runs_pitching numeric

    The number of pitching home runs made by the player

  • strike_outs_pitching numeric

    The number of pitching strike outs made by the player

  • walks_pitching numeric

    The number of pitching base on balls made by the player

  • intentional_walks_pitching numeric

    The number of pitching intentional walks made by the player

  • hits_pitching numeric

    The number of pitching hits made by the player

  • hit_by_pitch_pitching numeric

    The number of pitching hit by pitch made by the player

  • average_pitching numeric

    The number of pitching avg made by the player

  • at_bats_pitching numeric

    The number of pitching at bats made by the player

  • on_base_percentage_pitching numeric

    The number of pitching obp made by the player

  • slugging_percentage_pitching numeric

    The number of pitching slg made by the player

  • on_base_plus_slugging_pitching numeric

    The number of pitching ops made by the player

  • caught_stealing_pitching numeric

    The number of pitching caught stealing made by the player

  • stolen_bases_pitching numeric

    The number of pitching stolen bases made by the player

  • stolen_base_percentage_pitching numeric

    The number of pitching stolen base made by the player in %

  • ground_into_double_play_pitching numeric

    The number of pitching ground into double play made by the player

  • number_of_pitches_pitching numeric

    The number of pitching number of pitches made by the player

  • earned_run_average_pitching numeric

    The number of pitching era made by the player

  • innings_pitched_pitching numeric

    The number of pitching innings pitched by the player

  • wins_pitching numeric

    The number of pitching wins made by the player

  • losses_pitching numeric

    The number of pitching losses made by the player

  • saves_pitching numeric

    The number of pitching saves made by the player

  • save_opportunities_pitching numeric

    The number of pitching save opportunities made by the player

  • holds_pitching numeric

    The number of pitching holds made by the player

  • earned_runs_pitching numeric

    The number of pitching earned runs made by the player

  • walks_hits_per_inning_pitching numeric

    The number of pitching whip made by the player

  • batters_faced_pitching numeric

    The number of pitching batters faced made by the player

  • shutouts_pitching numeric

    The number of pitching shutouts made by the player

  • strikes_pitching numeric

    The number of pitching strikes made by the player

  • strike_percentage_pitching numeric

    The number of pitching strike made by the player in %

  • hit_batsmen_pitching numeric

    The number of pitching hit batsmen made by the player

  • balks_pitching numeric

    The number of pitching balks made by the player

  • wild_pitches_pitching numeric

    The number of pitching wild pitches made by the player

  • pickoffs_pitching numeric

    The number of pitching pick offs made by the player

  • ground_outs_to_airouts_pitching numeric

    The number of pitching ground outs to air outs made by the player

  • win_percentage_pitching numeric

    The number of pitching win made by the player in %

  • pitches_per_inning_pitching numeric

    The number of pitching pitches per inning made by the player

  • games_finished_pitching numeric

    The number of pitching games finished by the player

  • strikeout_walk_ratio_pitching numeric

    The number of pitching strikeout walk ratio made by the player

  • strikeouts_per_9_innings_pitching numeric

    The number of pitching strikeouts per 9 innings made by the player

  • walks_per_9_innings_pitching numeric

    The number of pitching walks per 9 innings made by the player

  • hits_per_9_innings_pitching numeric

    The number of pitching hits per 9 innings made by the player

  • runs_scored_per_9_innings_pitching numeric

    The number of pitching runs scored per 9 innings made by the player

  • home_runs_per_9_innings_pitching numeric

    The number of pitching home runs per 9 innings made by the player

  • inherited_runners_pitching numeric

    The number of pitching inherited runners made by the player

  • inherited_runners_scored_pitching numeric

    The number of pitching inherited runners scored by the player

  • sacrifice_bunts_pitching numeric

    The number of pitching sac bunts made by the player

  • sacrifice_flies_pitching numeric

    The number of pitching sac flies made by the player

  • assists_fielding numeric

    The number of fielding assists made by the player

  • put_outs_fielding numeric

    The number of fielding put outs made by the player

  • errors_fielding numeric

    The number of fielding errors made by the player

  • chances_fielding numeric

    The number of fielding chances made by the player

  • fielding_fielding numeric

    The number of fielding fielding made by the player

  • range_factor_per_game_fielding numeric

    The number of fielding range factor per game made by the player

  • innings_fielding numeric

    The number of fielding innings made by the player

  • games_started_fielding numeric

    The number of fielding games started by the player

  • double_plays_fielding numeric

    The number of fielding double plays made by the player

  • total_appearances numeric

    The number of appearances by the player

Loading...