Matches Players Statistics
This endpoint allows you to retrieve the players statistics from matches.
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 every minute.
Use Cases
Get player statistics from a specific match_idhttps://baseball.sportdevs.com/matches-players-statistics?match_id=eq.{match_id}
Get the best player from a specific match_idhttps://baseball.sportdevs.com/matches-players-statistics?match_id=eq.{match_id}&order=rating.desc&limit=1
Get player statistics from a specific match_id and team_idhttps://baseball.sportdevs.com/matches-players-statistics?match_id=eq.{match_id}&team_id=eq.{team_id}
Get player statistics from a specific match_id, team_id and player_idhttps://baseball.sportdevs.com/matches-players-statistics?match_id=eq.{match_id}&team_id=eq.{team_id}&player_id=eq.{player_id}
Query Parameters
- match_id integer
Default value:
eq.50
The id of the match
- team_id integer
Default value:
eq.46515
The id of the team
- player_id integer
Default value:
eq.89668
The id of the player
- 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
- match_id integer
The id of the match
- team_id integer
The id of the team
Note: This is a Foreign Key to
teams.id
. - player_id integer
The id of the player
Note: This is a Foreign Key to
players.id
. - position text
The position of the player
- batting_fly_outs integer
The number of batting fly outs made by the player
- batting_ground_outs integer
The number of batting ground outs made by the player
- batting_runs integer
The number of batting runs made by the player
- batting_doubles integer
The number of batting doubles made by the player
- batting_triples integer
The number of batting triples made by the player
- batting_home_runs integer
The number of batting home runs made by the player
- batting_strike_outs integer
The number of batting strike outs made by the player
- batting_base_on_balls integer
The number of batting base on balls made by the player
- batting_hits integer
The number of batting hits made by the player
- batting_hit_by_pitch integer
The number of batting hit by pitch by the player
- batting_rbi integer
The number of batting rbi made by the player
- batting_caught_stealing integer
The number of batting caught stealing by the player
- batting_stolen_bases integer
The number of batting stolen bases made by the player
- batting_at_bats integer
The number of batting at bats made by the player
- batting_left_on_base integer
The number of batting left on base made by the player
- batting_sac_bunts integer
The number of batting sac bunts made by the player
- batting_sac_flies integer
The number of batting sac flies made by the player
- batting_average integer
The number of batting average made by the player
- batting_list_index integer
The number of batting list index made by the player
[
{
"match_id": 50,
"team_id": 46515,
"player_id": 89668,
"position": "LF",
"batting_fly_outs": 0,
"batting_ground_outs": 0,
"batting_runs": 0,
"batting_doubles": 1,
"batting_triples": 0,
"batting_home_runs": 0,
"batting_strike_outs": 2,
"batting_base_on_balls": 1,
"batting_hits": 1,
"batting_hit_by_pitch": 0,
"batting_rbi": 0,
"batting_caught_stealing": 0,
"batting_stolen_bases": 0,
"batting_at_bats": 3,
"batting_left_on_base": 1,
"batting_sac_bunts": 0,
"batting_sac_flies": 0,
"batting_average": 0
}
]