Skip to content

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_player itself. Point any MCP client at https://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

playerobject
player.player_idstring
player.namestring
player.positionstring
player.batsstring
player.team_idstring
player.teamstring
player.team_namestring
batting[]array
List of objects
batting[].seasonnumber
batting[].panumber
batting[].abnumber
batting[].hnumber
batting[].doublesnumber
batting[].triplesnumber
batting[].hrnumber
batting[].bbnumber
batting[].sonumber
batting[].hbpnumber
batting[].sfnumber
batting[].re24number
batting[].avgnumber
batting[].obpnumber
batting[].slgnumber
batting[].opsnumber
batting[].k_pctnumber
batting[].bb_pctnumber
pitching[]array
List
notestring

Related endpoints

Try it

500 credits free on signup: 100 calls to get_player, and no card.