get_player_games
5 creditsStats + aggregationPOST /v1/get_player_games
A player's full batting and pitching game log
Use it when you need every game's batting or pitching line for a player, for prop models, form charts or streaks.
Parameters
player_idstringrequiredseasonnumber | stringoptional- Season (a year, e.g. 2025; default: the latest).
season_typeenum: regular | postseasonoptionallimitintegeroptionaloffsetintegeroptionalleagueenum: mlb | ncaabaseoptional- League. Defaults to mlb. One of: mlb, ncaabase.
Notes
- Over MCP, ask for it in plain English and the client calls
get_player_gamesitself. Point any MCP client athttps://mcp.fastballapi.com/mcp?key=YOUR_API_KEY. - Each call costs 5 credits, taken before it runs and refunded if the server errors.
- Not the call you need? Find the right call by what you are trying to answer.
Request
curl -X POST https://mcp.fastballapi.com/v1/get_player_games \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"player_id": "30951",
"season": 2025,
"limit": 3
}'Response
json
{
"player_id": "30951",
"batting": [
{
"game_id": "401809281",
"date": "2025-10-09",
"season": 2025,
"opponent": "LAD",
"home": false,
"batting_order": 3,
"position": "1B",
"ab": 4,
"r": 0,
"h": 0,
"rbi": 0,
"hr": 0,
"bb": 1,
"so": 0,
"pitches_seen": 22
},
{
"game_id": "401809280",
"date": "2025-10-08",
"season": 2025,
"opponent": "LAD",
"home": false,
"batting_order": 3,
"position": "1B",
"ab": 4,
"r": 1,
"h": 2,
"rbi": 0,
"hr": 0,
"bb": 1,
"so": 0,
"pitches_seen": 14
},
{
"game_id": "401809279",
"date": "2025-10-06",
"season": 2025,
"opponent": "LAD",
"home": true,
"batting_order": 3,
"position": "1B",
"ab": 3,
"r": 0,
"h": 0,
"rbi": 0,
"hr": 0,
"bb": 1,
"so": 1,
"pitches_seen": 19
}
],
"pitching": [],
"count": 3,
"next_offset": 3
}Response fields
player_idstringbatting[]array- List of objects
batting[].game_idstringbatting[].datestringbatting[].seasonnumberbatting[].opponentstringbatting[].homebooleanbatting[].batting_ordernumberbatting[].positionstringbatting[].abnumberbatting[].rnumberbatting[].hnumberbatting[].rbinumberbatting[].hrnumberbatting[].bbnumberbatting[].sonumberbatting[].pitches_seennumberpitching[]array- List
countnumbernext_offsetnumber
Related endpoints
search_players1 cr
Returns the player_id this one takes.
Find players by name
get_injuries2 cr
Returns the player_id this one takes.
The latest injury report
get_game5 cr
Takes the game_id this one returns.
One game: every batting and pitching line, each book's line, win probability
get_odds5 cr
Takes the game_id this one returns.
Every sportsbook's moneyline, run line and total for a game (5) or a day (10)
Try it
500 free credits every month: 100 calls to get_player_games, and no card.