get_player
5 creditsStats + aggregationPOST /v1/get_player
Season batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9)
Use it when you are profiling a player: season batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9).
Parameters
player_idstringrequired- ESPN athlete id, from search_players.
Notes
- Over MCP, ask for it in plain English and the client calls
get_playeritself. 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 \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"player_id": "30951"
}'Response
json
{
"player": {
"player_id": "30951",
"name": "Bryce Harper",
"position": "1B",
"bats": "L",
"team_id": "22",
"team": "PHI",
"team_name": "Philadelphia Phillies"
},
"batting": [
{
"season": 2026,
"pa": 693,
"ab": 577,
"h": 155,
"doubles": 32,
"triples": 3,
"hr": 29,
"bb": 107,
"so": 146,
"hbp": 1,
"sf": 8,
"re24": 30.8,
"avg": 0.269,
"obp": 0.38,
"slg": 0.485,
"ops": 0.865,
"k_pct": 0.211,
"bb_pct": 0.154
},
{
"season": 2025,
"pa": 580,
"ab": 501,
"h": 131,
"doubles": 32,
"triples": 0,
"hr": 27,
"bb": 70,
"so": 121,
"hbp": 6,
"sf": 3,
"re24": 19.7,
"avg": 0.261,
"obp": 0.357,
"slg": 0.487,
"ops": 0.844,
"k_pct": 0.209,
"bb_pct": 0.121
},
{
"season": 2024,
"pa": 631,
"ab": 550,
"h": 157,
"doubles": 42,
"triples": 0,
"hr": 30,
"bb": 76,
"so": 138,
"hbp": 2,
"sf": 2,
"re24": 30.9,
"avg": 0.285,
"obp": 0.373,
"slg": 0.525,
"ops": 0.898,
"k_pct": 0.219,
"bb_pct": 0.12
}
],
"pitching": [],
"note": "Regular season. Batting is counted from plate appearances; pitching from box scores."
}Response fields
playerobjectplayer.player_idstringplayer.namestringplayer.positionstringplayer.batsstringplayer.team_idstringplayer.teamstringplayer.team_namestringbatting[]array- List of objects
batting[].seasonnumberbatting[].panumberbatting[].abnumberbatting[].hnumberbatting[].doublesnumberbatting[].triplesnumberbatting[].hrnumberbatting[].bbnumberbatting[].sonumberbatting[].hbpnumberbatting[].sfnumberbatting[].re24numberbatting[].avgnumberbatting[].obpnumberbatting[].slgnumberbatting[].opsnumberbatting[].k_pctnumberbatting[].bb_pctnumberpitching[]array- List
notestring
Related endpoints
search_players1 cr
Returns the player_id this one takes.
Find players by name
get_game5 cr
Returns the player_id this one takes.
One game: every batting and pitching line, each book's line, win probability
get_player_games5 cr
Takes the player_id this one returns.
A player's full batting and pitching game log
list_teams1 cr
Also static reference.
Team ids, abbreviations and colours for a season
Try it
500 credits free on signup: 100 calls to get_player, and no card.