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 XSD Schema
Major League Baseball v5 Data Entry Workflow
Weather Delay Workflow
Download
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 three 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. Full – We provide live pitch-by-pitch 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 postseason games. 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 only used as a failover for Spring Training games. Spring Training – We provide live play-by-play coverage, including all events where an out was recorded or a runner advanced, as well as team and player data in near real-time. Each spring training game will be designated as full coverage, but only select games will feature pitch-by-pitch data.
    In the event the MLB feed goes down or begins reporting errors, Sportradar takes over Live Data Entry (LDE) to provide a failover for MLB. During a failover, some data will not be available, and coverage is reduced to boxscore only. After the game is over data entered by Sportradar will be reconciled with the data provided by MLB.
    Spring Training Coverage Note: Due to varying game rules, limited on-site staff, and training of new on-venue statisticians, you may see data volatility (e.g. stat errors and prolonged game-closing process) for Spring Training games. As a result, there may be a higher than normal frequency of games with data latency or moving to fail-over mode throughout Spring Training.
    ## Simulations Our enhanced API simulations allow you to replay games on your own schedule. With the replayer, you can request a list of available recordings (by league), register a session (starting a session allows the API to be replayed back in natural time specific to the session), then continually poll the endpoint for updates as one would during a live game. Note: This simulation does not require an API key or any authentication.
    Replay simulations are currently available exclusively for RESTful NFL, NCAA Football, and MLB API endpoints.

    Fetching Available Recordings

    To see a list of available recordings the below graphQL endpoint can be used. Sample Call curl --location --request POST 'https://playback.sportradar.com/graphql' \ --header 'Content-Type: application/json' \ --data-raw '{"query":"query getRecordings($league: String){\n recordings(league: $league){\n id\n scheduled\n meta\n league\n start\n end\n title\n apis {\n name\n description\n formats\n }\n }\n}","variables":{"league":"nfl"}}' The above query is specific to the NFL ("league":"nfl"). NCAA Football ("league":"ncaafb") and MLB ("league":"mlb") are also available. Here is an NFL example response:

    Register Your Session for Replay

    Once you have selected a recording you wish to replay, you may start a session. Start a session using the id of the desired recording. At this point the specific feed - if multiple feeds are available - does not matter. For example: The above recording includes Play-By-Play, Game Boxscore, Game Roster, and Game Statistics endpoints (all available in json or xml). For the next step the recordingId is needed (50d7e8f3-a1ce-4fcf-bb15-f8a2ad919e34 in the above sample), whether you want to replay one or all available options. Sample Call curl --location --request POST 'https://playback.sportradar.com/graphql' \ --header 'Content-Type: application/json' \ --data-raw '{"query":"mutation CreateSession($input: CreateSessionInput!) {\n createSession(input: $input)\n }","variables":{"input":{"recordingId":"50d7e8f3-a1ce-4fcf-bb15-f8a2ad919e34"}}}' In the above, recordingId is the id from the example response. This request will return your unique sessionId to be used in subsequent data API requests. Example sessionId response: {"data":{"createSession":"60414140-53c7-11ed-bd68-ad2289887b03_-5507944226"}}

    Make an API Request

    Here is a sample of a Game Boxscore request for recordingId 50d7e8f3-a1ce-4fcf-bb15-f8a2ad919e34 with a contentType of json: Sample Call curl --location --request GET 'https://playback.sportradar.com/replay/nfl/50d7e8f3-a1ce-4fcf-bb15-f8a2ad919e34?feed=boxscore&contentType=json&sessionId=[sessionId]' To receive data updates you can now continually request this path, as you would with live game data in our RESTful APIs. https://playback.sportradar.com/`{league}`/`{recordingId}`?feed=`{feed}`&contentType=`{contentType}`&sessionId=`{sessionId}`

    Path Parameters

    | Parameter | Description | | --------- | ----------- | | `league` | Desired league for the simulation.
    nfl, ncaafb, mlb | | `recordingId` | ID of the recording.
    (ex. 50d7e8f3-a1ce-4fcf-bb15-f8a2ad919e34) |

    Query String Parameters

    | Parameter | Description | | --------- | ----------- | | `feed` | Desired feed for the simulation.
    boxscore, game, pbp, rosters | | `contentType` | Desired content type.
    json or xml | | `sessionId` | Session ID returned by the session request.
    (ex. aa23f380-2234-11ed-8a8a-cbecc410da60_-137242789) | ## Legacy Simulations Our MLB simulations give you the opportunity to test your code against a simulation of live data before Spring Training or any time! Our simulation system replays select completed games allowing you to view our API feeds as if they were happening live. Simulations run every day according to the below schedule. Data is reset for each day's simulations at 12:00pm UTC.
    Quick Access
    Start Time (UTC) Game (Original game date) Game ID
    1:00pm CWS at SEA (9/14/19) b946e7e5-3d02-45ad-a4bc-b0a75832a25e​
    1:00pm MIN at CLE (9/14/19, Game 1 Doubleheader) 6fc55b0d-29a8-43bf-bc08-932366c1dda3
    5:00pm MIN at CLE (9/14/19, Game 2 Doubleheader) 02aef4b5-9025-43b9-bbf6-f29061c025ae
    5:00pm HOU at KC (9/15/19) eaa42c5a-0f07-45e8-8838-b29f6c0300c9
    9:00pm CWS at MIN (9/16/19) 1785193a-599c-45bd-b13b-a3d5e68b4afe
    9:00pm KC at OAK (9/17/19) dff5b8c4-a972-4a44-9b9e-642b1e3fd5a4​
    11:30pm HOU at KC (9/14/19) fb2559d7-12d6-45a3-b991-829283f1a532
    11:30pm CWS at SEA (9/15/19) d5b72bd7-7902-4de2-820d-57d11d7eaffb​
    To retrieve the game IDs, team IDs, and other associated information for each game listed above, you can use the following Daily Schedule URL with the syntax noted below. If you have an existing MLB API key, simply replace the access_level (trial or production) in the URL of a feed with *simulation*.
    Note: The current date must be used when calling the simulation daily schedule.
    Daily Schedule: https://api.sportradar.us/mlb/simulation/`{version}`/en/games/`{year}`/`{month}`/`{day}`/schedule.`{format}`?api_key=`{your_api_key}` Play-by-Play sample: https://api.sportradar.us/mlb/simulation/`{version}`/en/games/1785193a-599c-45bd-b13b-a3d5e68b4afe/pbp.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `version` | Version number of the API you are accessing (Current Version: v5). | | `year` | The current year in 4 digit format (YYYY). *Use 2019 for Seasonal simulation feeds and the current date for Daily feeds*| | `month` | The current month in 2 digit format (MM). | | `day` | The current day of the month in 2 digit format (DD). | | `mlb_season` | Regular Season (REG). | | `format` | xml or json. | | `your_api_key` | Your API key. | Feeds Available: Daily Boxscore, Daily Change Log, Daily Schedule, Daily Summary, Game Boxscore, Game Extended Summary, Game Pitch Metrics, Game Summary, Injuries, League Depth Chart, League Hierarchy, League Schedule, Play By Play, Player Profile, Rankings, Seasonal Pitch Metrics, Seasonal Splits, Seasonal Statistics, Seasonal Transactions, Seasons, Standings, Team Depth Chart, Team Profile, Venues, Push Events, Push Linescores, and Push Statistics. For syntax structure on each feed, please reference the documentation below. ## 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 Provides IDs and timestamps for teams, players, game statistics, schedules, and standings that have been modified on a given date. To receive the data updates, use these unique IDs to pull relevant API feeds.
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 The date, time and location 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
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 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
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 concerning all transactions taking place 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
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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, hits and errors by team, win/loss results, 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 concerning 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 every MLB team.
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 Provides top-level information for each team, including league and division distinction, and venue information.
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/seasons/`{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 Complete schedule information for a given season, including venue and broadcast info.
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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), Postseason (PST), or All-Star Game (AST). | | `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 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
    Runner Placed Created At
    Runner Placed Id
    Runner Placed Official
    Runner Placed Sequence Number
    Runner Placed Status
    Runner Placed Updated At
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 Player biographical information, including current and historical seasonal statistics and 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 postseason 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/seasons/`{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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/seasons/`{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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/seasons/`{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` | Preseason (PRE), Regular Season (REG), or Postseason (PST). | | `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 Postseason participant information as well as the date, time, location, and other event details for every match-up taking place for the entire postseason.
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 Detailed standings information for each MLB division.
    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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/seasons/`{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` | Preseason (PRE), 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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) Provides 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 Provides the name, location, and capacity of each venue, along with 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/trial/v5/en/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/trial/v5/en/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/trial/v5/en/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}`/en/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 scheduled to occur.
    • 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. No makeup game will be played as a result.
    • unnecessary – The series game was scheduled to occur, but will not take place due to one team clinching the series early.
    • 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. The current game and ID will remain the same for the makeup game in the future.
    • suspended - The game has been suspended and will be rescheduled in the future, continuing where they left off. The game ID will remain the same.
    • maintenance - The game failed review and is in the process of being repaired. We would recommend against pulling data for a game while in this status.

    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
    • EP = Eephus
    • 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
    • DUP = Duplicate player profile. All profiles marked as duplicates can be ignored
    • 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
    • kAK = Enforced Strike
    • kF = Foul Ball
    • kFT = Foul Tip
    • kKL = Strike Looking
    • kKS = Strike Swinging
    • oBI = Hitter Interference
    • oDT2 = Double - Tagged out at 2nd
    • 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
    • oST1 = Single - Tagged out at 1st
    • oST2 = Single - Out at 2nd
    • oST3 = Single - Out at 3rd
    • oST4 = Single - Out at Home
    • oTT3 = Triple - Tagged out at 3rd
    • oTT4 = Triple - Out at Home
    • rPABC - Ruling Pending, At Bat Continues
    • rPABO - Ruling Pending, At Bat Over

    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
    • CS2AD3 = Caught stealing 2nd, advanced 3rd
    • CS2AD4 = Caught stealing 2nd, advanced Home
    • CS2AD4u = Caught stealing 2nd, advanced Home, Unearned Run
    • CS3AD4 = Caught stealing 3rd, advanced Home
    • CS3AD4u = Caught stealing 3rd, advanced Home, Unearned Run
    • ERN = Earned Run/RBI
    • eRN = Earned Run/No RBI
    • ERNu - Player earned run, team unearned/RBI
    • eRNu - Player earned run, team unearned/ no RBI
    • URN = Unearned Run/RBI
    • uRN = Unearned Run/No RBI
    • PO = Pickoff
    • POCSC = Catcher Pickoff
    • POCS2 = Pickoff/Caught Stealing 2nd
    • POCS3 = Pickoff/Caught Stealing 3rd
    • POCS4 = Pickoff/Caught Stealing Home
    • AD1 = Advance 1st
    • AD2 = Advance 2nd
    • AD3 = Advance 3rd
    • SB2 = Stole 2nd
    • SB2AD3 = Steal 2nd, advanced 3rd
    • SB2AD4 = Steal 2nd, advanced Home
    • SB2AD4u = Steal 2nd, advanced Home, Unearned Run
    • SB2E4E = Stole 2nd, error to home (earned)
    • SB2O2 = Stole 2nd, out at 2nd
    • SB2O3 = Stole 2nd, out at 3rd
    • SB2O4 = Stole 2nd, out at Home
    • SB3 = Stole 3rd
    • SB3AD4 = Steal 3rd, advanced Home
    • SB3AD4u = Steal 3rd, advanced Home, Unearned Run
    • SB3E4E = Stole 3rd, error to home (earned)
    • SB3O3 = Stole 3rd, out at 3rd
    • SB3O4 = Stole 3rd, out at Home
    • SB4 = Stole Home
    • SB4u = Stole Home, Unearned Run
    • TO = Tag out 1st
    • 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 3rd, 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 and all games?

    A: Pitch speed and location are expected for all games played in all 30 MLB home venues. However, these data points may not be present for all Spring Training venues or for games played in non-MLB venues (example: Williamsport, PA – ID 2c26f3ab-4d19-4b64-93b0-3279b13d7314).

    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.

    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 break the field up into 35 zones. Here is an illustration:

    Q: What Spring Training games will have full pitch-by-pitch data?

    A: We provide full coverage for games at the following Spring Training venues. Please note that these games have the possibility of failover to Sportradar data entry. If this is necessary, we provide boxscore coverage until the game is over.

    Florida Grapefruit League
    • Roger Dean Stadium (Miami and St. Louis)
    • Publix Field at Joker Marchant Stadium (Detroit)
    • CenturyLink Sports Complex (Minnesota)
    • Clover Park (New York Mets)
    • George M. Steinbrenner Field (New York Yankees)
    • BayCare Ballpark (Philadelphia)
    • LECOM Park (Pittsburgh)
    • TD Ballpark (Toronto)
    Arizona Cactus League
    • Salt River Fields at Talking Stick (Arizona and Colorado)

    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: What are the valid transaction_code and transaction_type values?

    A: Here is a list of the valid transaction codes and types:

    • ACT - Activated
    • MIN - Assigned to Minors
    • CL - Claimed
    • CEXP - Contract Expired
    • CEXT - Contract Extension
    • DEC - Deceased
    • FA - Declared Free Agency
    • DFA - Designated for Assignment
    • DRA - Drafted
    • R5 - Drafted Via Rule 5 Draft
    • SUS - League Suspension
    • ABS - Leave of Absence
    • NRI - Non-Roster Invitee
    • NWT - Not with Team
    • TRAN - Other Transaction
    • IL10 - Placed on the 10-Day Injury List
    • IL60 - Placed on the 60-Day Injury List
    • IL7 - Placed on the 7-Day Injured List
    • BRV - Placed on Bereavement List
    • FME - Placed on Family Medical Emergency Leave
    • PL - Placed on Paternity Leave
    • RST - Placed on Restricted List
    • IL15 - Placed on the 15-Day Injury List
    • RSGN - Re-Signed
    • REC - Recalled from Minors
    • RRST - Reinstated from Restricted List
    • RSUS - Reinstated from Suspension
    • REL - Released
    • RET - Retired
    • EDRA - Selected in Expansion Draft
    • SGN - Signed
    • TSUS - Team Suspension
    • TRD - Traded
    • WA - Waived

    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.

    Q: How does Sportradar handle the amended 5.11(a) DH rule, aka the Shohei Ohtani rule?

    ```js "lineup": [ { "id": "80de60c9-74e3-4a50-b128-b3dc7456a254", "inning": 0, "order": 0, "position": 1, "sequence": 1 }, { "id": "80de60c9-74e3-4a50-b128-b3dc7456a254", "inning": 0, "order": 1, "position": 10, "sequence": 2 }, ```

    A: In the event the starting pitcher will bat for himself, the player will be considered two separate people on his team’s opening lineup card, in accordance with the amended rule.

    In the starting ‘lineup’ node, the starting pitcher will appear twice, once as position 1 (Pitcher) and once as position 10 (Designated Hitter).

    If the starting pitcher is replaced, he can continue as the Designated Hitter, and if the Designated Hitter is replaced, he can continue as the pitcher (but can no longer hit for himself). When he is substituted out as a pitcher and remains as a designated hitter, there will be two substitution events.

    Q: Other sports like NBA and NFL have SR_IDs available for entities such as teams and players. How can I access those SR_IDs for MLB?

    We do not support SR_IDs at this time within the MLB API. Our current suggestion is to utilize two of our Odds Comparison Prematch v2 feeds to retrieve this data. For players, please use the Player Mappings endpoint. For games, please use the Sport Event Mappings endpoint. Please note that these feeds will have IDs for a variety of sports that Sportradar covers.

    Q: What events will be logged during a failover game?

    A: During a failover game, you should expect a minimized data point set.

    Event Types
    • 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
    Event Data Points
    • Current Batter
    • Current Pitcher
    • Batter handedness
    • Pitcher handedness
    • Starting Base
    • Ending Base
    • Pitch Outcome
    • Runner Outcome
    • Putouts
    • Assists
    • Errors
    Return to top

    Docs Navigation