Matches At Bats
This endpoint allows you to retrieve the at-bats from baseball matches.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
langattribute. 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 at-bats from a specific match_idhttps://baseball.sportmicro.com/matches-at-bats?match_id=eq.{match_id}
Get at-bats from a specific match_id and inninghttps://baseball.sportmicro.com/matches-at-bats?match_id=eq.{match_id}&inning=eq.{inning}
Get at-bats from a specific match_id and pitcher_idhttps://baseball.sportmicro.com/matches-at-bats?match_id=eq.{match_id}&pitcher_id=eq.{pitcher_id}
Get at-bats from a specific match_id and hitter_idhttps://baseball.sportmicro.com/matches-at-bats?match_id=eq.{match_id}&hitter_id=eq.{hitter_id}
Query Parameters
- id integer
The id of the at-bat
Example: eq.1 - match_id integer
The id of the match
Example: eq.1 - pitcher_id integer
The id of the pitcher
Example: eq.1 - pitcher_team_id integer
The id of the pitcher's team
Example: eq.1 - hitter_id integer
The id of the hitter
Example: eq.2 - hitter_team_id integer
The id of the hitter's team
Example: eq.2 - inning integer
The inning number
Example: eq.1 - inning_half text
The inning half (T for top, B for bottom)
Example: eq.T - incident_type text
The incident type
Example: eq.baseballAtBat - offset string
Default value:
0Limiting and Pagination
Example: 0 - limit string
Default value:
50Limiting and Pagination
Example: 50 - lang string
Default value:
enMulti-language
Example: en
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
The id of the at-bat
Note: This is a Primary Key.
- match_id integer
The id of the match
Note: This is a Foreign Key to
matches.id. - pitcher_id integer
The id of the pitcher
Note: This is a Foreign Key to
players.id. - pitcher_name text
The name of the pitcher
- pitcher_hash_image character varying
The hash image of the pitcher
- pitcher_position text
The position of the pitcher from the at-bat feed
- pitcher_jersey_number text
The jersey number of the pitcher
- pitcher_team_id integer
The id of the pitcher's team
Note: This is a Foreign Key to
teams.id. - pitcher_team_name text
The name of the pitcher's team
- pitcher_team_hash_image character varying
The hash image of the pitcher's team
- hitter_id integer
The id of the hitter
Note: This is a Foreign Key to
players.id. - hitter_name text
The name of the hitter
- hitter_hash_image character varying
The hash image of the hitter
- hitter_position text
The position of the hitter from the at-bat feed
- hitter_jersey_number text
The jersey number of the hitter
- hitter_team_id integer
The id of the hitter's team
Note: This is a Foreign Key to
teams.id. - hitter_team_name text
The name of the hitter's team
- hitter_team_hash_image character varying
The hash image of the hitter's team
- inning integer
The inning number
- inning_half text
The inning half (T for top, B for bottom)
- home_team_winning_probability_start numeric
The home team winning probability before the at-bat
- away_team_winning_probability_start numeric
The away team winning probability before the at-bat
- home_team_winning_probability numeric
The home team winning probability after the at-bat
- away_team_winning_probability numeric
The away team winning probability after the at-bat
- time timestamp with time zone
The timestamp of the at-bat
- incident_type text
The incident type
[
{
"id": 1,
"match_id": 1,
"pitcher_id": 1,
"pitcher_name": "Hunter Greene",
"pitcher_hash_image": "b6f2ef3a6b3c1ddf7f0c3c20f358d7fc6fd4e2a9e78fd20851bdab96f7f0f7e1",
"pitcher_position": "SP",
"pitcher_jersey_number": "21",
"pitcher_team_id": 1,
"pitcher_team_name": "Cincinnati Reds",
"pitcher_team_hash_image": "f0f4a6b6d929c4a065c6d8f88d0b06a85054cbf1c7c6b109d2686f2ea43032f5",
"hitter_id": 2,
"hitter_name": "Jake Mangum",
"hitter_hash_image": "4c6f4f7f7b1a8e8d6f4af6fd4b9f0c1931c5ef5e2a2fd01bcf42db4d88d278aa",
"hitter_position": "CF",
"hitter_jersey_number": "28",
"hitter_team_id": 2,
"hitter_team_name": "Pittsburgh Pirates",
"hitter_team_hash_image": "4a1eb27f3acbdf6b2fd278aeea0a81f8a3465dd2a4de0b62e616bb6c8999b4c7",
"inning": 1,
"inning_half": "T",
"home_team_winning_probability_start": 46.2,
"away_team_winning_probability_start": 53.8,
"home_team_winning_probability": 47.8,
"away_team_winning_probability": 52.2,
"time": "2026-08-01T20:53:13+00:00",
"incident_type": "baseballAtBat"
}
]