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 | postseasonoptionallimitintegeroptionaloffsetintegeroptional
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": 2024,
"limit": 3
}'Response
json
{
"player_id": "30951",
"batting": [
{
"game_id": "401701021",
"date": "2024-10-09",
"season": 2024,
"opponent": "NYM",
"home": false,
"batting_order": 3,
"position": "1B",
"ab": 3,
"r": 1,
"h": 1,
"rbi": 0,
"hr": 0,
"bb": 1,
"so": 1,
"pitches_seen": 16
},
{
"game_id": "401701020",
"date": "2024-10-08",
"season": 2024,
"opponent": "NYM",
"home": false,
"batting_order": 3,
"position": "1B",
"ab": 4,
"r": 0,
"h": 1,
"rbi": 1,
"hr": 0,
"bb": 0,
"so": 1,
"pitches_seen": 14
},
{
"game_id": "401701018",
"date": "2024-10-06",
"season": 2024,
"opponent": "NYM",
"home": true,
"batting_order": 3,
"position": "1B",
"ab": 3,
"r": 2,
"h": 1,
"rbi": 2,
"hr": 1,
"bb": 2,
"so": 2,
"pitches_seen": 28
}
],
"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_game5 cr
Takes the game_id this one returns.
One game: every batting and pitching line, each book's line, win probability
get_player5 cr
Takes the player_id this one returns.
Season batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9)
get_leaders5 cr
Returns the player_id this one takes.
Season leaders among qualified batters and pitchers
Try it
500 credits free on signup: 100 calls to get_player_games, and no card.