get_team_stats
5 creditsStats + aggregationPOST /v1/get_team_stats
Data refreshed · changelog
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).
teamstringoptionalleagueenum: mlb | ncaabaseoptional- League. Defaults to mlb. One of: mlb, ncaabase.
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": 2025,
"team": "PHI"
}'Response
json
{
"season": 2025,
"teams": [
{
"team_id": "22",
"abbrev": "PHI",
"team": "Philadelphia Phillies",
"games": 162,
"runs_per_game": 4.8,
"runs_allowed_per_game": 4,
"run_differential": 130,
"batting": {
"pa": 6167,
"hr": 212,
"avg": 0.258,
"obp": 0.327,
"slg": 0.431,
"ops": 0.758,
"k_pct": 0.217,
"bb_pct": 0.085
},
"pitching_against": {
"pa": 6029,
"hr": 177,
"avg": 0.244,
"obp": 0.304,
"slg": 0.392,
"ops": 0.697,
"k_pct": 0.244,
"bb_pct": 0.072
}
}
],
"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 free credits every month: 100 calls to get_team_stats, and no card.