XPack

Tank01 MLB Live In-Game Real Time Statistics

@XPack

Tank01 offers an API for MLB live in-game real-time stats, including betting odds, player prop bets. It updates game schedules, ADP, etc. hourly. Also provides player news. Has endpoints for various data like batter vs pitcher, injuries, player info, box score, and more.

Tank01 MLB Live In-Game Real Time Statistics API Documentation

1. Overview

Tank01 provides an API that offers MLB (Major League Baseball) live, in-game, real-time statistics. It also includes betting/gambling odds and player prop bets. Game schedules, ADP, game times, and rosters are updated every hour. Additionally, it offers player news, fantasy news, and top headlines, all updated multiple times an hour. Now it also includes fantasy projections, making it perfect for supporting fantasy sites or any application that needs MLB data in real time.

2. Tools and Endpoints

2.1 Batter Vs Pitcher

  • Description: Enter a playerID to retrieve a list of players that he's pitched or hit against, and their head to head stats. Providing a pitcher's playerID will retrieve a list of hitters, and providing a hitter's playerID will retrieve a list of pitchers.
  • Endpoint: Not specified in the given text. Assume it's a custom API call related to the main service.
  • Example Usage:
    • To get hitters a pitcher has faced: /batterVsPitcher?pitcherID=12345
    • To get pitchers a hitter has faced: /batterVsPitcher?hitterID=67890

2.2 Get Injuries By Date

  • Description: Gets the injury list for a date in format YYYYMMDD. Can be filtered by team abbreviation. List available on and after 5/7/2025.
  • Endpoint: /getInjuriesByDate?date=YYYYMMDD&teamAbv=XXX (where date is in the required format and teamAbv is optional)
  • Example: /getInjuriesByDate?date=20250507&teamAbv=CHW

2.3 Get Player Information

  • Description: Call this to get general information on each player (name, team, experience, birthday, college, image link, etc). Can accept either "playerID" or "playerName". If using playerID, the body will return one object. If using playerName, it will return a list of objects. Using partial name with playerName is supported. getStats=true will bring back current season stats for the returned players. statsSeason parameter lets you choose a previous season for stats (goes back to 2023 only, ignored if getStats is not "true", defaults to current season if empty).
  • Endpoint: /getPlayerInformation?playerID=XXX or /getPlayerInformation?playerName=XXX&getStats=true&statsSeason=2023
  • Example:
    • Using playerID: /getPlayerInformation?playerID=592450
    • Using playerName: /getPlayerInformation?playerName=smith&getStats=true

2.4 Get Daily Schedule

  • Description: Get basic information on which games are being played during a day. Date must be in the format YYYYMMDD.
  • Endpoint: /getMLBGamesForDate?gameDate=YYYYMMDD
  • Example: /getMLBGamesForDate?gameDate=20220410

2.5 Get MLB Betting Odds

  • Description: Grabs MLB betting/gambling lines and odds from some of the most popular online sportsbooks (fanduel, betrivers, betmgm, caesars, pointsbet, etc). Player prop bets can be added by including playerProps=true parameter. Prop bets are new as of 7/4/2023. Either gameDate or gameID is required.
  • Endpoint: /getMLBBettingOdds?gameDate=YYYYMMDD or /getMLBBettingOdds?gameID=YYYYMMDD_AWAY@HOME&playerProps=true
  • Example:
    • For a specific date: /getMLBBettingOdds?gameDate=20230410
    • For a specific game: /getMLBBettingOdds?gameID=20230410_HOU@PIT

2.6 Get Box Score - Live - Real Time

  • Description: Retrieves the entire box score for a game either in progress or already completed. The stats retrieved here are what are normally shown in box scores or used in fantasy games. The call needs to be in the format /getMLBBoxScore?gameID=YYYYMMDD_AWAY@HOME. Fantasy points can be calculated for each player with fantasyPoints=true, and custom scoring can be enabled.
  • Endpoint: /getMLBBoxScore?gameID=YYYYMMDD_AWAY@HOME&fantasyPoints=true
  • Example: /getMLBBoxScore?gameID=20220409_CHW@DET&fantasyPoints=true

2.7 Get General Game Information

  • Description: Returns very basic information about each game such as the time the game starts, the game ID and links for mlb.com and espn.com, and the game status. All game start times are in Eastern time zone.
  • Endpoint: /getMLBGameInfo?gameID=YYYYMMDD_AWAY@HOME
  • Example: /getMLBGameInfo?gameID=20220409_CHW@DET

2.8 Get Line Score - Real Time

  • Description: Provides the basic "line score" for a game, whether completed earlier this season, or currently happening now, in real time. A baseball line score consists of the basic R/H/E, plus the scores by inning and any pitching scoring decisions.
  • Endpoint: /getMLBLineScore?gameID=YYYYMMDD_AWAY@HOME
  • Example: `/getMLBLineScore?gameID=2022040
XPack MCP
{
  "mcpServers": {
    "tank01-mlb-live-in-game-real-time-statistics": {
      "type": "sse",
      "autoApprove":"all",
      "url": "https://mcp.xpack.ai/v1/mcp/tank01-mlb-live-in-game-real-time-statistics?authkey={Your-XPack-Auth-Key}"
    }
  }
}
© 2025 XPack. All rights reserved.