MLB
Get MLB team season statistics
Returns one MLB team's statistics. team_id and group (hitting, pitching, fielding, catching, running, game, team or streak) are required. season defaults to the current year and stat_type to season. Other stat_type values cover splits and logs. Use start_date with end_date for date ranges.
get/mlb/team-stats
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/mlb/team-stats
- Auth: API key in header x-api-key
Query parameters
team_idstring required
Numeric MLB team id
seasoninteger
Four-digit season
group'hitting' | 'pitching' | 'fielding' | 'catching' | 'running' | 'game' | 'team' | 'streak' required
Statistics group
stat_type'projected' | 'projectedRos' | 'yearByYear' | 'yearByYearAdvanced' | 'yearByYearPlayoffs' | 'season' | 'standard' | 'advanced' | 'career' | 'careerRegularSeason' | 'careerAdvanced' | 'seasonAdvanced' | 'careerStatSplits' | 'careerPlayoffs' | 'gameLog' | 'playLog' | 'pitchLog' | 'pitchArsenal' | 'outsAboveAverage' | 'expectedStatistics' | 'sabermetrics' | 'sprayChart' | 'tracking' | 'vsPlayer' | 'vsPlayerTotal' | 'vsPlayer5Y' | 'vsTeam' | 'vsTeam5Y' | 'vsTeamTotal' | 'lastXGames' | 'byDateRange' | 'byDateRangeAdvanced' | 'byMonth' | 'byMonthPlayoffs' | 'byDayOfWeek' | 'byDayOfWeekPlayoffs' | 'homeAndAway' | 'homeAndAwayPlayoffs' | 'winLoss' | 'winLossPlayoffs' | 'rankings' | 'rankingsByYear' | 'statsSingleSeason' | 'statsSingleSeasonAdvanced' | 'hotColdZones' | 'availableStats' | 'opponentsFaced' | 'gameTypeStats' | 'firstYearStats' | 'lastYearStats' | 'statSplits' | 'statSplitsAdvanced' | 'atGameStart' | 'vsOpponents' | 'sabermetricsMultiTeam' | 'projected_Zips' | 'projected_ZipsRos' | 'projected_Zips2YR' | 'projected_Zips3YR'
Stats API stat type; defaults to season
game_type'S' | 'R' | 'F' | 'D' | 'L' | 'W' | 'C' | 'P' | 'A' | 'I' | 'E'
MLB game type
start_datestring
Start date for byDateRange stat types; requires end_date
end_datestring
End date for byDateRange stat types; requires start_date
opponent_team_idstring
Required by vsTeam stat types
opponent_player_idstring
Required by vsPlayer stat types
Headers
x-api-keystring required
API key required
Response
OK
Example response
{
"code": 200,
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.