Skip to main content

Base URL

https://v2.baseball.sportsapipro.com

Authentication

All requests require an x-api-key header:
curl -H "x-api-key: YOUR_API_KEY" \
  https://v2.baseball.sportsapipro.com/api/live

Key Test IDs

EntityNameID
TournamentMLB, Preseason11527
Season2026 Spring Training88263
TeamAtlanta Braves3656
TeamTampa Bay Rays3653
MatchBraves vs Rays15323741

Baseball-Specific Notes

  • Scoring: 9 innings + extras. Score fields: period1 through period9, plus additional for extra innings. current = total score.
  • Standings: 6 divisions — AL East/Central/West, NL East/Central/West.
  • Playoffs: World Series bracket available via /knockout endpoint.
  • Positions: P, C, 1B, 2B, 3B, SS, LF, CF, RF, DH.
  • Key Stats: BA, HR, RBI, ERA, OPS, K (strikeouts).
  • Transfers: Trades, free agency, waivers, call-ups, DFA.

Endpoint Categories

CategoryEndpointsDescription
Live & Schedule14Live games, schedules, search, discovery
Match / Game27Game details, scores, stats, odds
Tournament / League25League info, standings, seasons
Team15Rosters, results, transactions
Player18Player stats, career history
Manager / Umpire / Venue15Managers, umpires, ballparks
Total114

Example Requests

curl -X GET "https://v2.baseball.sportsapipro.com/api/live" \
  -H "x-api-key: YOUR_API_KEY"

UI Design Ideas

  • Scoreboard: Show inning-by-inning linescore (R-H-E format) with current inning indicator
  • Game stats: Hits, runs, errors, batting average, ERA, pitch counts
  • Standings: Display as 6 division tables (AL East/Central/West, NL East/Central/West) with W-L-PCT-GB
  • Playoff bracket: ALDS/NLDS → ALCS/NLCS → World Series
  • Player profile: Show position, bats/throws (R/L/S), team, jersey number
  • Roster view: Group by Pitchers (SP/RP/CL), Catchers, Infielders, Outfielders, DH

Roster Grouping

GroupPositions
PitchersSP (Starting Pitcher), RP (Relief Pitcher), CL (Closer)
CatchersC
Infielders1B, 2B, 3B, SS
OutfieldersLF, CF, RF
Designated HitterDH

Sport Comparison — Baseball vs Football

FeatureBaseballFootball (Soccer)
Match format9 innings + extras2 × 45 min
Score range3-8 runs per team typical0-5 goals typical
Score fieldsperiod1-period9 (innings) + extrasperiod1-period2
Key statsBA, HR, RBI, ERA, OPSGoals, assists, possession
PositionsP, C, 1B, 2B, 3B, SS, LF, CF, RF, DHGK, D, M, F
SeasonFeb-Oct (162 games + playoffs)Aug-May
Standings6 divisions (AL/NL × East/Central/West)Single league table