get_team_stats
5 creditsStats + aggregationPOST /v1/get_team_stats
Runs for and against, team batting and opponents' batting
Use it when you want team offence and run prevention: runs for and against and batting and opponents' batting rates.
Parameters
seasonnumber | stringoptional- Season (a year, e.g. 2025; default: the latest).
teamstringoptional
Notes
- Over MCP, ask for it in plain English and the client calls
get_team_statsitself. 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_team_stats \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"season": 2024,
"team": "PHI"
}'Response
json
{
"season": 2024,
"teams": [
{
"team_id": "22",
"abbrev": "PHI",
"team": "Philadelphia Phillies",
"games": 162,
"runs_per_game": 4.84,
"runs_allowed_per_game": 4.14,
"run_differential": 113,
"batting": {
"pa": 6170,
"hr": 198,
"avg": 0.257,
"obp": 0.325,
"slg": 0.424,
"ops": 0.749,
"k_pct": 0.222,
"bb_pct": 0.083
},
"pitching_against": {
"pa": 6053,
"hr": 181,
"avg": 0.243,
"obp": 0.305,
"slg": 0.397,
"ops": 0.702,
"k_pct": 0.237,
"bb_pct": 0.073
}
}
],
"count": 1,
"method": "Batting and opponents' batting counted from every plate appearance; runs from final scores."
}Response fields
seasonnumberteams[]array- List of objects
teams[].team_idstringteams[].abbrevstringteams[].teamstringteams[].gamesnumberteams[].runs_per_gamenumberteams[].runs_allowed_per_gamenumberteams[].run_differentialnumberteams[].battingobjectteams[].batting.panumberteams[].batting.hrnumberteams[].batting.avgnumberteams[].batting.obpnumberteams[].batting.slgnumberteams[].batting.opsnumberteams[].batting.k_pctnumberteams[].batting.bb_pctnumberteams[].pitching_againstobjectteams[].pitching_against.panumberteams[].pitching_against.hrnumberteams[].pitching_against.avgnumberteams[].pitching_against.obpnumberteams[].pitching_against.slgnumberteams[].pitching_against.opsnumberteams[].pitching_against.k_pctnumberteams[].pitching_against.bb_pctnumbercountnumbermethodstring
Related endpoints
list_teams1 cr
Returns the team this one takes.
Team ids, abbreviations and colours for a season
get_games2 cr
Takes the team this one returns.
Games with runs, hits and errors by season, date, range or team
get_schedule2 cr
Takes the team this one returns.
Upcoming games with the median line across sportsbooks
get_standings2 cr
Returns the team this one takes.
Standings from every final game, with run differential and Pythagorean record
Try it
500 credits free on signup: 100 calls to get_team_stats, and no card.