MLB v5

Frequently Asked Questions
Note: 2012 MLB data is not complete and should be used for development purposes only.
API API Version Data Entry Workflow
Major League Baseball v5 Data Entry Workflow
Note: Authentication is required for all API calls.
## MLB API Map To best utilize the MLB API, you will need several parameters to create your API calls. The map below illustrates how you can obtain the parameters you need. >

Examples:

>To find how many home runs a team has hit when playing at home: >
  1. Call the League or Season Schedule and find the Team Id
  2. Call the Seasonal Splits using the Team Id
  3. Find the Home Game statistics, Hitting element, with the Home Run attribute
>The home teams number of home runs is displayed. >
    >To find the away teams starting pitcher for a game: >
    1. Call the league or season schedule and find id for the game you want
    2. Call the Game Boxscore using the Game ID
    3. Find the Away Team Starting Pitcher element with the First and Last Name attributes
    >The starting pitcher's name is displayed. The primary feeds require only a date or season to call the endpoints. Those feeds provide Game, Team, or Player Ids which can be used to generate the game, team, and player feeds. All of the other feeds require no variables. ## Coverage Levels We provide two different levels of detail to ensure maximum coverage. We combine coverage levels with the correct feeds to ensure you are getting the most comprehensive data offering in the most efficient manner possible. Boxscore – We provide runs each inning, as well as the total runs, hits, and errors, in a timely manner, as the game progresses. Boxscore coverage is available for any MLB team versus MLB team spring training game not covered via our full coverage offering. Full – We provide live play-by-play coverage for the entire game. We provide updated live events as well as team and player level data in near real time. Full coverage is available for all regular and post season games as well as those spring training games available live via a reliable broadcast. ## Daily Boxscore Inning-by-inning scoring breakdown, top-level runs, hits and errors by team, as well as details on run-scoring events for all games on a given MLB defined day.
    Note: A Major League Baseball day begins at 4am ET and ends at 3:59:59am ET the following day.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Broadcast Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Scheduled Start
    Scheduled TBD Flag
    Status
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    Boxscore Data Points: Attendance
    Away Team Abbreviation
    Away Team Current Pitcher Earned Run Average
    Away Team Current Pitcher First Name
    Away Team Current Pitcher Id
    Away Team Current Pitcher Jersey Number
    Away Team Current Pitcher Last Name
    Away Team Current Pitcher Losses
    Away Team Current Pitcher Preferred Name
    Away Team Current Pitcher Wins
    Away Team Errors
    Away Team Hits
    Away Team Id
    Away Team Market
    Away Team Name
    Away Team Probable Pitcher Earned Run Average
    Away Team Probable Pitcher First Name
    Away Team Probable Pitcher Id
    Away Team Probable Pitcher Jersey Number
    Away Team Probable Pitcher Last Name
    Away Team Probable Pitcher Losses
    Away Team Probable Pitcher Preferred Name
    Away Team Probable Pitcher Wins
    Away Team Runs (Game)
    Away Team Runs (Inning)
    Away Team Starting Pitcher Earned Run Average
    Away Team Starting Pitcher First Name
    Away Team Starting Pitcher Id
    Away Team Starting Pitcher Jersey Number
    Away Team Starting Pitcher Last Name
    Away Team Starting Pitcher Losses
    Away Team Starting Pitcher Preferred Name
    Away Team Starting Pitcher Wins
    Count Balls
    Count Half Inning
    Count Half Over Flag
    Count Inning
    Count Outs
    Count Strikes
    Current Baserunners Ending Base
    Current Baserunners First Name
    Current Baserunners Id
    Current Baserunners Jersey Number
    Current Baserunners Last Name
    Current Baserunners Out Flag
    Current Baserunners Outcome
    Current Baserunners Preferred Name
    Current Baserunners Starting base
    Current Half Inning
    Current Hitter At Bat Over Flag
    Current Hitter First Name
    Current Hitter Id
    Current Hitter Jersey Number
    Current Hitter Last Name
    Current Hitter Outcome
    Current Hitter Preferred Name
    Current Inning
    Current Pitcher First Name
    Current Pitcher Id
    Current Pitcher Jersey Number
    Current Pitcher Last Name
    Current Pitcher Last Pitch Speed
    Current Pitcher Last Pitch Type
    Current Pitcher Last Pitch Zone
    Current Pitcher Preferred Name
    Duration
    Final Half Inning
    Final Inning
    Home Team Abbreviation
    Home Team Current Pitcher Earned Run Average
    Home Team Current Pitcher First Name
    Home Team Current Pitcher Id
    Home Team Current Pitcher Jersey Number
    Home Team Current Pitcher Last Name
    Home Team Current Pitcher Losses
    Home Team Current Pitcher Preferred Name
    Home Team Current Pitcher Wins
    Home Team Errors
    Home Team Hits
    Home Team Id
    Home Team Market
    Home Team Name
    Home Team Probable Pitcher Earned Run Average
    Home Team Probable Pitcher First Name
    Home Team Probable Pitcher Id
    Home Team Probable Pitcher Jersey Number
    Home Team Probable Pitcher Last Name
    Home Team Probable Pitcher Losses
    Home Team Probable Pitcher Preferred Name
    Home Team Probable Pitcher Wins
    Home Team Runs (Game)
    Home Team Runs (Inning)
    Home Team Starting Pitcher Earned Run Average
    Home Team Starting Pitcher First Name
    Home Team Starting Pitcher Id
    Home Team Starting Pitcher Jersey Number
    Home Team Starting Pitcher Last Name
    Home Team Starting Pitcher Losses
    Home Team Starting Pitcher Preferred Name
    Home Team Starting Pitcher Wins
    Pitching Outcome Player First Name
    Pitching Outcome Player Id
    Pitching Outcome Player Jersey Number
    Pitching Outcome Player Last Name
    Pitching Outcome Player Position
    Pitching Outcome Player Preferred Name
    Pitching Outcome Player Primary Position
    Pitching Outcome Player Status
    Pitching Record Current Blown Saves
    Pitching Record Current Holds
    Pitching Record Current Losses
    Pitching Record Current Saves
    Pitching Record Current Wins
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Runs
    Scoring Event Type
    Scoring Hitter Id
    Scoring Hitter Outcome
    Scoring Inning
    Scoring Inning Half
    Scoring Pitcher Id
    Scoring Player First Name
    Scoring Player Jersey Number
    Scoring Player Last Name
    Scoring Player Preferred Name
    Scoring Run Id
    Scoring Runner Id
    Scoring Starting Base
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/games/2014/06/15/boxscore.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/games/2014/06/15/boxscore.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/games/2014/06/15/boxscore.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the boxscore information for a specific day. https://api.sportradar.us/mlb-`{access_level}{version}`/games/`{year}`/`{month}`/`{day}`/boxscore.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day of month in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Daily Boxscore, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/daily-games.xsd?api_key=`{your_api_key}` Return to API map ## Daily Change Log Information on any changes made to teams, players, and game statistics.
    Note: A Major League Baseball day begins at 4am ET and ends at 3:59:59am ET the following day.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Data Points: Id Title
    League Data Points: MLB Alias
    MLB Id
    MLB Name
    Season Id
    Team Data Points: Abbreviation
    Id
    Market Name
    Player Data Points: Full Name Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/2014/06/15/changes.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/2014/06/15/changes.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/2014/06/15/changes.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Daily Change Log. https://api.sportradar.us/mlb-`{access_level}{version}`/league/`{year}`/`{month}`/`{day}`/changes.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day of month in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Daily Change Log, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/changelog-v2.0.xsd?api_key=`{your_api_key}` Return to API map ## Daily Schedule Date, time, and location for all games on a defined Major League Baseball day.
    Note: A Major League Baseball day begins at 4am ET and ends at 3:59:59am ET the following day.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Boxscore Data Points: Attendance
    Away Team Abbreviation
    Away Team Id
    Away Team Market
    Away Team Name
    Duration
    Home Team Abbreviation
    Home Team Id
    Home Team Market
    Home Team Name
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Broadcast Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Original Start Time
    Reason for Reschedule
    Scheduled Start
    Scheduled TBD Flag
    Status
    League Data Points: MLB Alias MLB Id MLB Name
    Series Data Points: Game Number Round
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/games/2014/06/15/schedule.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/games/2014/06/15/schedule.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/games/2014/06/15/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. To access the Daily Schedule, replace the parameters in the following URL: https://api.sportradar.us/mlb-`{access_level}{version}`/games/`{year}`/`{month}`/`{day}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day of month in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Daily Schedule, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/venues-v1.0.xsd?api_key=`{your_api_key}` Return to API map ## Daily Summary Team lineups as well as team and player statistics for all games on a defined Major League Baseball day.
    Note: A Major League Baseball day begins at 4am ET and ends at 3:59:59am ET the following day.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Boxscore Data Points: Attendance
    Away Team Abbreviation
    Away Team Current Pitcher Earned Run Average
    Away Team Current Pitcher First Name
    Away Team Current Pitcher Id
    Away Team Current Pitcher Jersey Number
    Away Team Current Pitcher Last Name
    Away Team Current Pitcher Losses
    Away Team Current Pitcher Preferred Name
    Away Team Current Pitcher Wins
    Away Team Errors
    Away Team Hits
    Away Team Id
    Away Team Market
    Away Team Name
    Away Team Probable Pitcher Earned Run Average
    Away Team Probable Pitcher First Name
    Away Team Probable Pitcher Id
    Away Team Probable Pitcher Jersey Number
    Away Team Probable Pitcher Last Name
    Away Team Probable Pitcher Losses
    Away Team Probable Pitcher Preferred Name
    Away Team Probable Pitcher Wins
    Away Team Runs (Game)
    Away Team Runs (Inning)
    Away Team Starting Pitcher Earned Run Average
    Away Team Starting Pitcher First Name
    Away Team Starting Pitcher Id
    Away Team Starting Pitcher Jersey Number
    Away Team Starting Pitcher Last Name
    Away Team Starting Pitcher Losses
    Away Team Starting Pitcher Preferred Name
    Away Team Starting Pitcher Wins
    Count Balls
    Count Half Inning
    Count Half Over Flag
    Count Inning
    Count Outs
    Count Strikes
    Current Baserunners Ending Base
    Current Baserunners First Name
    Current Baserunners Id
    Current Baserunners Jersey Number
    Current Baserunners Last Name
    Current Baserunners Out Flag
    Current Baserunners Outcome
    Current Baserunners Preferred Name
    Current Baserunners Starting Base
    Current Half Inning
    Current Hitter At Bat Over Flag
    Current Hitter First Name
    Current Hitter Id
    Current Hitter Jersey Number
    Current Hitter Last Name
    Current Hitter Outcome
    Current Hitter Preferred Name
    Current Inning
    Current Pitcher First Name
    Current Pitcher Id
    Current Pitcher Jersey Number
    Current Pitcher Last Name
    Current Pitcher Last Pitch Speed
    Current Pitcher Last Pitch Type
    Current Pitcher Last Pitch Zone
    Current Pitcher Preferred Name
    Duration
    Final Half Inning
    Final Inning
    Home Team Abbreviation
    Home Team Current Pitcher Earned Run Average
    Home Team Current Pitcher First Name
    Home Team Current Pitcher Id
    Home Team Current Pitcher Jersey Number
    Home Team Current Pitcher Last Name
    Home Team Current Pitcher Losses
    Home Team Current Pitcher Preferred Name
    Home Team Current Pitcher Wins
    Home Team Errors
    Home Team Hits
    Home Team Id
    Home Team Market
    Home Team Name
    Home Team Probable Pitcher Earned Run Average
    Home Team Probable Pitcher First Name
    Home Team Probable Pitcher Id
    Home Team Probable Pitcher Jersey Number
    Home Team Probable Pitcher Last Name
    Home Team Probable Pitcher Losses
    Home Team Probable Pitcher Preferred Name
    Home Team Probable Pitcher Wins
    Home Team Runs (Game)
    Home Team Runs (Inning)
    Home Team Starting Pitcher Earned Run Average
    Home Team Starting Pitcher First Name
    Home Team Starting Pitcher Id
    Home Team Starting Pitcher Jersey Number
    Home Team Starting Pitcher Last Name
    Home Team Starting Pitcher Losses
    Home Team Starting Pitcher Preferred Name
    Home Team Starting Pitcher Wins
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Runs
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Broadcast Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Scheduled Start
    Scheduled TBD Flag
    Status
    Game Official Data Points: Assignment
    Experience
    First Name
    Full Name
    Id
    Last Name
    Lineup Data Points: Batting Order Position
    Fielding Position
    Inning Half Player Enters
    Inning Player Enters
    Player Id
    Sequence
    Player Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Player Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Bases
    Player Fielding Data Points: Assists
    Complete Games
    Double Plays
    Errors
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Passed Balls
    Putouts
    Range Factor
    Total Chances
    Triple Plays
    Wild Pitches While Catching
    Player Hitting Data Points: At Bats
    At Bats Per Homerun
    At Bats Per Strikeout
    At Bats With RISP
    Balls
    Balls In Play
    Batting Average
    Batting Average On Balls In Play
    Complete Games
    Dirt Balls Faced
    Doubles
    Earned Runs Scored
    Extra Base Hits
    Fielders Choice
    Fly Ball
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Grounded Into Double Plays
    Hit By Pitch
    Hits
    Hits With RISP
    Home Runs
    Intentional Balls Taken
    Intentional Walks
    Isolated Power
    Line Drive
    Line Out
    Line Out In Double Play
    OB Perc + Slug Perc
    On Base Percentage
    Pitches Faced
    Plate Appearances
    Pop Up
    Pop Outs
    Reached On Error
    Runners Left On Base
    Runners Left On Base In Scoring Position With 2 Outs
    Runs Batted In
    Sacrifice Flys
    Sacrifice Hits
    Secondary Average
    Singles
    Slugging Percentage
    Strikeouts Looking
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Runners Left On Base
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Unearned Runs Scored
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Hold
    Home Runs Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Loss
    Opponents Batting Average
    Opponents Runners Left On Base
    Pitch Count
    Pop Outs
    Quality Start
    Reached On Error
    Runners Caught Stealing
    Sacrifice Flys
    Sacrifice Hits
    Save Opportunities
    Saves
    Shut Out
    Singles Allowed
    Stolen Bases Allowed
    Strikeouts Looking
    Strikeouts Per 9 Innings
    Strikeouts Per Walk
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Total Bases Allowed
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Win
    Series Data Points: Game Number Round
    Team Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Base
    Team Fielding Data Points: Assists
    Double Plays
    Errors
    Fielding Percentage
    Passed Balls
    Putouts
    Total Chances
    Triple Plays
    Wild Pitches While Catching
    Team Hitting Data Points: At Bats
    At Bats Per Homerun
    At Bats Per Strikeout
    At Bats With RISP
    Balls
    Balls In Play
    Batting Average
    Batting Average On Balls In Play
    Dirt Balls Faced
    Doubles
    Earned Runs Scored
    Extra Base Hits
    Fielders Choice
    Fly Ball
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Ground Ball
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Grounded Into Double Plays
    Hit By Pitch
    Hits
    Hits With RISP
    Home Runs
    Intentional Balls Taken
    Intentional Walks
    Isolated Power
    Line Drive
    Line Out
    Line Out In Double Play
    OB Perc + Slug Perc
    On Base Percentage
    Pitches Faced
    Plate Appearances
    Pop Outs
    Pop Up
    Reached On Error
    Runners Left On Base
    Runners Left On Base In Scoring Position With 2 Outs
    Runs Batted In
    Sacrifice Flys
    Sacrifice Hits
    Secondary Average
    Singles
    Slugging Percentage
    Strikeouts Looking
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Runners Left On Base
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Unearned Runs Scored
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Holds
    Home Runs Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents Batting Average
    Opponents Runners Left On Base
    Pitch Count
    Pop Outs
    Quality Starts
    Reached On Error
    Runners Caught Stealing
    Sacrifice Flys
    Sacrifice Hits
    Save Opportunities
    Saves
    Shut Outs
    Singles Allowed
    Stolen Bases Allowed
    Strikeouts Looking
    Strikeouts Per 9 Innings
    Strikeouts Per Walk
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Shutouts
    Total Bases Allowed
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Wins
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/games/2014/06/15/summary.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/games/2014/06/15/summary.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/games/2014/06/15/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Daily Summary information. https://api.sportradar.us/mlb-`{access_level}{version}`/games/`{year}`/`{month}`/`{day}`/summary.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day of month in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Daily Summary, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/daily-games.xsd?api_key=`{your_api_key}` Return to API map ## Daily Transactions Information about all transactions taking place on the defined Major League Baseball day.
    Note: A Major League Baseball day begins at 4am ET and ends at 3:59:59am ET the following day.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: Alias Id Name
    Player Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Team Data Points: Abbreviation
    Id
    Market Name
    Transaction Data Points: Description
    Effective Date
    Id Updated Date
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/2014/06/15/transactions.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/2014/06/15/transactions.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/2014/06/15/transactions.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Daily transactions. https://api.sportradar.us/mlb-`{access_level}{version}`/league/`{year}`/`{month}`/`{day}`/transactions.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day of month in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Daily Summary, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/transactions.xsd?api_key=`{your_api_key}` Return to API map ## Game Boxscore Inning-by-inning scoring breakdown, top-level runs, hits and errors by team, as well as details on run-scoring events for a given game.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Boxscore Data Points: Attendance
    Away Team Abbreviation
    Away Team Current Pitcher Earned Run Average
    Away Team Current Pitcher First Name
    Away Team Current Pitcher Id
    Away Team Current Pitcher Jersey Number
    Away Team Current Pitcher Last Name
    Away Team Current Pitcher Losses
    Away Team Current Pitcher Preferred Name
    Away Team Current Pitcher Wins
    Away Team Errors
    Away Team Hits
    Away Team Id
    Away Team Market
    Away Team Name
    Away Team Probable Pitcher Earned Run Average
    Away Team Probable Pitcher First Name
    Away Team Probable Pitcher Id
    Away Team Probable Pitcher Jersey Number
    Away Team Probable Pitcher Last Name
    Away Team Probable Pitcher Losses
    Away Team Probable Pitcher Preferred Name
    Away Team Probable Pitcher Wins
    Away Team Runs (Game)
    Away Team Runs (Inning)
    Away Team Starting Pitcher Earned Run Average
    Away Team Starting Pitcher First Name
    Away Team Starting Pitcher Id
    Away Team Starting Pitcher Jersey Number
    Away Team Starting Pitcher Last Name
    Away Team Starting Pitcher Losses
    Away Team Starting Pitcher Preferred Name
    Away Team Starting Pitcher Wins
    Count Balls
    Count Half Inning
    Count Half Over Flag
    Count Inning
    Count Outs
    Count Strikes
    Current Baserunners Ending Base
    Current Baserunners First Name
    Current Baserunners Id
    Current Baserunners Jersey Number
    Current Baserunners Last Name
    Current Baserunners Out Flag
    Current Baserunners Outcome
    Current Baserunners Preferred Name
    Current Baserunners Starting base
    Current Half Inning
    Current Hitter At Bat Over Flag
    Current Hitter First Name
    Current Hitter Id
    Current Hitter Jersey Number
    Current Hitter Last Name
    Current Hitter Outcome
    Current Hitter Preferred Name
    Current Inning
    Current Pitcher First Name
    Current Pitcher Id
    Current Pitcher Jersey Number
    Current Pitcher Last Name
    Current Pitcher Last Pitch Speed
    Current Pitcher Last Pitch Type
    Current Pitcher Last Pitch Zone
    Current Pitcher Preferred Name
    Duration
    Final Half Inning
    Final Inning
    Home Team Abbreviation
    Home Team Current Pitcher Earned Run Average
    Home Team Current Pitcher First Name
    Home Team Current Pitcher Id
    Home Team Current Pitcher Jersey Number
    Home Team Current Pitcher Last Name
    Home Team Current Pitcher Losses
    Home Team Current Pitcher Preferred Name
    Home Team Current Pitcher Wins
    Home Team Errors
    Home Team Hits
    Home Team Id
    Home Team Market
    Home Team Name
    Home Team Probable Pitcher Earned Run Average
    Home Team Probable Pitcher First Name
    Home Team Probable Pitcher Id
    Home Team Probable Pitcher Jersey Number
    Home Team Probable Pitcher Last Name
    Home Team Probable Pitcher Losses
    Home Team Probable Pitcher Preferred Name
    Home Team Probable Pitcher Wins
    Home Team Runs (Game)
    Home Team Runs (Inning)
    Home Team Starting Pitcher Earned Run Average
    Home Team Starting Pitcher First Name
    Home Team Starting Pitcher Id
    Home Team Starting Pitcher Jersey Number
    Home Team Starting Pitcher Last Name
    Home Team Starting Pitcher Losses
    Home Team Starting Pitcher Preferred Name
    Home Team Starting Pitcher Wins
    Pitching Outcome Player First Name
    Pitching Outcome Player Id
    Pitching Outcome Player Jersey Number
    Pitching Outcome Player Last Name
    Pitching Outcome Player Position
    Pitching Outcome Player Preferred Name
    Pitching Outcome Player Primary Position
    Pitching Outcome Player Status
    Pitching Record Current Blown Saves
    Pitching Record Current Holds
    Pitching Record Current Losses
    Pitching Record Current Saves
    Pitching Record Current Wins
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Runs
    Scoring Event Type
    Scoring Hitter Id
    Scoring Hitter Outcome
    Scoring Inning
    Scoring Inning Half
    Scoring Pitcher Id
    Scoring Player First Name
    Scoring Player Jersey Number
    Scoring Player Last Name
    Scoring Player Preferred Name
    Scoring Run Id
    Scoring Runner Id
    Scoring Starting Base
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Network Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Scheduled Start
    Scheduled TBD Flag
    Status
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/boxscore.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/boxscore.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/boxscore.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Game Boxscore information for a specific game. https://api.sportradar.us/mlb-`{access_level}{version}`/games/`{game_id}`/boxscore.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `game_id` | ID for a given game. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Game Boxscore, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/game.xsd?api_key=`{your_api_key}` Return to API map ## Game Summary Team lineups as well as team and player statistics for a given game.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Boxscore Data Points: Attendance
    Away Team Abbreviation
    Away Team Current Pitcher Earned Run Average
    Away Team Current Pitcher First Name
    Away Team Current Pitcher Id
    Away Team Current Pitcher Jersey Number
    Away Team Current Pitcher Last Name
    Away Team Current Pitcher Losses
    Away Team Current Pitcher Preferred Name
    Away Team Current Pitcher Wins
    Away Team Errors
    Away Team Hits
    Away Team Id
    Away Team Market
    Away Team Name
    Away Team Probable Pitcher Earned Run Average
    Away Team Probable Pitcher First Name
    Away Team Probable Pitcher Id
    Away Team Probable Pitcher Jersey Number
    Away Team Probable Pitcher Last Name
    Away Team Probable Pitcher Losses
    Away Team Probable Pitcher Preferred Name
    Away Team Probable Pitcher Wins
    Away Team Runs (Game)
    Away Team Runs (Inning)
    Away Team Starting Pitcher Earned Run Average
    Away Team Starting Pitcher First Name
    Away Team Starting Pitcher Id
    Away Team Starting Pitcher Jersey Number
    Away Team Starting Pitcher Last Name
    Away Team Starting Pitcher Losses
    Away Team Starting Pitcher Preferred Name
    Away Team Starting Pitcher Wins
    Count Balls
    Count Half Inning
    Count Half Over Flag
    Count Inning
    Count Outs
    Count Strikes
    Current Baserunners Ending Base
    Current Baserunners First Name
    Current Baserunners Id
    Current Baserunners Jersey Number
    Current Baserunners Last Name
    Current Baserunners Out Flag
    Current Baserunners Outcome
    Current Baserunners Preferred Name
    Current Baserunners Starting Base
    Current Half Inning
    Current Hitter At Bat Over Flag
    Current Hitter First Name
    Current Hitter Id
    Current Hitter Jersey Number
    Current Hitter Last Name
    Current Hitter Outcome
    Current Hitter Preferred Name
    Current Inning
    Current Pitcher First Name
    Current Pitcher Id
    Current Pitcher Jersey Number
    Current Pitcher Last Name
    Current Pitcher Last Pitch Speed
    Current Pitcher Last Pitch Type
    Current Pitcher Last Pitch Zone
    Current Pitcher Preferred Name
    Duration
    Final Half Inning
    Final Inning
    Home Team Abbreviation
    Home Team Current Pitcher Earned Run Average
    Home Team Current Pitcher First Name
    Home Team Current Pitcher Id
    Home Team Current Pitcher Jersey Number
    Home Team Current Pitcher Last Name
    Home Team Current Pitcher Losses
    Home Team Current Pitcher Preferred Name
    Home Team Current Pitcher Wins
    Home Team Errors
    Home Team Hits
    Home Team Id
    Home Team Market
    Home Team Name
    Home Team Probable Pitcher Earned Run Average
    Home Team Probable Pitcher First Name
    Home Team Probable Pitcher Id
    Home Team Probable Pitcher Jersey Number
    Home Team Probable Pitcher Last Name
    Home Team Probable Pitcher Losses
    Home Team Probable Pitcher Preferred Name
    Home Team Probable Pitcher Wins
    Home Team Runs (Game)
    Home Team Runs (Inning)
    Home Team Starting Pitcher Earned Run Average
    Home Team Starting Pitcher First Name
    Home Team Starting Pitcher Id
    Home Team Starting Pitcher Jersey Number
    Home Team Starting Pitcher Last Name
    Home Team Starting Pitcher Losses
    Home Team Starting Pitcher Preferred Name
    Home Team Starting Pitcher Wins
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Runs
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Network Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Scheduled Start
    Scheduled TBD Flag
    Status
    Game Official Data Points: Assignment
    Experience
    First Name
    Full Name
    Id
    Last Name
    Lineup Data Points: Batting Order Position
    Fielding Position
    Inning Half Player Enters
    Inning Player Enters
    Player Id
    Sequence
    Player Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Player Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Bases
    Player Fielding Data Points: Assists
    Complete Games
    Double Plays
    Errors
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Passed Balls
    Putouts
    Range Factor
    Total Chances
    Triple Plays
    Wild Pitches While Catching
    Player Hitting Data Points: At Bats
    At Bats Per Homerun
    At Bats Per Strikeout
    At Bats With RISP
    Balls
    Balls In Play
    Batting Average
    Batting Average On Balls In Play
    Complete Games
    Dirt Balls Faced
    Doubles
    Earned Runs Scored
    Extra Base Hits
    Fielders Choice
    Fly Ball
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Grounded Into Double Plays
    Hit By Pitch
    Hits
    Hits With RISP
    Home Runs
    Intentional Balls Taken
    Intentional Walks
    Isolated Power
    Line Drive
    Line Out
    Line Out In Double Play
    OB Perc + Slug Perc
    On Base Percentage
    Pitches Faced
    Plate Appearances
    Pop Up
    Pop Outs
    Reached On Error
    Runners Left On Base
    Runners Left On Base In Scoring Position With 2 Outs
    Runs Batted In
    Sacrifice Flys
    Sacrifice Hits
    Secondary Average
    Singles
    Slugging Percentage
    Strikeouts Looking
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Runners Left On Base
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Unearned Runs Scored
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Hold
    Home Runs Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Loss
    Opponents Batting Average
    Opponents Runners Left On Base
    Pitch Count
    Pop Outs
    Quality Start
    Reached On Error
    Runners Caught Stealing
    Sacrifice Flys
    Sacrifice Hits
    Save Opportunities
    Saves
    Shut Out
    Singles Allowed
    Stolen bases Allowed
    Strikeouts Looking
    Strikeouts Per 9 Innings
    Strikeouts Per Walk
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Total Bases Allowed
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Win
    Series Data Points: Game Number Round
    Team Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Bases
    Team Fielding Data Points: Assists
    Double Plays
    Errors
    Fielding Percentage
    Passed Balls
    Putouts
    Total Changes
    Triple Plays
    Wild Pitches While Catching
    Team Hitting Data Points: At Bats
    At Bats Per Homerun
    At Bats Per Strikeout
    At Bats With RISP
    Balls
    Balls In Play
    Batting Average
    Batting Average On Balls In Play
    Dirt Balls Faced
    Doubles
    Earned Runs Scored
    Extra Base Hits
    Fielders Choice
    Fly Ball
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Ground Ball
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Grounded Into Double Plays
    Hit By Pitch
    Hits
    Hits With RISP
    Home Runs
    Intentional Balls Taken
    Intentional Walks
    Isolated Power
    Line Drive
    Line Out
    Line Out In Double Play
    OB Perc + Slug Perc
    On Base Percentage
    Pitches Faced
    Plate Appearances
    Pop Outs
    Pop Up
    Reached On Error
    Runners Left On Base
    Runners Left On Base In Scoring Position With 2 Outs
    Runs Batted In
    Sacrifice Flys
    Sacrifice Hits
    Secondary Average
    Singles
    Slugging Percentage
    Strikeouts Looking
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Runners Left On Base
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Unearned Runs Scored
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Holds
    Home Runs Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents Batting Average
    Opponents Runners Left On Base
    Pitch Count
    Pop Outs
    Quality Starts
    Reached On Error
    Runners Caught Stealing
    Sacrifice Flys
    Sacrifice Hits
    Save Opportunities
    Saves
    Shut Outs
    Singles Allowed
    Stolen Bases Allowed
    Strikeouts Looking
    Strikeouts Per 9 Innings
    Strikeouts Per Walk
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Shutouts
    Total Bases Allowed
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Wins
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/summary.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/summary.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Game Summary information for a specific game. https://api.sportradar.us/mlb-`{access_level}{version}`/games/`{game_id}`/summary.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `game_id` | ID for a given game. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Game Summary, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/game.xsd?api_key=`{your_api_key}` Return to API map ## Glossary Full text descriptions for pitch ids, player status ids, outcome ids, position ids, and game status ids. ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/glossary.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/glossary.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/glossary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Glossary. https://api.sportradar.us/mlb-`{access_level}{version}`/league/glossary.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Glossary, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/glossary.xsd?api_key=`{your_api_key}` Return to API map ## Injuries Information about all current injuries across the league.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Injuries Data Points: Description
    Id
    Start Date Status
    League Data Points: Alias Id Name
    Player Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Team Data Points: Abbreviation
    Id
    Market Name
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/injuries.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/injuries.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/injuries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves player Injuries. https://api.sportradar.us/mlb-`{access_level}{version}`/league/injuries.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Injuries, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/injuries.xsd?api_key=`{your_api_key}` Return to API map ## League Depth Chart Current depth chart positions for all positions, on all teams in the league.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: MLB Alias MLB Id MLB Name
    Player Data Points: Depth Chart Position
    First Name
    Id
    Jersey Number
    Last Name
    Position
    Position Description
    Position Name
    Preferred Name
    Primary Position
    Status
    Team Data Points: Abbreviation
    Id
    Market Name
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/depth_charts.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/depth_charts.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/depth_charts.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the League Depth Charts. https://api.sportradar.us/mlb-`{access_level}{version}`/league/depth_charts.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the League Depth Charts, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/depth_charts.xsd?api_key=`{your_api_key}` Return to API map ## League Hierarchy Name, market, league, division, and venue for each team.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    MLB Alias
    MLB Id
    MLB Name
    Team Data Points: Abbreviation
    Id
    Market Name
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/hierarchy.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/hierarchy.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/hierarchy.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the League Hierarchy. https://api.sportradar.us/mlb-`{access_level}{version}`/league/hierarchy.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for League Hierarchy, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/hierarchy.xsd?api_key=`{your_api_key}` Return to API map ## League Leaders AL, NL, and MLB leader information for various hitting and pitching statistics.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: League Alias
    League Id
    League Name
    MLB Alias
    MLB Id
    MLB Name
    Season Id
    Season Type
    Season Year
    League Leaders Data Points: Player Baserunning Stolen Bases
    Player Hitting Batting Average
    Player Hits
    Player Hitting Home Runs
    Player Hitting Runs Batted In
    Player Pitching Complete Games
    Player Pitching Earned Run Average
    Player Pitching Saves
    Player Pitching Total Strikeouts
    Player Pitching Wins
    Team Baserunning Stolen Bases
    Team Hitting Batting Average
    Team Hits
    Team Hitting Home Runs
    Team Hitting Runs Batted In
    Team Pitching Complete Games
    Team Pitching Earned Run Average
    Team Pitching Saves
    Team Pitching Total Strikeouts
    Team Pitching Wins
    Player Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Team Data Points: Abbreviation
    Id
    Market
    Name
    Rank
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/seasontd/2014/REG/leaders/statistics.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/seasontd/2014/REG/leaders/statistics.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/seasontd/2014/REG/leaders/statistics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the League Leaders. https://api.sportradar.us/mlb-`{access_level}{version}`/seasontd/`{season_year}`/`{mlb_season}`/leaders/statistics.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `season_year` | Year in 4 digit format (YYYY). | | `mlb_season` | Regular Season (REG). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for League Leaders, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/leaders.xsd?api_key=`{your_api_key}` Return to API map ## League Schedule Date, time, and location for every game.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: MLB Alias
    MLB Id
    MLB Name
    Season Id
    Season Type
    Season Year
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Broadcast Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Original Start Time
    Reason for Reschedule
    Scheduled Start
    Scheduled TBD Flag
    Status
    Series Data Points: Game Number Round
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/games/2014/REG/schedule.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/games/2014/REG/schedule.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/games/2014/REG/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the League Schedule. https://api.sportradar.us/mlb-`{access_level}{version}`/games/`{season_year}`/`{mlb_season}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `season_year` | Year in 4 digit format (YYYY). | | `mlb_season` | Preseason (PRE), Regular Season (REG), or Postseason (PST). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the League Schedule, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/schedule.xsd?api_key=`{your_api_key}` Return to API map ## Play-By-Play Detailed real-time information on every pitch and game event.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Boxscore Data Points: Attendance
    Away Team Abbreviation
    Away Team Errors
    Away Team Hits
    Away Team Id
    Away Team Market
    Away Team Name
    Away Team Runs (Game)
    Away Team Runs (Inning)
    Duration
    Home Team Abbreviation
    Home Team Errors
    Home Team Hits
    Home Team Id
    Home Team Market
    Home Team Name
    Home Team Runs (Game)
    Home Team Runs (Inning)
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Network Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Scheduled Start
    Scheduled TBD Flag
    Status
    Lineup Data Points: Batting Order Position
    Fielding Position
    Lineup Id
    Player First Name
    Player Id
    Player Jersey Number
    Player Last Name
    Player Preferred Name
    Team Id
    Play-By-Play Data Points: At Bat Id
    At Bat Play Description
    At Bat Player Id
    Base Runner Ending Base
    Base Runner First Name
    Base Runner Jersey Number
    Base Runner Last Name
    Base Runner Out Flag
    Base Runner Outcome Id
    Base Runner Play Description
    Base Runner Player Id
    Base Runner Preferred First Name
    Base Runner Starting Base
    Count Balls
    Count Outs
    Count Pitch Count For Batter
    Count Strikes
    Fielding Assists Player First Name
    Fielding Assists Player Id
    Fielding Assists Player Jersey Number
    Fielding Assists Player Last Name
    Fielding Assists Player Preferred First Name
    Fielding Assists Sequence
    Fielding Putout Player First Name
    Fielding Putout Player Id
    Fielding Putout Player Jersey Number
    Fielding Putout Player Last Name
    Fielding Putout Player Preferred First Name
    Fielding Putout Sequence
    Hit Location
    Hit Type
    Hitter Hand
    Inning Half
    Inning Number
    Inning Sequence
    Insert Date/Time
    Pitch Count For Game
    Pitch Flag At Bat
    Pitch Flag At Bat Over
    Pitch Flag Bunt
    Pitch Flag Bunt Shown By Batter
    Pitch Flag Double Play
    Pitch Flag Passed Ball
    Pitch Flag Runner On Base
    Pitch Flag Statistical Hit
    Pitch Flag Triple Play
    Pitch Flag Wild Pitch
    Pitch Id
    Pitch Outcome Id
    Pitch Speed
    Pitch Type
    Pitch Zone
    Pitcher Hand
    Pitcher Id
    Under Review Flag
    Update Date/Time
    Warming Up Id
    Warming Up Player First Name
    Warming Up Player Id
    Warming Up Player Jersey Number
    Warming Up Player Last Name
    Warming Up Player Preferred Name
    Warming Up Team Id
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/pbp.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/pbp.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/pbp.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Play-By-Play for a game. https://api.sportradar.us/mlb-`{access_level}{version}`/games/`{game_id}`/pbp.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `game_id` | ID of a given game. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Play-By-Play, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/pbp.xsd?api_key=`{your_api_key}` Return to API map ## Player Profile Detailed player information including seasonal statistics and player splits.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: Season Id Season Type Season Year
    Player Data Points: Batting Hand
    Birth Date Birth Place (City)
    Birth Place (Country)
    Birth Place (State)
    College
    Date Of Pro Debut
    First Name
    Full Name
    Height
    High School
    Id
    Jersey Number
    Last Name
    Mlbam Id
    Position
    Preferred Name
    Primary Position
    Status
    Throwing Hand
    Weight
    Player Splits Baserunning Data Points: Away Games Caught Stealing
    Away Games Stolen Bases
    By Month Caught Stealing
    By Month Stolen Bases
    By Opponent Caught Stealing
    By Opponent Stolen Bases
    By Surface Caught Stealing
    By Surface Stolen Bases
    By Venue Caught Stealing
    By Venue Stolen Bases
    Day Games Caught Stealing
    Day Games Stolen Bases
    Home Games Caught Stealing
    Home Games Stolen Bases
    Night Games Caught Stealing
    Night Games Stolen Bases
    Vs. Lefties Caught Stealing
    Vs. Lefties Stolen Bases
    Vs. Righties Caught Stealing
    Vs. Righties Stolen Bases
    Player Splits Hitting Data Points: Away Games At Bats
    Away Games Batting Average
    Away Games Doubles
    Away Games Hit By Pitch
    Away Games Hits
    Away Games Home Runs
    Away Games Intentional Walks
    Away Games OB Perc + Slug Perc
    Away Games On Base Percentage
    Away Games Runs Batted In
    Away Games Singles
    Away Games Slugging Percentage
    Away Games Strikeouts
    Away Games Total Runs Scored
    Away Games Triples
    Away Games Walks
    By Month At Bats
    By Month Batting Average
    By Month Doubles
    By Month Hit By Pitch
    By Month Hits
    By Month Home Runs
    By Month Intentional Walks
    By Month OB Perc + Slug Perc
    By Month On Base Percentage
    By Month Runs Batted In
    By Month Singles
    By Month Slugging Percentage
    By Month Strikeouts
    By Month Total Runs Scored
    By Month Triples
    By Month Walks
    By Opponent At Bats
    By Opponent Batting Average
    By Opponent Doubles
    By Opponent Hit By Pitch
    By Opponent Hits
    By Opponent Home Runs
    By Opponent Intentional Walks
    By Opponent OB Perc + Slug Perc
    By Opponent On Base Percentage
    By Opponent Runs Batted In
    By Opponent Singles
    By Opponent Slugging Percentage
    By Opponent Strikeouts
    By Opponent Total Runs Scored
    By Opponent Triples
    By Opponent Walks
    By Surface At Bats
    By Surface Batting Average
    By Surface Doubles
    By Surface Hit By Pitch
    By Surface Hits
    By Surface Home Runs
    By Surface Intentional Walks
    By Surface OB Perc + Slug Perc
    By Surface On Base Percentage
    By Surface Runs Batted In
    By Surface Singles
    By Surface Slugging Percentage
    By Surface Strikeouts
    By Surface Total Runs Scored
    By Surface Triples
    By Surface Walks
    By Venue At Bats
    By Venue Batting Average
    By Venue Doubles
    By Venue Hit By Pitch
    By Venue Hits
    By Venue Home Runs
    By Venue Intentional Walks
    By Venue OB Perc + Slug Perc
    By Venue On Base Percentage
    By Venue Runs Batted In
    By Venue Singles
    By Venue Slugging Percentage
    By Venue Strikeouts
    By Venue Total Runs Scored
    By Venue Triples
    By Venue Walks
    Day Games At Bats
    Day Games Batting Average
    Day Games Doubles
    Day Games Hit By Pitch
    Day Games Hits
    Day Games Home Runs
    Day Games Intentional Walks
    Day Games OB Perc + Slug Perc
    Day Games On Base Percentage
    Day Games Runs Batted In
    Day Games Singles
    Day Games Slugging Percentage
    Day Games Strikeouts
    Day Games Total Runs Scored
    Day Games Triples
    Day Games Walks
    Home Games At Bats
    Home Games Batting Average
    Home Games Doubles
    Home Games Hit By Pitch
    Home Games Hits
    Home Games Home Runs
    Home Games Intentional Walks
    Home Games OB Perc + Slug Perc
    Home Games On Base Percentage
    Home Games Runs Batted In
    Home Games Singles
    Home Games Slugging Percentage
    Home Games Strikeouts
    Home Games Total Runs Scored
    Home Games Triples
    Home Games Walks
    Night Games At Bats
    Night Games Batting Average
    Night Games Doubles
    Night Games Hit By Pitch
    Night Games Hits
    Night Games Home Runs
    Night Games Intentional Walks
    Night Games OB Perc + Slug Perc
    Night Games On Base Percentage
    Night Games Runs Batted In
    Night Games Singles
    Night Games Slugging Percentage
    Night Games Strikeouts
    Night Games Total Runs Scored
    Night Games Triples
    Night Games Walks
    Vs. Lefties At Bats
    Vs. Lefties Batting Average
    Vs. Lefties Doubles
    Vs. Lefties Hit By Pitch
    Vs. Lefties Hits
    Vs. Lefties Home Runs
    Vs. Lefties Intentional Walks
    Vs. Lefties OB Perc + Slug Perc
    Vs. Lefties On Base Percentage
    Vs. Lefties Runs Batted In
    Vs. Lefties Singles
    Vs. Lefties Slugging Percentage
    Vs. Lefties Strikeouts
    Vs. Lefties Total Runs Scored
    Vs. Lefties Triples
    Vs. Lefties Walks
    Vs. Righties At Bats
    Vs. Righties Batting Average
    Vs. Righties Doubles
    Vs. Righties Hit By Pitch
    Vs. Righties Hits
    Vs. Righties Home Runs
    Vs. Righties Intentional Walks
    Vs. Righties OB Perc + Slug Perc
    Vs. Righties On Base Percentage
    Vs. Righties Runs Batted In
    Vs. Righties Singles
    Vs. Righties Slugging Percentage
    Vs. Righties Strikeouts
    Vs. Righties Total Runs Scored
    Vs. Righties Triples
    Vs. Righties Walks
    Player Splits Pitching Data Points: Away Games Complete Games
    Away Games Earned Run Average
    Away Games Earned Runs Allowed
    Away Games Games Played
    Away Games Games Started
    Away Games Hits Allowed
    Away Games Home Runs Allowed
    Away Games Innings Pitched (Complete & Partial)
    Away Games Innings Pitched (Total Outs)
    Away Games Intentional Walks
    Away Games Losses
    Away Games Opponents Batting Average
    Away Games Save Opportunities
    Away Games Saves
    Away Games Total Runs Allowed
    Away Games Total Strikeouts
    Away Games Walks
    Away Games Wins
    By Month Complete Games
    By Month Earned Run Average
    By Month Earned Runs Allowed
    By Month Games Played
    By Month Games Started
    By Month Hits Allowed
    By Month Home Runs Allowed
    By Month Innings Pitched (Complete & Partial)
    By Month Innings Pitched (Total Outs)
    By Month Intentional Walks
    By Month Losses
    By Month Opponents Batting Average
    By Month Save Opportunities
    By Month Saves
    By Month Total Runs Allowed
    By Month Total Strikeouts
    By Month Walks
    By Month Wins
    By Opponent Complete Games
    By Opponent Earned Run Average
    By Opponent Earned Runs Allowed
    By Opponent Games Played
    By Opponent Games Started
    By Opponent Hits Allowed
    By Opponent Home Runs Allowed
    By Opponent Innings Pitched (Complete & Partial)
    By Opponent Innings Pitched (Total Outs)
    By Opponent Intentional Walks
    By Opponent Losses
    By Opponent Opponents Batting Average
    By Opponent Save Opportunities
    By Opponent Saves
    By Opponent Total Runs Allowed
    By Opponent Total Strikeouts
    By Opponent Walks
    By Opponent Wins
    By Surface Complete Games
    By Surface Earned Run Average
    By Surface Earned Runs Allowed
    By Surface Games Played
    By Surface Games Started
    By Surface Hits Allowed
    By Surface Home Runs Allowed
    By Surface Innings Pitched (Complete & Partial)
    By Surface Innings Pitched (Total Outs)
    By Surface Intentional Walks
    By Surface Losses
    By Surface Opponents Batting Average
    By Surface Save Opportunities
    By Surface Saves
    By Surface Total Runs Allowed
    By Surface Total Strikeouts
    By Surface Walks
    By Surface Wins
    By Venue Complete Games
    By Venue Earned Run Average
    By Venue Earned Runs Allowed
    By Venue Games Played
    By Venue Games Started
    By Venue Hits Allowed
    By Venue Home Runs Allowed
    By Venue Innings Pitched (Complete & Partial)
    By Venue Innings Pitched (Total Outs)
    By Venue Intentional Walks
    By Venue Losses
    By Venue Opponents Batting Average
    By Venue Save Opportunities
    By Venue Saves
    By Venue Total Runs Allowed
    By Venue Total Strikeouts
    By Venue Walks
    By Venue Wins
    Day Games Complete Games
    Day Games Earned Run Average
    Day Games Earned Runs Allowed
    Day Games Games Played
    Day Games Games Started
    Day Games Hits Allowed
    Day Games Home Runs Allowed
    Day Games Innings Pitched (Complete & Partial)
    Day Games Innings Pitched (Total Outs)
    Day Games Intentional Walks
    Day Games Losses
    Day Games Opponents Batting Average
    Day Games Save Opportunities
    Day Games Saves
    Day Games Total Runs Allowed
    Day Games Total Strikeouts
    Day Games Walks
    Day Games Wins
    Home Games Complete Games
    Home Games Earned Run Average
    Home Games Earned Runs Allowed
    Home Games Games Played
    Home Games Games Started
    Home Games Hits Allowed
    Home Games Home Runs Allowed
    Home Games Innings Pitched (Complete & Partial)
    Home Games Innings Pitched (Total Outs)
    Home Games Intentional Walks
    Home Games Losses
    Home Games Opponents Batting Average
    Home Games Save Opportunities
    Home Games Saves
    Home Games Total Runs Allowed
    Home Games Total Strikeouts
    Home Games Walks
    Home Games Wins
    Night Games Complete Games
    Night Games Earned Run Average
    Night Games Earned Runs Allowed
    Night Games Games Played
    Night Games Games Started
    Night Games Hits Allowed
    Night Games Home Runs Allowed
    Night Games Innings Pitched (Complete & Partial)
    Night Games Innings Pitched (Total Outs)
    Night Games Intentional Walks
    Night Games Losses
    Night Games Opponents Batting Average
    Night Games Save Opportunities
    Night Games Saves
    Night Games Total Runs Allowed
    Night Games Total Strikeouts
    Night Games Walks
    Night Games Wins
    Vs. Lefties Batters Faced
    Vs. Lefties Doubles Allowed
    Vs. Lefties Hit Batters
    Vs. Lefties Hits Allowed
    Vs. Lefties Home Runs Allowed
    Vs. Lefties Intentional Walks
    Vs. Lefties On Base Pct & Slg Pct
    Vs. Lefties On Base Pct Allowed
    Vs. Lefties Opponents Batting Average
    Vs. Lefties Runners Caught Stealing
    Vs. Lefties Runs Batted In Allowed
    Vs. Lefties Singles Allowed
    Vs. Lefties Slugging Pct Allowed
    Vs. Lefties Stolen Bases Allowed
    Vs. Lefties Total Runs Allowed
    Vs. Lefties Total Strikeouts
    Vs. Lefties Triples Allowed
    Vs. Lefties Walks
    Vs. Righties Batters Faced
    Vs. Righties Doubles Allowed
    Vs. Righties Hit Batters
    Vs. Righties Hits Allowed
    Vs. Righties Home Runs Allowed
    Vs. Righties Intentional Walks
    Vs. Righties On Base Pct & Slg Pct
    Vs. Righties On Base Pct Allowed
    Vs. Righties Opponents Batting Average
    Vs. Righties Runners Caught Stealing
    Vs. Righties Runs Batted In Allowed
    Vs. Righties Singles Allowed
    Vs. Righties Slugging Pct Allowed
    Vs. Righties Stolen Bases Allowed
    Vs. Righties Total Runs Allowed
    Vs. Righties Total Strikeouts
    Vs. Righties Triples Allowed
    Vs. Righties Walks
    Vs. Switch Hitters Batters Faced
    Vs. Switch Hitters Doubles Allowed
    Vs. Switch Hitters Hit Batters
    Vs. Switch Hitters Hits Allowed
    Vs. Switch Hitters Home Runs Allowed
    Vs. Switch Hitters Intentional Walks
    Vs. Switch Hitters On Base Pct & Slg Pct
    Vs. Switch Hitters On Base Pct Allowed
    Vs. Switch Hitters Opponents Batting Average
    Vs. Switch Hitters Runners Caught Stealing
    Vs. Switch Hitters Runs Batted In Allowed
    Vs. Switch Hitters Singles Allowed
    Vs. Switch Hitters Slugging Pct Allowed
    Vs. Switch Hitters Stolen Bases Allowed
    Vs. Switch Hitters Total Runs Allowed
    Vs. Switch Hitters Total Strikeouts
    Vs. Switch Hitters Triples Allowed
    Vs. Switch Hitters Walks
    Player Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Bases
    Player Fielding Data Points: Assists
    Complete Games
    Double Plays
    Errors
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Passed Balls
    Putouts
    Range Factor
    Total Chances
    Triple Plays
    Wild Pitches While Catching
    Player Hitting Data Points: At Bats
    At Bats Per Homerun
    At Bats Per Strikeout
    At Bats With RISP
    Balls
    Balls In Play
    Batting Average
    Batting Average On Balls In Play
    Complete Games
    Dirt Balls Faced
    Doubles
    Earned Runs Scored
    Extra Base Hits
    Fielders Choice
    Fly Ball
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Grounded Into Double Plays
    Hit By Pitch
    Hits
    Hits With RISP
    Home Runs
    Intentional Balls Taken
    Intentional Walks
    Isolated Power
    Line Drive
    Line Out
    Line Out In Double Play
    OB Perc + Slug Perc
    On Base Percentage
    Pitches Faced
    Plate Appearances
    Pop Up
    Pop Outs
    Reached On Error
    Runners Left On Base
    Runners Left On Base In Scoring Position With 2 Outs
    Runs Batted In
    Sacrifice Flys
    Sacrifice Hits
    Secondary Average
    Singles
    Slugging Percentage
    Strikeouts Looking
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Runners Left On Base
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Unearned Runs Scored
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Hold
    Home Runs Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Loss
    Opponents Batting Average
    Opponents Runners Left On Base
    Pitch Count
    Pop Outs
    Quality Start
    Reached On Error
    Runners Caught Stealing
    Sacrifice Flys
    Sacrifice Hits
    Save Opportunities
    Saves
    Shut Out
    Singles Allowed
    Stolen Bases Allowed
    Strikeouts Looking
    Strikeouts Per 9 Innings
    Strikeouts Per Walk
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Total Bases Allowed
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Win
    Team Data Points: Abbreviation
    Id
    Market Name
    Venue Data Points: Id
    Market
    City
    Country
    Name Surface
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/players/12831550-c4ba-463b-9847-6ba08b1eb462/profile.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/players/12831550-c4ba-463b-9847-6ba08b1eb462/profile.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/players/12831550-c4ba-463b-9847-6ba08b1eb462/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Player Profile. https://api.sportradar.us/mlb-`{access_level}{version}`/players/`{player_id}`/profile.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `player_id` | ID for a given player. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Player Profile, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/profile.xsd?api_key=`{your_api_key}` Return to API map ## Rankings League and division rank for each team, including post season clinching status.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    MLB Alias
    MLB Id
    MLB Name
    Season Id
    Season Type
    Season Year
    Standings Data Points: Division Rank League Rank Play-Off Status
    Team Data Points: Abbreviation
    Id
    Market Name
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/seasontd/2014/REG/rankings.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/seasontd/2014/REG/rankings.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/seasontd/2014/REG/rankings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the current Rankings. https://api.sportradar.us/mlb-`{access_level}{version}`/seasontd/`{season_year}`/`{mlb_season}`/rankings.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `season_year` | Year in 4 digit format (YYYY). | | `mlb_season` | Regular Season (REG). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Rankings, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/rankings.xsd?api_key=`{your_api_key}` Return to API map ## Seasonal Splits Detailed splits for a given team and all players on the roster.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: Season Id Season Type Season Year
    Player Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Player Splits Baserunning Data Points: Away Games Caught Stealing
    Away Games Stolen Bases
    By Month Caught Stealing
    By Month Stolen Bases
    By Opponent Caught Stealing
    By Opponent Stolen Bases
    By Surface Caught Stealing
    By Surface Stolen Bases
    By Venue Caught Stealing
    By Venue Stolen Bases
    Day Games Caught Stealing
    Day Games Stolen Bases
    Home Games Caught Stealing
    Home Games Stolen Bases
    Night Games Caught Stealing
    Night Games Stolen Bases
    Vs. Lefties Caught Stealing
    Vs. Lefties Stolen Bases
    Vs. Righties Caught Stealing
    Vs. Righties Stolen Bases
    Player Splits Hitting Data Points: Away Games At Bats
    Away Games Batting Average
    Away Games Doubles
    Away Games Hit By Pitch
    Away Games Hits
    Away Games Home Runs
    Away Games Intentional Walks
    Away Games OB Perc + Slug Perc
    Away Games On Base Percentage
    Away Games Runs Batted In
    Away Games Singles
    Away Games Slugging Percentage
    Away Games Strikeouts
    Away Games Total Runs Scored
    Away Games Triples
    Away Games Walks
    By Month At Bats
    By Month Batting Average
    By Month Doubles
    By Month Hit By Pitch
    By Month Hits
    By Month Home Runs
    By Month Intentional Walks
    By Month OB Perc + Slug Perc
    By Month On Base Percentage
    By Month Runs Batted In
    By Month Singles
    By Month Slugging Percentage
    By Month Strikeouts
    By Month Total Runs Scored
    By Month Triples
    By Month Walks
    By Opponent At Bats
    By Opponent Batting Average
    By Opponent Doubles
    By Opponent Hit By Pitch
    By Opponent Hits
    By Opponent Home Runs
    By Opponent Intentional Walks
    By Opponent OB Perc + Slug Perc
    By Opponent On Base Percentage
    By Opponent Runs Batted In
    By Opponent Singles
    By Opponent Slugging Percentage
    By Opponent Strikeouts
    By Opponent Total Runs Scored
    By Opponent Triples
    By Opponent Walks
    By Surface At Bats
    By Surface Batting Average
    By Surface Doubles
    By Surface Hit By Pitch
    By Surface Hits
    By Surface Home Runs
    By Surface Intentional Walks
    By Surface OB Perc + Slug Perc
    By Surface On Base Percentage
    By Surface Runs Batted In
    By Surface Singles
    By Surface Slugging Percentage
    By Surface Strikeouts
    By Surface Total Runs Scored
    By Surface Triples
    By Surface Walks
    By Venue At Bats
    By Venue Batting Average
    By Venue Doubles
    By Venue Hit By Pitch
    By Venue Hits
    By Venue Home Runs
    By Venue Intentional Walks
    By Venue OB Perc + Slug Perc
    By Venue On Base Percentage
    By Venue Runs Batted In
    By Venue Singles
    By Venue Slugging Percentage
    By Venue Strikeouts
    By Venue Total Runs Scored
    By Venue Triples
    By Venue Walks
    Day Games At Bats
    Day Games Batting Average
    Day Games Doubles
    Day Games Hit By Pitch
    Day Games Hits
    Day Games Home Runs
    Day Games Intentional Walks
    Day Games OB Perc + Slug Perc
    Day Games On Base Percentage
    Day Games Runs Batted In
    Day Games Singles
    Day Games Slugging Percentage
    Day Games Strikeouts
    Day Games Total Runs Scored
    Day Games Triples
    Day Games Walks
    Home Games At Bats
    Home Games Batting Average
    Home Games Doubles
    Home Games Hit By Pitch
    Home Games Hits
    Home Games Home Runs
    Home Games Intentional Walks
    Home Games OB Perc + Slug Perc
    Home Games On Base Percentage
    Home Games Runs Batted In
    Home Games Singles
    Home Games Slugging Percentage
    Home Games Strikeouts
    Home Games Total Runs Scored
    Home Games Triples
    Home Games Walks
    Night Games At Bats
    Night Games Batting Average
    Night Games Doubles
    Night Games Hit By Pitch
    Night Games Hits
    Night Games Home Runs
    Night Games Intentional Walks
    Night Games OB Perc + Slug Perc
    Night Games On Base Percentage
    Night Games Runs Batted In
    Night Games Singles
    Night Games Slugging Percentage
    Night Games Strikeouts
    Night Games Total Runs Scored
    Night Games Triples
    Night Games Walks
    Vs. Lefties At Bats
    Vs. Lefties Batting Average
    Vs. Lefties Doubles
    Vs. Lefties Hit By Pitch
    Vs. Lefties Hits
    Vs. Lefties Home Runs
    Vs. Lefties Intentional Walks
    Vs. Lefties OB Perc + Slug Perc
    Vs. Lefties On Base Percentage
    Vs. Lefties Runs Batted In
    Vs. Lefties Singles
    Vs. Lefties Slugging Percentage
    Vs. Lefties Strikeouts
    Vs. Lefties Total Runs Scored
    Vs. Lefties Triples
    Vs. Lefties Walks
    Vs. Righties At Bats
    Vs. Righties Batting Average
    Vs. Righties Doubles
    Vs. Righties Hit By Pitch
    Vs. Righties Hits
    Vs. Righties Home Runs
    Vs. Righties Intentional Walks
    Vs. Righties OB Perc + Slug Perc
    Vs. Righties On Base Percentage
    Vs. Righties Runs Batted In
    Vs. Righties Singles
    Vs. Righties Slugging Percentage
    Vs. Righties Strikeouts
    Vs. Righties Total Runs Scored
    Vs. Righties Triples
    Vs. Righties Walks
    Player Splits Pitching Data Points: Away Games Complete Games
    Away Games Earned Run Average
    Away Games Earned Runs Allowed
    Away Games Games Played
    Away Games Games Started
    Away Games Hits Allowed
    Away Games Home Runs Allowed
    Away Games Innings Pitched (Complete & Partial)
    Away Games Innings Pitched (Total Outs)
    Away Games Intentional Walks
    Away Games Losses
    Away Games Opponents Batting Average
    Away Games Save Opportunities
    Away Games Saves
    Away Games Total Runs Allowed
    Away Games Total Strikeouts
    Away Games Walks
    Away Games Wins
    By Month Complete Games
    By Month Earned Run Average
    By Month Earned Runs Allowed
    By Month Games Played
    By Month Games Started
    By Month Hits Allowed
    By Month Home Runs Allowed
    By Month Innings Pitched (Complete & Partial)
    By Month Innings Pitched (Total Outs)
    By Month Intentional Walks
    By Month Losses
    By Month Opponents Batting Average
    By Month Save Opportunities
    By Month Saves
    By Month Total Runs Allowed
    By Month Total Strikeouts
    By Month Walks
    By Month Wins
    By Opponent Complete Games
    By Opponent Earned Run Average
    By Opponent Earned Runs Allowed
    By Opponent Games Played
    By Opponent Games Started
    By Opponent Hits Allowed
    By Opponent Home Runs Allowed
    By Opponent Innings Pitched (Complete & Partial)
    By Opponent Innings Pitched (Total Outs)
    By Opponent Intentional Walks
    By Opponent Losses
    By Opponent Opponents Batting Average
    By Opponent Save Opportunities
    By Opponent Saves
    By Opponent Total Runs Allowed
    By Opponent Total Strikeouts
    By Opponent Walks
    By Opponent Wins
    By Surface Complete Games
    By Surface Earned Run Average
    By Surface Earned Runs Allowed
    By Surface Games Played
    By Surface Games Started
    By Surface Hits Allowed
    By Surface Home Runs Allowed
    By Surface Innings Pitched (Complete & Partial)
    By Surface Innings Pitched (Total Outs)
    By Surface Intentional Walks
    By Surface Losses
    By Surface Opponents Batting Average
    By Surface Save Opportunities
    By Surface Saves
    By Surface Total Runs Allowed
    By Surface Total Strikeouts
    By Surface Walks
    By Surface Wins
    By Venue Complete Games
    By Venue Earned Run Average
    By Venue Earned Runs Allowed
    By Venue Games Played
    By Venue Games Started
    By Venue Hits Allowed
    By Venue Home Runs Allowed
    By Venue Innings Pitched (Complete & Partial)
    By Venue Innings Pitched (Total Outs)
    By Venue Intentional Walks
    By Venue Losses
    By Venue Opponents Batting Average
    By Venue Save Opportunities
    By Venue Saves
    By Venue Total Runs Allowed
    By Venue Total Strikeouts
    By Venue Walks
    By Venue Wins
    Day Games Complete Games
    Day Games Earned Run Average
    Day Games Earned Runs Allowed
    Day Games Games Played
    Day Games Games Started
    Day Games Hits Allowed
    Day Games Home Runs Allowed
    Day Games Innings Pitched (Complete & Partial)
    Day Games Innings Pitched (Total Outs)
    Day Games Intentional Walks
    Day Games Losses
    Day Games Opponents Batting Average
    Day Games Save Opportunities
    Day Games Saves
    Day Games Total Runs Allowed
    Day Games Total Strikeouts
    Day Games Walks
    Day Games Wins
    Home Games Complete Games
    Home Games Earned Run Average
    Home Games Earned Runs Allowed
    Home Games Games Played
    Home Games Games Started
    Home Games Hits Allowed
    Home Games Home Runs Allowed
    Home Games Innings Pitched (Complete & Partial)
    Home Games Innings Pitched (Total Outs)
    Home Games Intentional Walks
    Home Games Losses
    Home Games Opponents Batting Average
    Home Games Save Opportunities
    Home Games Saves
    Home Games Total Runs Allowed
    Home Games Total Strikeouts
    Home Games Walks
    Home Games Wins
    Night Games Complete Games
    Night Games Earned Run Average
    Night Games Earned Runs Allowed
    Night Games Games Played
    Night Games Games Started
    Night Games Hits Allowed
    Night Games Home Runs Allowed
    Night Games Innings Pitched (Complete & Partial)
    Night Games Innings Pitched (Total Outs)
    Night Games Intentional Walks
    Night Games Losses
    Night Games Opponents Batting Average
    Night Games Save Opportunities
    Night Games Saves
    Night Games Total Runs Allowed
    Night Games Total Strikeouts
    Night Games Walks
    Night Games Wins
    Vs. Lefties Batters Faced
    Vs. Lefties Doubles Allowed
    Vs. Lefties Hit Batters
    Vs. Lefties Hits Allowed
    Vs. Lefties Home Runs Allowed
    Vs. Lefties Intentional Walks
    Vs. Lefties On Base Pct & Slg Pct
    Vs. Lefties On Base Pct Allowed
    Vs. Lefties Opponents Batting Average
    Vs. Lefties Runners Caught Stealing
    Vs. Lefties Runs Batted In Allowed
    Vs. Lefties Singles Allowed
    Vs. Lefties Slugging Pct Allowed
    Vs. Lefties Stolen Bases Allowed
    Vs. Lefties Total Runs Allowed
    Vs. Lefties Total Strikeouts
    Vs. Lefties Triples Allowed
    Vs. Lefties Walks
    Vs. Righties Batters Faced
    Vs. Righties Doubles Allowed
    Vs. Righties Hit Batters
    Vs. Righties Hits Allowed
    Vs. Righties Home Runs Allowed
    Vs. Righties Intentional Walks
    Vs. Righties On Base Pct & Slg Pct
    Vs. Righties On Base Pct Allowed
    Vs. Righties Opponents Batting Average
    Vs. Righties Runners Caught Stealing
    Vs. Righties Runs Batted In Allowed
    Vs. Righties Singles Allowed
    Vs. Righties Slugging Pct Allowed
    Vs. Righties Stolen Bases Allowed
    Vs. Righties Total Runs Allowed
    Vs. Righties Total Strikeouts
    Vs. Righties Triples Allowed
    Vs. Righties Walks
    Vs. Switch Hitters Batters Faced
    Vs. Switch Hitters Doubles Allowed
    Vs. Switch Hitters Hit Batters
    Vs. Switch Hitters Hits Allowed
    Vs. Switch Hitters Home Runs Allowed
    Vs. Switch Hitters Intentional Walks
    Vs. Switch Hitters On Base Pct & Slg Pct
    Vs. Switch Hitters On Base Pct Allowed
    Vs. Switch Hitters Opponents Batting Average
    Vs. Switch Hitters Runners Caught Stealing
    Vs. Switch Hitters Runs Batted In Allowed
    Vs. Switch Hitters Singles Allowed
    Vs. Switch Hitters Slugging Pct Allowed
    Vs. Switch Hitters Stolen Bases Allowed
    Vs. Switch Hitters Total Runs Allowed
    Vs. Switch Hitters Total Strikeouts
    Vs. Switch Hitters Triples Allowed
    Vs. Switch Hitters Walks
    Team Data Points: Abbreviation
    Id
    Market Name
    Team Splits Baserunning Data Points: Away Games Caught Stealing
    Away Games Stolen Bases
    By Month Caught Stealing
    By Month Stolen Bases
    By Opponent Caught Stealing
    By Opponent Stolen Bases
    By Surface Caught Stealing
    By Surface Stolen Bases
    By Venue Caught Stealing
    By Venue Stolen Bases
    Day Games Caught Stealing
    Day Games Stolen Bases
    Home Games Caught Stealing
    Home Games Stolen Bases
    Night Games Caught Stealing
    Night Games Stolen Bases
    Vs. Lefties Caught Stealing
    Vs. Lefties Stolen Bases
    Vs. Righties Caught Stealing
    Vs. Righties Stolen Bases
    Team Splits Hitting Data Points: Away Games At Bats
    Away Games Batting Average
    Away Games Doubles
    Away Games Hit By Pitch
    Away Games Hits
    Away Games Home Runs
    Away Games Intentional Walks
    Away Games OB Perc + Slug Perc
    Away Games On Base Percentage
    Away Games Runs Batted In
    Away Games Singles
    Away Games Slugging Percentage
    Away Games Strikeouts
    Away Games Total Runs Scored
    Away Games Triples
    Away Games Walks
    By Month At Bats
    By Month Batting Average
    By Month Doubles
    By Month Hit By Pitch
    By Month Hits
    By Month Home Runs
    By Month Intentional Walks
    By Month OB Perc + Slug Perc
    By Month On Base Percentage
    By Month Runs Batted In
    By Month Singles
    By Month Slugging Percentage
    By Month Strikeouts
    By Month Total Runs Scored
    By Month Triples
    By Month Walks
    By Opponent At Bats
    By Opponent Batting Average
    By Opponent Doubles
    By Opponent Hit By Pitch
    By Opponent Hits
    By Opponent Home Runs
    By Opponent Intentional Walks
    By Opponent OB Perc + Slug Perc
    By Opponent On Base Percentage
    By Opponent Runs Batted In
    By Opponent Singles
    By Opponent Slugging Percentage
    By Opponent Strikeouts
    By Opponent Total Runs Scored
    By Opponent Triples
    By Opponent Walks
    By Surface At Bats
    By Surface Doubles
    By Surface Hit By Pitch
    By Surface Hits
    By Surface Home Runs
    By Surface Intentional Walks
    By Surface OB Perc + Slug Perc
    By Surface On Base Percentage
    By Surface Runs Batted In
    By Surface Singles
    By Surface Slugging Percentage
    By Surface Strikeouts
    By Surface Total Runs Scored
    By Surface Triples
    By Surface Walks
    By Venue At Bats
    By Venue Batting Average
    By Venue Doubles
    By Venue Hit By Pitch
    By Venue Hits
    By Venue Home Runs
    By Venue Intentional Walks
    By Venue OB Perc + Slug Perc
    By Venue On Base Percentage
    By Venue Runs Batted In
    By Venue Singles
    By Venue Slugging Percentage
    By Venue Strikeouts
    By Venue Total Runs Scored
    By Venue Triples
    By Venue Walks
    Day Games At Bats
    Day Games Batting Average
    Day Games Doubles
    Day Games Hit By Pitch
    Day Games Hits
    Day Games Home Runs
    Day Games Intentional Walks
    Day Games OB Perc + Slug Perc
    Day Games On Base Percentage
    Day Games Runs Batted In
    Day Games Singles
    Day Games Slugging Percentage
    Day Games Strikeouts
    Day Games Total Runs Scored
    Day Games Triples
    Day Games Walks
    Home Games At Bats
    Home Games Batting Average
    Home Games Doubles
    Home Games Hit By Pitch
    Home Games Hits
    Home Games Home Runs
    Home Games Intentional Walks
    Home Games OB Perc + Slug Perc
    Home Games On Base Percentage
    Home Games Runs Batted In
    Home Games Singles
    Home Games Slugging Percentage
    Home Games Strikeouts
    Home Games Total Runs Scored
    Home Games Triples
    Home Games Walks
    Night Games At Bats
    Night Games Batting Average
    Night Games Doubles
    Night Games Hit By Pitch
    Night Games Hits
    Night Games Home Runs
    Night Games Intentional Walks
    Night Games OB Perc + Slug Perc
    Night Games On Base Percentage
    Night Games Runs Batted In
    Night Games Singles
    Night Games Slugging Percentage
    Night Games Strikeouts
    Night Games Total Runs Scored
    Night Games Triples
    Night Games Walks
    Vs. Lefties At Bats
    Vs. Lefties Batting Average
    Vs. Lefties Doubles
    Vs. Lefties Hit By Pitch
    Vs. Lefties Hits
    Vs. Lefties Home Runs
    Vs. Lefties Intentional Walks
    Vs. Lefties OB Perc + Slug Perc
    Vs. Lefties On Base Percentage
    Vs. Lefties Runs Batted In
    Vs. Lefties Singles
    Vs. Lefties Slugging Percentage
    Vs. Lefties Strikeouts
    Vs. Lefties Total Runs Scored
    Vs. Lefties Triples
    Vs. Lefties Walks
    Vs. Righties At Bats
    Vs. Righties Batting Average
    Vs. Righties Doubles
    Vs. Righties Hit By Pitch
    Vs. Righties Hits
    Vs. Righties Home Runs
    Vs. Righties Intentional Walks
    Vs. Righties OB Perc + Slug Perc
    Vs. Righties On Base Percentage
    Vs. Righties Runs Batted In
    Vs. Righties Singles
    Vs. Righties Slugging Percentage
    Vs. Righties Strikeouts
    Vs. Righties Total Runs Scored
    Vs. Righties Triples
    Vs. Righties Walks
    Team Splits Pitching Data Points: Away Games Complete Games
    Away Games Earned Run Average
    Away Games Earned Runs Allowed
    Away Games Games Played
    Away Games Hits Allowed
    Away Games Home Runs Allowed
    Away Games Innings Pitched (Complete & Partial)
    Away Games Innings Pitched (Total Outs)
    Away Games Intentional Walks
    Away Games Losses
    Away Games Opponents Batting Average
    Away Games Save Opportunities
    Away Games Saves
    Away Games Starts
    Away Games Total Runs Allowed
    Away Games Total Strikeouts
    Away Games Walks
    Away Games Wins
    By Month Complete Games
    By Month Earned Run Average
    By Month Earned Runs Allowed
    By Month Games Played
    By Month Hits Allowed
    By Month Home Runs Allowed
    By Month Innings Pitched (Complete & Partial)
    By Month Innings Pitched (Total Outs)
    By Month Intentional Walks
    By Month Losses
    By Month Opponents Batting Average
    By Month Save Opportunities
    By Month Saves
    By Month Starts
    By Month Total Runs Allowed
    By Month Total Strikeouts
    By Month Walks
    By Month Wins
    By Opponent Complete Games
    By Opponent Earned Run Average
    By Opponent Earned Runs Allowed
    By Opponent Games Played
    By Opponent Hits Allowed
    By Opponent Home Runs Allowed
    By Opponent Innings Pitched (Complete & Partial)
    By Opponent Innings Pitched (Total Outs)
    By Opponent Intentional Walks
    By Opponent Losses
    By Opponent Opponents Batting Average
    By Opponent Save Opportunities
    By Opponent Saves
    By Opponent Starts
    By Opponent Total Runs Allowed
    By Opponent Total Strikeouts
    By Opponent Walks
    By Opponent Wins
    By Surface Complete Games
    By Surface Earned Run Average
    By Surface Earned Runs Allowed
    By Surface Games Played
    By Surface Hits Allowed
    By Surface Home Runs Allowed
    By Surface Innings Pitched (Complete & Partial)
    By Surface Innings Pitched (Total Outs)
    By Surface Intentional Walks
    By Surface Losses
    By Surface Opponents Batting Average
    By Surface Save Opportunities
    By Surface Saves
    By Surface Starts
    By Surface Total Runs Allowed
    By Surface Total Strikeouts
    By Surface Walks
    By Surface Wins
    By Venue Complete Games
    By Venue Earned Run Average
    By Venue Earned Runs Allowed
    By Venue Games Played
    By Venue Hits Allowed
    By Venue Home Runs Allowed
    By Venue Innings Pitched (Complete & Partial)
    By Venue Innings Pitched (Total Outs)
    By Venue Intentional Walks
    By Venue Losses
    By Venue Opponents Batting Average
    By Venue Save Opportunities
    By Venue Saves
    By Venue Starts
    By Venue Total Runs Allowed
    By Venue Total Strikeouts
    By Venue Walks
    By Venue Wins
    Day Games Complete Games
    Day Games Earned Run Average
    Day Games Earned Runs Allowed
    Day Games Games Played
    Day Games Hits Allowed
    Day Games Home Runs Allowed
    Day Games Innings Pitched (Complete & Partial)
    Day Games Innings Pitched (Total Outs)
    Day Games Intentional Walks
    Day Games Losses
    Day Games Opponents Batting Average
    Day Games Save Opportunities
    Day Games Saves
    Day Games Starts
    Day Games Total Runs Allowed
    Day Games Total Strikeouts
    Day Games Walks
    Day Games Wins
    Home Games Complete Games
    Home Games Earned Run Average
    Home Games Earned Runs Allowed
    Home Games Games Played
    Home Games Hits Allowed
    Home Games Home Runs Allowed
    Home Games Innings Pitched (Complete & Partial)
    Home Games Innings Pitched (Total Outs)
    Home Games Intentional Walks
    Home Games Losses
    Home Games Opponents Batting Average
    Home Games Save Opportunities
    Home Games Saves
    Home Games Starts
    Home Games Total Runs Allowed
    Home Games Total Strikeouts
    Home Games Walks
    Home Games Wins
    Night Games Complete Games
    Night Games Earned Run Average
    Night Games Earned Runs Allowed
    Night Games Games Played
    Night Games Hits Allowed
    Night Games Home Runs Allowed
    Night Games Innings Pitched (Complete & Partial)
    Night Games Innings Pitched (Total Outs)
    Night Games Intentional Walks
    Night Games Losses
    Night Games Opponents Batting Average
    Night Games Save Opportunities
    Night Games Saves
    Night Games Starts
    Night Games Total Runs Allowed
    Night Games Total Strikeouts
    Night Games Walks
    Night Games Wins
    Vs. Lefties Batters Faced
    Vs. Lefties Batters Hit
    Vs. Lefties Doubles Allowed
    Vs. Lefties Hits Allowed
    Vs. Lefties Home Runs Allowed
    Vs. Lefties Intentional Walks
    Vs. Lefties On Base Pct & Slg Pct
    Vs. Lefties On Base Pct Allowed
    Vs. Lefties Opponents Batting Average
    Vs. Lefties Runners Caught Stealing
    Vs. Lefties Runs Batted In Allowed
    Vs. Lefties Singles Allowed
    Vs. Lefties Slugging Pct Allowed
    Vs. Lefties Stolen Bases Allowed
    Vs. Lefties Total Runs Allowed
    Vs. Lefties Total Strikeouts
    Vs. Lefties Triples Allowed
    Vs. Lefties Walks
    Vs. Righties Batters Faced
    Vs. Righties Batters Hit
    Vs. Righties Doubles Allowed
    Vs. Righties Hits Allowed
    Vs. Righties Home Runs Allowed
    Vs. Righties Intentional Walks
    Vs. Righties On Base Pct & Slg Pct
    Vs. Righties On Base Pct Allowed
    Vs. Righties Opponents Batting Average
    Vs. Righties Runners Caught Stealing
    Vs. Righties Runs Batted In Allowed
    Vs. Righties Singles Allowed
    Vs. Righties Slugging Pct Allowed
    Vs. Righties Stolen Bases Allowed
    Vs. Righties Total Runs Allowed
    Vs. Righties Total Strikeouts
    Vs. Righties Triples Allowed
    Vs. Righties Walks
    Venue Data Points: Id
    Market
    City
    Country
    Name Surface
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/seasontd/2014/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/splits.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/seasontd/2014/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/splits.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/seasontd/2014/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/splits.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Seasonal Splits. https://api.sportradar.us/mlb-`{access_level}{version}`/seasontd/`{season_year}`/`{mlb_season}`/teams/`{team_id}`/splits.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `season_year` | Year in 4 digit format (YYYY). | | `mlb_season` | Regular Season (REG), or Postseason (PST). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Seasonal Splits, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/statistics.xsd?api_key=`{your_api_key}` Return to API map ## Seasonal Statistics Detailed season-to-date stats for given team and all players on the roster.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: Season Id Season Type Season Year
    Player Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Player Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Bases
    Player Fielding Data Points: Assists
    Complete Games
    Double Plays
    Errors
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Passed Balls
    Putouts
    Range Factor
    Total Chances
    Triple Plays
    Wild Pitches While Catching
    Player Hitting Data Points: At Bats
    At Bats Per Homerun
    At Bats Per Strikeout
    At Bats With RISP
    Balls
    Balls In Play
    Batting Average
    Batting Average On Balls In Play
    Complete Games
    Dirt Balls Faced
    Doubles
    Earned Runs Scored
    Extra Base Hits
    Fielders Choice
    Fly Ball
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Grounded Into Double Plays
    Hit By Pitch
    Hits
    Hits With RISP
    Home Runs
    Intentional Balls Taken
    Intentional Walks
    Isolated Power
    Line Drive
    Line Out
    Line Out In Double Play
    OB Perc + Slug Perc
    On Base Percentage
    Pitches Faced
    Plate Appearances
    Pop Up
    Pop Outs
    Reached On Error
    Runners Left On Base
    Runners Left On Base In Scoring Position With 2 Outs
    Runs Batted In
    Sacrifice Flys
    Sacrifice Hits
    Secondary Average
    Singles
    Slugging Percentage
    Strikeouts Looking
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Runners Left On Base
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Unearned Runs Scored
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Hold
    Home Runs Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Loss
    Opponents Batting Average
    Opponents Runners Left On Base
    Pitch Count
    Pop Outs
    Quality Start
    Reached On Error
    Runners Caught Stealing
    Sacrifice Flys
    Sacrifice Hits
    Save Opportunities
    Saves
    Shut Out
    Singles Allowed
    Stolen Bases Allowed
    Strikeouts Looking
    Strikeouts Per 9 Innings
    Strikeouts Per Walk
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Total Bases Allowed
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Win
    Team Data Points: Abbreviation
    Id
    Market Name
    Team Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Base
    Team Fielding Data Points: Assists
    Double Plays
    Errors
    Fielding Percentage
    Passed Balls
    Putouts
    Total Chances
    Triple Plays
    Wild Pitches While Catching
    Team Hitting Data Points: At Bats
    At Bats Per Homerun
    At Bats Per Strikeout
    At Bats With RISP
    Balls
    Balls In Play
    Batting Average
    Batting Average On Balls In Play
    Dirt Balls Faced
    Doubles
    Earned Runs Scored
    Extra Base Hits
    Fielders Choice
    Fly Ball
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Ground Ball
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Grounded Into Double Plays
    Hit By Pitch
    Hits
    Hits With RISP
    Home Runs
    Intentional Balls Taken
    Intentional Walks
    Isolated Power
    Line Drive
    Line Out
    Line Out In Double Play
    OB Perc + Slug Perc
    On Base Percentage
    Pitches Faced
    Plate Appearances
    Pop Outs
    Pop Up
    Reached On Error
    Runners Left On Base
    Runners Left On Base In Scoring Position With 2 Outs
    Runs Batted In
    Sacrifice Flys
    Sacrifice Hits
    Secondary Average
    Singles
    Slugging Percentage
    Strikeouts Looking
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Runners Left On Base
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Unearned Runs Scored
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Ground Ball To Fly Ball Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Holds
    Home Runs Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents Batting Average
    Opponents Runners Left On Base
    Pitch Count
    Pop Outs
    Quality Starts
    Reached On Error
    Runners Caught Stealing
    Sacrifice Flys
    Sacrifice Hits
    Save Opportunities
    Saves
    Shut Outs
    Singles Allowed
    Stolen Bases Allowed
    Strikeouts Looking
    Strikeouts Per 9 Innings
    Strikeouts Per Walk
    Strikeouts Swinging
    Strikes Looking
    Strikes Swinging
    Team Shutouts
    Total Bases Allowed
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Wins
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/seasontd/2013/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/statistics.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/seasontd/2013/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/statistics.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/seasontd/2013/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/statistics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Seasonal Statistics for a given team. https://api.sportradar.us/mlb-`{access_level}{version}`/seasontd/`{season_year}`/`{mlb_season}`/teams/`{team_id}`/statistics.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `season_year` | Year in 4 digit format (YYYY). | | `mlb_season` | Regular Season (REG). | | `team_id` | ID for a given team. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Seasonal Statistics, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/statistics.xsd?api_key=`{your_api_key}` Return to API map ## Series Schedule Play-off participant information and the date, time, location, and other event details for every match-up taking place for the play-offs.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Boxscore Data Points: Attendance
    Away Team Abbreviation
    Away Team Id
    Away Team Market
    Away Team Name
    Duration
    Home Team Abbreviation
    Home Team Id
    Home Team Market
    Home Team Name
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Broadcast Satellite
    Coverage
    Day/Night Flag
    Home Team
    Id
    Number
    Original Start Time
    Reason for Reschedule
    Scheduled Start
    Scheduled TBD Flag
    Status
    League Data Points: MLB Alias
    MLB Id
    MLB Name
    Season Id
    Season Type
    Season Year
    Series Data Points: Participant Name
    Game Number
    Round
    Series Win
    Start Date
    Title
    Team Data Points: Abbreviation
    Id
    Market Name
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/series/2014/REG/schedule.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/series/2014/REG/schedule.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/series/2014/REG/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Series Schedule. https://api.sportradar.us/mlb-`{access_level}{version}`/series/`{season_year}`/`{mlb_season}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `season_year` | Year in 4 digit format (YYYY). | | `mlb_season` | Postseason (PST). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Series Schedule, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/series.xsd?api_key=`{your_api_key}` Return to API map ## Standings Top-level standings information including team, league, division, wins, and losses.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    MLB Alias
    MLB Id
    MLB Name
    Season Id
    Season Type
    Season Year
    Standings Data Points: Away Losses
    Away Wins
    Elimination Number
    Games Back
    Home Losses
    Home Wins
    Last 10 Losses
    Last 10 Wins
    Overall Losses
    Overall Winning Percentage
    Overall Wins
    Streak
    Wild Card Games Back
    Team Data Points: Abbreviation
    Id
    Market Name
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/seasontd/2014/REG/standings.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/seasontd/2014/REG/standings.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/seasontd/2014/REG/standings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the current Standings. https://api.sportradar.us/mlb-`{access_level}{version}`/seasontd/`{season_year}`/`{mlb_season}`/standings.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `season_year` | Year in 4 digit format (YYYY). | | `mlb_season` | Regular Season (REG). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Standings, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/standings.xsd?api_key=`{your_api_key}` Return to API map ## Team Depth Chart Current depth chart positions for all positions on a given team.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Player Data Points: Depth Chart Position
    First Name
    Id
    Jersey Number
    Last Name
    Position
    Position Description
    Position Name
    Preferred Name
    Primary Position
    Status
    Team Data Points: Abbreviation
    Id
    Market Name
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/teams/25507be1-6a68-4267-bd82-e097d94b359b/depth_chart.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/teams/25507be1-6a68-4267-bd82-e097d94b359b/depth_chart.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/teams/25507be1-6a68-4267-bd82-e097d94b359b/depth_chart.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Team Depth Charts. https://api.sportradar.us/mlb-`{access_level}{version}`/teams/`{team_id}`/depth_chart.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `team_id` | ID for a given team. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the League Depth Charts, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/team.xsd?api_key=`{your_api_key}` Return to API map ## Team Profile Top-level team information including all players currently on the 25 man roster, 40 man roster, or expected to join the team.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Injuries Data Points: Description
    Id
    Start Date Status
    League Data Points: Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    Player Data Points: Batting Hand
    Birth Date Birth Place (City)
    Birth Place (Country)
    Birth Place (State)
    College
    Date Of Pro Debut
    First Name
    Full Name
    Height
    High School
    Id
    Jersey Number
    Last Name
    Mlbam Id
    Position
    Preferred Name
    Primary Position
    Status
    Throwing Hand
    Weight
    Team Data Points: Abbreviation
    Id
    Market
    Name
    Staff Experience
    Staff First Name
    Staff Full Name
    Staff Id
    Staff Last Name
    Staff Position
    Venue Data Points: Address
    Capacity
    City
    Country
    Id
    Market
    Name
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/teams/25507be1-6a68-4267-bd82-e097d94b359b/profile.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/teams/25507be1-6a68-4267-bd82-e097d94b359b/profile.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/teams/25507be1-6a68-4267-bd82-e097d94b359b/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Team Profile. https://api.sportradar.us/mlb-`{access_level}{version}`/teams/`{team_id}`/profile.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `team_id` | ID for a given team. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Team Profile, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/team.xsd?api_key=`{your_api_key}` Return to API map ## Team Rosters (Active) Player information for players listed on the 25 man roster for each team.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: MLB Alias MLB Id MLB Name
    Player Data Points: Batting Hand
    Birth Date Birth Place (City)
    Birth Place (Country)
    Birth Place (State)
    College
    Date Of Pro Debut
    First Name
    Full Name
    Height
    High School
    Id
    Jersey Number
    Last Name
    Mlbam Id
    Position
    Preferred Name
    Primary Position
    Status
    Throwing Hand
    Weight
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/active_rosters.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/active_rosters.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/active_rosters.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Active Team Rosters. https://api.sportradar.us/mlb-`{access_level}{version}`/league/active_rosters.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Active Team Rosters, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/rosters.xsd?api_key=`{your_api_key}` Return to API map ## Team Rosters (Full) Player information for all players listed on the 40 man roster for each team, including those players who are out with injury or expected to join the team.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: MLB Alias MLB Id MLB Name
    Player Data Points: Batting Hand
    Birth Date Birth Place (City)
    Birth Place (Country)
    Birth Place (State)
    College
    Date Of Pro Debut
    Expected Date To Join Team
    First Name
    Full Name
    Height
    High School
    Id
    Jersey Number
    Last Name
    Mlbam Id
    Position
    Preferred Name
    Primary Position
    Status
    Throwing Hand
    Weight
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/full_rosters.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/full_rosters.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/full_rosters.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Full Team Rosters. https://api.sportradar.us/mlb-`{access_level}{version}`/league/full_rosters.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Full Team Rosters, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/rosters.xsd?api_key=`{your_api_key}` Return to API map ## Venues Name, location, and capacity of each venue, including the dimensions of each field.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Venue Data Points: Address
    Capacity
    Centerfield Distance
    City
    Country
    Id
    Left Centerfield Distance
    Left Field Distance
    Market
    Middle Left Centerfield Distance
    Middle Left Field Distance
    Middle Right Centerfield Distance
    Middle Right Field Distance
    Name
    Right Centerfield Distance
    Right Field Distance
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb-t5/league/venues.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/mlb-t5/league/venues.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/mlb-t5/league/venues.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Venues. https://api.sportradar.us/mlb-`{access_level}{version}`/league/venues.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Venues, replace the parameters in the following URL. https://api.sportradar.us/mlb-`{access_level}{version}`/schema/venues.xsd?api_key=`{your_api_key}` Return to API map ## Frequently Asked Questions

    Q: What format are date fields presented in?

    A: When we present date only values we present these in the ISO 8601 standard format.
    ex: 2013-04-03
    We use these for attributes that have date and no time (such as birthdate). For more information: https://en.wikipedia.org/wiki/ISO_8601

    Q: What format are the date/time fields presented in?

    A: All of our Date/Time attributes are in UTC, presented in the ISO 8601 standard format.
    ex: 2013-04-03T18:15:00+00:00
    For more information: https://en.wikipedia.org/wiki/ISO_8601

    Q: What are the valid game statuses and their definitions?

    A: Here is a list of the game statuses and their definitions. This information can also be found in our glossary feed:

    • scheduled - The game is on the schedules and ready to play.
    • inprogress - The first pitch for the game has been received.
    • complete - The last pitch for the game has been received and statistics are being reviewed.
    • closed - The game has passed review and MLB has officially closed the game.
    • wdelay - The game has been delayed because of weather.
    • fdelay - The game has been delayed because of facility issues.
    • odelay - The game has been delayed.
    • canceled – The game has been canceled.
    • unnecessary – The series game was scheduled to occur, but one team has already clinched, so the game has become unnecessary to play
    • if_necessary – The game will be scheduled if it is required.
    • postponed - The game has been postponed and will be rescheduled in the future, restarting at the top of the 1st.
    • suspended - The game has been suspended and will be rescheduled in the future, continuing where they left off.
    • maintenance - The game failed review and is in the process of being repaired.

    Q: What are the valid lineup positions and their definitions?

    A: Here is a list of the lineup positions and their definitions. Please note, this is the how the information is presented in the following feeds: Daily Summary, Game Summary, and Play-by-Play.

    • 1 = Pitcher
    • 2 = Catcher
    • 3 = First Base
    • 4 = Second Base
    • 5 = Third Base
    • 6 = Shortstop
    • 7 = Left Field
    • 8 = Centerfield
    • 9 = Right Field
    • 10 = Designated Hitter
    • 11 = Pinch Hitter
    • 12 = Pinch Runner

    A: Here is a list of the roster positions and their definitions.

    • C = Catcher
    • DH = Designated Hitter
    • IF = Infield
    • OF = Outfield
    • P = Pitcher

    A: Here is a list of the roster primary positions and their definitions.

    • C = Catcher
    • IF = Infield
    • 1B = First base
    • 2B = Second base
    • 3B = Third Base
    • SS = Shortstop
    • OF = Outfield
    • LF = Left Field
    • CF = Centerfield
    • P = Pitcher
    • RF = Right Field
    • RP = Relief Pitcher
    • SP = Starting Pitcher
    • DH = Designated Hitter

    Q: How are statistics handled for players who switch teams mid-season?

    A: The player profile feed divides statistics by team, so there would be a relevant team entry for each team that the player played on.

    Q: Which valid pitch types you track and what are their definitions?

    A: Here is a list of the pitch types and their definitions. This information can also be found in our glossary feed:

    • FA = Fastball
    • SI = Sinker
    • CT = Cutter
    • CU = Curveball
    • SL = Slider
    • CH = Changeup
    • KN = Knuckleball
    • SP = Splitter
    • SC = Screwball
    • FO = Forkball
    • IB = Intentional Ball
    • PI = Pitchout
    • Other

    Q: What are the valid player statuses and their definitions?

    A: Here is a list of the player statuses and their definitions. This information can also be found in our glossary feed:

    • A = Activated
    • BRV = Bereavement List
    • D7 = 7 Day Disabled List
    • D10 = 10 Day Disabled List
    • D60 = 60 Day Disabled List
    • DFA = Designated for assignment
    • FA - Free Agent
    • FME = Family Medical Emergency
    • LV = Paid Leave
    • MIN = Minors
    • NRI = Non-roster Invite
    • PL = Paternity Leave
    • RST = Restricted
    • RET = Retired
    • SUS = Suspended
    • UDP = Unsigned Draft Pick
    • WV = Waivers
    • Null (blank) = Traded or not activated*

    * Traded players temporarily have no status listed after they are traded to a new team and are either activated by the MLB club or assigned to a minor league affiliate.

    Q: What are the valid player injury statuses?

    A: Here is a list of the player injury statuses:

    • D7
    • D10
    • D60
    • Day-to-Day
    • Unknown

    Q: What are the valid outcome types and their definitions?

    A: Here is a list of the outcome types and their definitions:

    • pitch - The last event logged was a pitch
    • steal - The last event logged was a steal
    • lineup - The last event logged was a lineup change
    • half_start - The last event logged is the start of an inning half
    • half_over - The last event logged is half inning is over
    • event_start - The game has begun
    • event_over - The game is over

    Q: What are the valid pitch outcomes and their definitions?

    A: Here is a list of the pitch outcomes and their definitions. This information can also be found in our glossary feed:

    • aBK = Balk
    • aCI = Catcher Interference
    • aD = Double
    • aDAD3 = Double - Adv 3rd
    • aDAD4 = Double - Adv Home
    • aFCAD2 = Fielders Choice - Adv 2nd
    • aFCAD3 = Fielders Choice - Adv 3rd
    • aFCAD4 = Fielders Choice - Adv Home
    • aHBP = Hit By Pitch
    • aHR = Homerun
    • aIBB = Intentional Walk
    • aKLAD1 = Strike Looking - Adv 1st
    • aKLAD2 = Strike Looking - Adv 2nd
    • aKLAD3 = Strike Looking - Adv 3rd
    • aKLAD4 = Strike Looking - Adv Home
    • aKSAD1 = Strike Swinging - Adv 1st
    • aKSAD2 = Strike Swinging - Adv 2nd
    • aKSAD3 = Strike Swinging - Adv 3rd
    • aKSAD4 = Strike Swinging - Adv Home
    • aROE = Reached On Error
    • aROEAD2 = Reached On Error - Adv 2nd
    • aROEAD3 = Reached On Error - Adv 3rd
    • aROEAD4 = Reached On Error - Adv Home
    • aS = Single
    • aSAD2 = Single - Adv 2nd
    • aSAD3 = Single - Adv 3rd
    • aSAD4 = Single - Adv Home
    • aSBAD1 = Sacrifice Bunt - Adv 1st
    • aSBAD2 = Sacrifice Bunt - Adv 2nd
    • aSBAD3 = Sacrifice Bunt - Adv 3rd
    • aSBAD4 = Sacrifice Bunt - Adv Home
    • aSFAD1 = Sacrifice Fly - Adv 1st
    • aSFAD2 = Sacrifice Fly - Adv 2nd
    • aSFAD3 = Sacrifice Fly - Adv 3rd
    • aSFAD4 = Sacrifice Fly - Adv Home
    • aT = Triple
    • aTAD4 = Triple - Adv Home
    • bAB = Enforced Ball
    • bB = Ball
    • bDB = Dirt Ball
    • bIB = Intentional Ball
    • bPO = Pitchout
    • kF = Foul Ball
    • kFT = Foul Tip
    • kKL = Strike Looking
    • kKS = Strike Swinging
    • oBI = Hitter Interference
    • oDT3 = Double - Out at 3rd
    • oDT4 = Double - Out at Home
    • oFC = Fielders Choice
    • oFCT2 = Fielders Choice - Out at 2nd
    • oFCT3 = Fielders Choice - Out at 3rd
    • oFCT4 = Fielders Choice - Out at Home
    • oFO = Fly Out
    • oGO = Ground Out
    • oKLT1 = Strike Looking - Out at 1st
    • oKLT2 = Strike Looking - Out at 2nd
    • oKLT3 = Strike Looking - Out at 3rd
    • oKLT4 = Strike Looking - Out at Home
    • oKST1 = Strike Swinging - Out at 1st
    • oKST2 = Strike Swinging - Out at 2nd
    • oKST3 = Strike Swinging - Out at 3rd
    • oKST4 = Strike Swinging - Out at Home
    • oLO = Line Out
    • oOBB = Out of Batters Box
    • oOP = Out on Appeal
    • oPO = Pop Out
    • oROET2 = Reached On Error - Out at 2nd
    • oROET3 = Reached On Error - Out at 3rd
    • oROET4 = Reached On Error - Out at Home
    • oSB = Sacrifice Bunt
    • oSBT2 = Sacrifice Bunt - Out at 2nd
    • oSBT3 = Sacrifice Bunt - Out at 3rd
    • oSBT4 = Sacrifice Bunt - Out at Home
    • oSF = Sacrifice Fly
    • oSFT2 = Sacrifice Fly - Out at 2nd
    • oSFT3 = Sacrifice Fly - Out at 3rd
    • oSFT4 = Sacrifice Fly - Out at Home
    • oST2 = Single - Out at 2nd
    • oST3 = Single - Out at 3rd
    • oST4 = Single - Out at Home
    • oTT4 = Triple - Out at Home

    Q: What are the valid runner outcomes and their definitions?

    A: Here is a list of the runner outcomes and their definitions. This information can also be found in our glossary feed:

    • CK = Checked
    • ERN = Earned Run/RBI
    • eRN = Earned Run/No RBI
    • URN = Unearned Run/RBI
    • uRN = Unearned Run/No RBI
    • PO = Pickoff
    • POCS2 = Pickoff/Caught Stealing 2nd
    • POCS3 = Pickoff/Caught Stealing 3nd
    • POCS4 = Pickoff/Caught Stealing Home
    • AD1 = Advance 1st
    • AD2 = Advance 2nd
    • AD3 = Advance 3rd
    • SB2 = Stole 2nd
    • SB2E4E= Stole 2nd, error to home (earned)
    • SB3 = Stole 3rd
    • SB3E4E= Stole 3rd, error to home (earned)
    • SB4 = Stole Home
    • TO2 = Tag out 2nd
    • TO3 = Tag out 3rd
    • TO4 = Tag out Home
    • FO1 = Force out 1st
    • FO2 = Force out 2nd
    • FO3 = Force out 3rd
    • FO4 = Force out Home
    • CS2 = Caught Stealing 2nd
    • CS3 = Caught Stealing 3rd
    • CS4 = Caught Stealing Home
    • SB2E3 = Stole 2nd, error to 3rd
    • SB2E4 = Stole 2nd, error to Home
    • SB3E4 = Stole 3nd, error to Home
    • DI2 = Indifference to 2nd
    • DI3 = Indifference to 3rd
    • DO1 = Doubled off 1st
    • DO2 = Doubled off 2nd
    • DO3 = Doubled off 3rd
    • RI = Runner Interference
    • OOA = Out on Appeal
    • OBP = Out of Base Path
    • HBB = Hit by Batted Ball

    Q: What are the valid umpire assignments and their definitions?

    A: Here is a list of the umpire assignments and their definitions:

    • HP = Home plate umpire
    • 1B = 1st base umpire
    • 2B = 2nd base umpire
    • 3B = 3rd base umpire
    • LF = Left field umpire
    • RF = Right field umpire

    Q: You are tracking pitch speed and location. Can I expect this information to show up for all pitches, all games?

    A: When the information is available via a broadcast, we will be entering in speed and location. We currently represent the pitch location via 13 zones. The strike zone is represented by zone 1-9. Graphically, here is how it looks:

    Q: What are the valid hit types I can expect to appear?

    A: The following hit types can be displayed:

    • GB – Ground ball
    • FB – Fly ball
    • LD – Line drive
    • PU - Popup

    Q: You are tracking pitch x/y location. How can I expect this information to appear?

    A: The pitch x/y values will be a percentage distance from the center of the strike zone, in positive or negative values from approximately -300% to positive 300% for x, and approximately -200% to positive 200% for y. Since this data is taken from broadcast, there may not be data for all pitches.

    Q: What are the valid values for the Playoff Status for a team?

    A: Here is a list of the clinched values and their definitions:

    • division = The team has clinched the division title.
    • division_homefield = The team has clinched the division title as well as home field advantage.
    • playoff_berth = The team has clinched a berth into the postseason.
    • wildcard = The team has clinched a wildcard berth.

    Q: You are tracking hit location. Do you have a diagram showing the field and it’s corresponding zones?

    A: We are tracking hit location. We break the field up into 35 zones. Graphically, here is how it looks

    Q: Are seasonal statistics available for all season types?

    A: We currently provide seasonal statistics for the regular and post seasons. We do not provide seasonal statistics for spring training.

    Q: How do you handle players who are scheduled to start a future game, but are not currently on the team profile?

    A: There is a case where a team has set a pitcher as a probable starter, but he is not on the profile. When this occurs, we will update the player, denoting that he has not officially joined the squad, but is scheduled to join. The entry will be found in the Team Profile feed. We will include all the information about the player including the date he is expected to join to the team officially. Here is a sample of what this will look like:

    Q: Do you cover the MLB All Star Game?

    A: We cover the MLB All Star game. The game will appear in the regular season schedule. Team rosters will not be available from the Team Profile feed. All roster information can be found in the Daily Summary or Game Summary feeds for the All Star Game.

    Return to top