MLB v6.6

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 v6.6 Data Entry Workflow
Weather Delay Workflow
Download
Note: Authentication is required for all API calls.
Note: In version 6.6, all roster information that was previously (in version 5) in the Team Rosters feeds is now available in the Team Profile feed.
## 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 10: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: v6.6). | | `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 Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    Current Cloud Cover
    Current Condition
    Current Dew Point (F)
    Current Humidity
    Current OBS Time
    Current Temperature (F)
    Current Wind Direction
    Current Wind Speed (mph)
    Forecasted Cloud Cover
    Forecasted Condition
    Forecasted Dew Point (F)
    Forecasted Humidity
    Forecasted OBS Time
    Forecasted Temperature (F)
    Forecasted Wind Direction
    Forecasted Wind Speed (mph)
    Venue Data Points: Address
    Capacity
    City
    Country
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    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 Loss
    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
    Away Team Win
    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 Loss
    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
    Home Team Win
    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 Errors
    Scoreboard Inning Hits
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Inning 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/v6.6/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/v6.6/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/v6.6/en/games/2014/06/15/boxscore.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Daily Boxscore feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{year}`/`{month}`/`{day}`/boxscore.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/daily-games.xsd 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/v6.6/en/league/2017/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/v6.6/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/v6.6/en/league/2014/06/15/changes.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Daily Change Log feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/`{year}`/`{month}`/`{day}`/changes.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6/changelog.xsd 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 Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Original Start Time
    Reason for Reschedule
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    League Data Points: MLB Alias MLB Id MLB Name
    Series Data Points: Game Number Round
    Venue Data Points: Address
    Capacity
    City
    Country
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/games/2014/06/15/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Daily Schedule feed by replacing 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}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/schedule.xsd 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 Loss
    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
    Away Team Win
    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 Loss
    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
    Home Team Win
    Scoreboard Inning Errors
    Scoreboard Inning Hits
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Inning Runs
    Game Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Broadcast Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    Current Cloud Cover
    Current Condition
    Current Dew Point (F)
    Current Humidity
    Current OBS Time
    Current Temperature (F)
    Current Wind Direction
    Current Wind Speed (mph)
    Forecasted Cloud Cover
    Forecasted Condition
    Forecasted Dew Point (F)
    Forecasted Humidity
    Forecasted OBS Time
    Forecasted Temperature (F)
    Forecasted Wind Direction
    Forecasted Wind Speed (mph)
    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
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings Fielding (complete & partial)
    Innings Fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average Opponents Batting Average on Balls in Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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
    Assists Outfield
    Assists Total
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Innings Fielding (Complete & Partial)
    Innings Fielding (Total Outs)
    Passed Balls
    Putouts
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Hits Allowed per 9 Innings
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average
    Opponents Batting Average on Balls in Play
    Opponents Flyballs
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/games/2014/06/15/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Daily Summary feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{year}`/`{month}`/`{day}`/summary.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/daily-games.xsd 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: Code
    Description
    Effective Date
    Id
    Type
    Updated Date
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/league/2014/06/15/transactions.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Daily Transactions feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/`{year}`/`{month}`/`{day}`/transactions.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 Transactions, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/transactions.xsd 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 Loss
    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
    Away Team Win
    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 Loss
    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
    Home Team Win
    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 Errors
    Scoreboard Inning Hits
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Inning 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
    Broadcast Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    Current Cloud Cover
    Current Condition
    Current Dew Point (F)
    Current Humidity
    Current OBS Time
    Current Temperature (F)
    Current Wind Direction
    Current Wind Speed (mph)
    Forecasted Cloud Cover
    Forecasted Condition
    Forecasted Dew Point (F)
    Forecasted Humidity
    Forecasted OBS Time
    Forecasted Temperature (F)
    Forecasted Wind Direction
    Forecasted Wind Speed (mph)
    Venue Data Points: Address
    Capacity
    City
    Country
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/boxscore.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Game Boxscore feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{game_id}`/boxscore.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/game.xsd Return to API map ## Game Extended Summary Inning-by-inning scoring, key game events, lineups, and team and player statistics for the given game and season-to-date.
    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 Loss
    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
    Away Team Win
    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 Loss
    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
    Home Team Win
    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 Errors
    Scoreboard Inning Hits
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Inning 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
    Broadcast Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    Current Cloud Cover
    Current Condition
    Current Dew Point (F)
    Current Humidity
    Current OBS Time
    Current Temperature (F)
    Current Wind Direction
    Current Wind Speed (mph)
    Forecasted Cloud Cover
    Forecasted Condition
    Forecasted Dew Point (F)
    Forecasted Humidity
    Forecasted OBS Time
    Forecasted Temperature (F)
    Forecasted Wind Direction
    Forecasted Wind Speed (mph)
    Game Official Data Points: Assignment
    Experience
    First Name
    Full Name
    Id
    Last Name
    Lineup Data Points: Batting Order Position
    Fielding Position
    Inning Player Enters
    Player Id
    Sequence
    Play-by-Play Data Points: At Bat Hitter First Name
    At Bat Hitter Id
    At Bat Hitter Jersey Number
    At Bat Hitter Last Name
    At Bat Hitter Preferred Name
    At Bat Pitcher First Name
    At Bat Pitcher Id
    At Bat Pitcher Jersey Number
    At Bat Pitcher Last Name
    At Bat Pitcher Preferred Name
    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
    Errors First Name
    Errors Id
    Errors Jersey Number
    Errors Last Name
    Errors Preferred Name
    Errors Type
    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 First Name
    Hitter Hand
    Hitter Id
    Hitter Jersey Number
    Hitter Last Name
    Hitter Preferred Name
    Inning Half
    Inning Number
    Inning Sequence
    Insert Date/Time
    Pitch Count For Game
    Pitch Flag At Bat Over
    Pitch Flag Bunt
    Pitch Flag Double Play
    Pitch Flag Passed Ball
    Pitch Flag Statistical Hit
    Pitch Flag Triple Play
    Pitch Flag Wild Pitch
    Pitch Id
    Pitch Location X Coordinate
    Pitch Location Y Coordinate
    Pitch Outcome Id
    Pitch Sequence Number
    Pitch Speed
    Pitch Type
    Pitch Zone
    Pitcher Hand
    Pitcher First Name
    Pitcher Id
    Pitcher Jersey Number
    Pitcher Last Name
    Pitcher Preferred Name
    Under Review Flag
    Update Date/Time
    Player Information 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
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings Fielding (complete & partial)
    Innings Fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    Total Chances
    Triple Plays
    Wild Pitches While Catching
    Player Fielding Season to Date Data Points: Assists
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings fielding (complete & partial)
    Innings fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Hitting Season to Date 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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    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
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average Opponents Batting Average on Balls in Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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
    Team Loss
    Team Win
    Total Balls
    Total Bases Allowed
    Total Pitches
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits Per Innings Pitched
    Wild Pitches
    Win
    Player Pitching Season to Date Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned runs Allowed
    Fielders Choice
    Fly Outs
    Fly Outs Into Double Plays
    Foul Balls
    Games Finished
    Games Played
    Games Started
    Ground Out to Air Out Ratio
    Ground Outs
    Ground Outs Into Double Plays
    Hit Batters
    Hits Allowed
    Hits Allowed per 9 Innings
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (comp & part)
    Innings Pitched (total outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs in Double Plays
    Losses
    Opponents at Bat
    Opponents Batting Average
    Opponents Batting Avg on Balls In Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left on Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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
    Team Loss
    Team Win
    Total Balls
    Total Bases Allowed
    Total Pitches
    Total Runs Allowed
    Total Strikeouts
    Total Strikes
    Triples Allowed
    Unearned Runs Allowed
    Walks
    Walks Plus Hits per Innings Pitched
    Wild Pitches
    Win
    Team Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Base
    Team Fielding Data Points: Assists
    Assists Outfield
    Assists Total
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Innings Fielding (Complete & Partial)
    Innings Fielding (Total Outs)
    Passed Balls
    Putouts
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Hits Allowed per 9 Innings
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average
    Opponents Batting Average on Balls in Play
    Opponents Flyballs
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/en/games/521aaa39-96c7-45ee-9840-315ba9390de1/extended_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/v6.6/en/games/521aaa39-96c7-45ee-9840-315ba9390de1/extended_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/v6.6/en/games/521aaa39-96c7-45ee-9840-315ba9390de1/extended_summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Game Extended Summary feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{game_id}`/extended_summary.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 Extended Summary, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/game.xsd Return to API map ## Game Pitch Metrics Detailed metrics on pitch type, velocity, and results for all pitchers in a given game.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Boxscore Information Data Points: Away Team Abbreviation
    Away Team Id
    Away Team Market
    Away Team Name
    Home Team Abbreviation
    Home Team Id
    Home Team Market
    Home Team Name
    Game Information Data Points: Away Team
    Broadcast Cable
    Broadcast Internet
    Broadcast Network
    Broadcast Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Scheduled Start
    Split Squad
    Status
    Player Information Data Points: First Name
    Id
    Jersey Number
    Last Name
    Position
    Preferred Name
    Primary Position
    Status
    Player Pitching Statistics Data Points: Doubles allowed
    Foul balls
    Hits allowed
    Home runs allowed
    Opponents Fly Balls
    Opponents Ground Balls
    Opponents Line Drives
    Opponents Popups
    Pitch Average Speed
    Pitch Average Speed Total
    Pitch Count
    Pitch Count Total
    Pitch Ground Ball to Fly Ball Ratio
    Pitch Ground Ball to Fly Ball Ratio Total
    Pitch Maximum Speed
    Pitch Maximum Speed Total
    Pitch Minimum Speed
    Pitch Minimum Speed Total
    Pitch Type
    Singles allowed
    Strikeouts looking
    Strikeouts swinging
    Strikes looking
    Strikes swinging
    Swings Rate
    Swings Strike Percentage
    Swings Total
    Swings Whiff Rate
    Total Balls
    Total strikeouts
    Total strikes
    Triples allowed
    Venue Information Data Points: Address
    Capacity
    City
    Country
    Description
    Field Orientation
    Id
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/en/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/pitch_metrics.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/v6.6/en/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/pitch_metrics.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/v6.6/en/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/pitch_metrics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Game Pitch Metrics feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{game_id}`/pitch_metrics.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 Pitch Metrics, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/game.xsd 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 Loss
    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
    Away Team Win
    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 Loss
    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
    Home Team Win
    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 Errors
    Scoreboard Inning Hits
    Scoreboard Inning Number
    Scoreboard Inning Sequence
    Scoreboard Inning 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
    Broadcast Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    Current Cloud Cover
    Current Condition
    Current Dew Point (F)
    Current Humidity
    Current OBS Time
    Current Temperature (F)
    Current Wind Direction
    Current Wind Speed (mph)
    Forecasted Cloud Cover
    Forecasted Condition
    Forecasted Dew Point (F)
    Forecasted Humidity
    Forecasted OBS Time
    Forecasted Temperature (F)
    Forecasted Wind Direction
    Forecasted Wind Speed (mph)
    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
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings Fielding (complete & partial)
    Innings Fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average Opponents Batting Average on Balls in Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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
    Assists Outfield
    Assists Total
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Innings Fielding (Complete & Partial)
    Innings Fielding (Total Outs)
    Passed Balls
    Putouts
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Hits Allowed per 9 Innings
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average
    Opponents Batting Average on Balls in Play
    Opponents Flyballs
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Game Summary feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{game_id}`/summary.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/game.xsd Return to API map ## Glossary Full text descriptions for pitch ids, player status ids, outcome ids, and game status ids. ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/league/glossary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Glossary feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/glossary.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Glossary, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/glossary.xsd 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/v6.6/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/v6.6/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/v6.6/en/league/injuries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Injuries feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/injuries.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Injuries, use the following URL. https://feed.elasticstats.com/schema/baseball/v6/injuries.xsd 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/v6.6/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/v6.6/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/v6.6/en/league/depth_charts.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the League Depth Chart feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/depth_charts.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the League Depth Charts, use the following URL. https://feed.elasticstats.com/schema/baseball/v6/depth-charts.xsd 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
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/league/hierarchy.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the League Hierarchy feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/hierarchy.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for League Hierarchy use the following URL. https://feed.elasticstats.com/schema/baseball/v6/mlb/hierarchy.xsd 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 Hitting Doubles
    Player Hits
    Player Hitting Home Runs
    Player Hitting Runs Batted In
    Player Hitting Runs Scored
    Player Hitting Triples
    Player Pitching Complete Games
    Player Pitching Earned Run Average
    Player Pitching Games Lost
    Player Pitching Saves
    Player Pitching Total Strikeouts
    Player Pitching WHIP
    Player Pitching Wins
    Team Baserunning Stolen Bases
    Team Hitting Batting Average
    Team Hitting Doubles
    Team Hits
    Team Hitting Home Runs
    Team Hitting Runs Batted In
    Team Hitting Runs Scored
    Team Hitting Triples
    Team Pitching Complete Games
    Team Pitching Earned Run Average
    Team Pitching Games Lost
    Team Pitching Saves
    Team Pitching Total Strikeouts
    Team Pitching WHIPS
    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/v6.6/en/seasons/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/v6.6/en/seasons/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/v6.6/en/seasons/2014/REG/leaders/statistics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the League Leaders feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{mlb_season}`/leaders/statistics.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6/leaders.xsd 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 Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Original Start Time
    Reason for Reschedule
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    Series Data Points: Game Number Round
    Venue Data Points: Address
    Capacity
    City
    Country
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/games/2014/REG/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the League Schedule feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{season_year}`/`{mlb_season}`/schedule.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/schedule.xsd 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
    Broadcast Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    Current Cloud Cover
    Current Condition
    Current Dew Point (F)
    Current Humidity
    Current OBS Time
    Current Temperature (F)
    Current Wind Direction
    Current Wind Speed (mph)
    Forecasted Cloud Cover
    Forecasted Condition
    Forecasted Dew Point (F)
    Forecasted Humidity
    Forecasted OBS Time
    Forecasted Temperature (F)
    Forecasted Wind Direction
    Forecasted Wind Speed (mph)
    Lineup Data Points: Batting Order Position
    Description
    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 Hitter First Name
    At Bat Hitter Hand
    At Bat Hitter Id
    At Bat Hitter Jersey Number
    At Bat Hitter Last Name
    At Bat Hitter Preferred Name
    At Bat Id
    At Bat Pitcher First Name
    At Bat Pitcher Hand
    At Bat Pitcher Id
    At Bat Pitcher Jersey Number
    At Bat Pitcher Last Name
    At Bat Pitcher Preferred Name
    At Bat Play Description
    At Bat Sequence Number
    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
    Error Player First Name
    Error Id
    Error Player Jersey Number
    Error Player Last Name
    Error Player Preferred Name
    Error Type
    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 First Name
    Hitter Hand
    Hitter Id
    Hitter Jersey Number
    Hitter Last Name
    Hitter Preferred Name
    Inning Half
    Inning Number
    Inning Sequence
    Insert Date/Time
    Pitch Count For Game
    Pitch Flag At Bat Over
    Pitch Flag Bunt
    Pitch Flag Double Play
    Pitch Flag Passed Ball
    Pitch Flag Statistical Hit
    Pitch Flag Triple Play
    Pitch Flag Wild Pitch
    Pitch Id
    Pitch Location X Coordinate
    Pitch Location Y Coordinate
    Pitch Outcome Id
    Pitch Sequence Number
    Pitch Speed
    Pitch Type
    Pitch Zone
    Pitcher First Name
    Pitcher Hand
    Pitcher Id
    Pitcher Jersey Number
    Pitcher Last Name
    Pitcher Preferred Name
    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
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/games/d4f1ecee-8318-42e7-8ce9-90411d089dfa/pbp.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Play-By-Play feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/games/`{game_id}`/pbp.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/pbp.xsd 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
    Draft Pick
    Draft Round
    Draft Team Id
    Draft Year
    First Name
    Full Name
    Height
    High School
    Id
    Jersey Number
    Last Name
    Mlbam Id
    Name Suffix
    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 Team Loss
    Away Games Team Win
    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 Team Loss
    By Month Team Win
    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 Team Loss
    By Opponent Team Win
    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 Team Loss
    By Surface Team Win
    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 Team Loss
    By Venue Team Win
    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 Team Loss
    Day Games Team Win
    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 Game Team Loss
    Home Game Team Win
    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 Team Loss
    Night Games Team Win
    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
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings Fielding (complete & partial)
    Innings Fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown saves
    Complete game
    Dirt balls
    Doubles allowed
    Earned Run Average
    Earned runs allowed
    Errors
    Fielders choice
    Fielding Independent Pitching
    Fly outs
    Fly outs into double plays
    Foul balls
    Games Finished
    Games Played
    Games Started
    Ground Out to Air Out Ratio
    Ground outs
    Ground outs into double plays
    Hit batters
    Hits allowed
    Hits Allowed per 9 Innings
    Holds
    Home runs allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings pitched (complete & partial)
    Innings pitched (total outs)
    Intentional balls
    Intentional walks
    Line outs
    Line outs in double plays
    Losses
    Opponents at Bat
    Opponents batting average
    Opponents Batting Average on Balls In Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents runners left on base
    Opponents Slugging Percentage
    Pickoff
    Pitch count
    Pitch Average Speed
    Pitch Average Speed Total
    Pitch Count
    Pitch Count Total
    Pitch Ground Ball to Fly Ball Ratio
    Pitch Ground Ball to Fly Ball Ratio Total
    Pitch Maximum Speed
    Pitch Maximum Speed Total
    Pitch Minimum Speed
    Pitch Minimum Speed Total
    Pitch Type
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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
    Swings Rate
    Swings Strike Percentage
    Swings Total
    Swings Whiff Rate
    Total Balls
    Total bases allowed
    Total Pitches
    Total runs allowed
    Total strikeouts
    Total strikes
    Total strikes
    Triples allowed
    Unearned runs allowed
    Walks
    Walks plus hits per innings pitched
    Wild Pitches
    Win
    Player Statcast Hitting Statistics Data Points: Barreled Ball Average
    Barreled Ball Count
    Barreled Ball Maximum
    Barreled Ball Minimum
    Distance Average
    Distance Count
    Distance Maximum
    Distance Minimum
    Generated Speed Average
    Generated Speed Count
    Generated Speed Maximum
    Generated Speed Minimum
    Hang Time Average
    Hang Time Count
    Hang Time Maximum
    Hang Time Minimum
    Homerun Distance Average
    Homerun Distance Count
    Homerun Distance Maximum
    Homerun Distance Minimum
    Launch Angle Average
    Launch Angle Count
    Launch Angle Maximum
    Launch Angle Minimum
    Launch Speed Average
    Launch Speed Count
    Launch Speed Maximum
    Launch Speed Minimum
    Launch Spin Rate Average
    Launch Spin Rate Count
    Launch Spin Rate Maximum
    Launch Spin Rate Minimum
    Max Height Average
    Max Height Count
    Max Height Maximum
    Max Height Minimum
    Travel Distance Average
    Travel Distance Count
    Travel Distance Maximum
    Travel Distance Minimum
    Travel Time Average
    Travel Time Count
    Travel Time Maximum
    Travel Time Minimum
    Player Statcast Pitching Statistics Data Points: Effective Speed Average
    Effective Speed Count
    Effective Speed Maximum
    Effective Speed Minimum
    Generated Speed Average
    Generated Speed Count
    Generated Speed Maximum
    Generated Speed Minimum
    Launch Angle Average
    Launch Angle Count
    Launch Angle Maximum
    Launch Angle Minimum
    Launch Speed Average
    Launch Speed Count
    Launch Speed Maximum
    Launch Speed Minimum
    Pitch Type
    Release Extension Average
    Release Extension Count
    Release Extension Maximum
    Release Extension Minimum
    Release Speed Average
    Release Speed Count
    Release Speed Maximum
    Release Speed Minimum
    Release Spin Rate Average
    Release Spin Rate Count
    Release Spin Rate Maximum
    Release Spin Rate Minimum
    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/v6.6/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/v6.6/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/v6.6/en/players/12831550-c4ba-463b-9847-6ba08b1eb462/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Player Profile feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/players/`{player_id}`/profile.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/profile.xsd 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/v6.6/en/seasons/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/v6.6/en/seasons/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/v6.6/en/seasons/2014/REG/rankings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Rankings feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{mlb_season}`/rankings.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6/mlb/rankings.xsd Return to API map ## Seasonal Pitch Metrics Detailed metrics on pitch type, velocity, and results for a given pitcher by season.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Information Data Points: Season Id Season Type Season Year
    Player Information 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 Pitching Statistics Data Points: Doubles allowed
    Foul balls
    Hits allowed
    Home runs allowed
    Opponents Fly Balls
    Opponents Ground Balls
    Opponents Line Drives
    Opponents Popups
    Pitch Average Speed
    Pitch Average Speed Total
    Pitch Count
    Pitch Count Total
    Pitch Ground Ball to Fly Ball Ratio
    Pitch Ground Ball to Fly Ball Ratio Total
    Pitch Maximum Speed
    Pitch Maximum Speed Total
    Pitch Minimum Speed
    Pitch Minimum Speed Total
    Pitch Type
    Singles allowed
    Strikeouts looking
    Strikeouts swinging
    Strikes looking
    Strikes swinging
    Swings Rate
    Swings Strike Percentage
    Swings Total
    Swings Whiff Rate
    Total Balls
    Total strikeouts
    Total strikes
    Triples allowed
    Team Information Data Points: Abbreviation
    Id
    Market Name
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/en/players/12831550-c4ba-463b-9847-6ba08b1eb462/pitch_metrics.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/v6.6/en/players/12831550-c4ba-463b-9847-6ba08b1eb462/pitch_metrics.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/v6.6/en/players/12831550-c4ba-463b-9847-6ba08b1eb462/pitch_metrics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Seasonal Pitch Metrics feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/players/`{player_id}`/pitch_metrics.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 Seasonal Pitch Metrics use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/profile.xsd 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 Team Loss
    Away Games Team Win
    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 Team Loss
    By Month Team Win
    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 Team Loss
    By Opponent Team Win
    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 Team Loss
    By Surface Team Win
    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 Team Loss
    By Venue Team Win
    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 Team Loss
    Day Games Team Win
    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 Team Loss
    Home Games Team Win
    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 Team Loss
    Night Games Team Win
    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/v6.6/en/seasons/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/v6.6/en/seasons/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/v6.6/en/seasons/2014/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/splits.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Seasonal Splits feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{mlb_season}`/teams/`{team_id}`/splits.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6/statistics.xsd 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
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings Fielding (complete & partial)
    Innings Fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average Opponents Batting Average on Balls in Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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
    Assists Outfield
    Assists Total
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Innings Fielding (Complete & Partial)
    Innings Fielding (Total Outs)
    Passed Balls
    Putouts
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Hits Allowed per 9 Innings
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average
    Opponents Batting Average on Balls in Play
    Opponents Flyballs
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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/v6.6/en/seasons/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/v6.6/en/seasons/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/v6.6/en/seasons/2013/REG/teams/25507be1-6a68-4267-bd82-e097d94b359b/statistics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Seasonal Statistics feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{mlb_season}`/teams/`{team_id}`/statistics.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/statistics.xsd Return to API map ## Seasonal Transactions Information concerning all transactions taking place in a given MLB season.
    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: Code
    Description
    Effective Date
    Id
    Season Year
    Type
    Updated Date
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/en/league/2017/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/v6.6/en/league/2017/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/v6.6/en/league/2017/transactions.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Seasonal Transactions feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/`{year}`/transactions.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `year` | Year in 4 digit format (YYYY). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Seasonal Transactions use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/transactions.xsd 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 Radio
    Broadcast Satellite
    Coverage
    Double Header
    Day/Night Flag
    Home Team
    Id
    Number
    Original Start Time
    Reason for Reschedule
    Reference
    Scheduled Start
    Scheduled TBD Flag
    Split Squad
    Status
    League Data Points: MLB Alias
    MLB Id
    MLB Name
    Season Id
    Season Type
    Season Year
    Series Data Points: Best Of
    Participant Name
    Game Number
    Series Id
    Round
    Series Round
    Series Win
    Start Date
    Status
    Title
    Team Data Points: Abbreviation
    Id
    Market Name
    Venue Data Points: Address
    Capacity
    City
    Country
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/series/2014/REG/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Series Schedule feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/series/`{season_year}`/`{mlb_season}`/schedule.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/series.xsd Return to API map ## Series Statistics Detailed series-to-date stats for a given team and all players on the roster.
    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 Info 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
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings Fielding (complete & partial)
    Innings Fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average Opponents Batting Average on Balls in Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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: Best of #
    Series Id
    Series Round
    Series Start Date
    Series Status
    Series Title
    Team Info Data Points: Abbreviation
    Id
    Market Name
    Team Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Base
    Team Fielding Data Points: Assists
    Assists Outfield
    Assists Total
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Innings Fielding (Complete & Partial)
    Innings Fielding (Total Outs)
    Passed Balls
    Putouts
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Hits Allowed per 9 Innings
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average
    Opponents Batting Average on Balls in Play
    Opponents Flyballs
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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/v6.6/en/series/1316d0da-dfe7-4959-b32a-a5e7582b2928/teams/93941372-eb4c-4c40-aced-fe3267174393/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/v6.6/en/series/1316d0da-dfe7-4959-b32a-a5e7582b2928/teams/93941372-eb4c-4c40-aced-fe3267174393/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/v6.6/en/series/1316d0da-dfe7-4959-b32a-a5e7582b2928/teams/93941372-eb4c-4c40-aced-fe3267174393/statistics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Series Statistics feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/series/`{series_id}`/teams/`{team_id}`/statistics.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `series_id` | Id of a given series. | | `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 Series Statistics use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/statistics.xsd Return to API map ## Series Summary Team and player statistics for a given postseason series.
    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 Info 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
    Assists Outfield
    Assists Total
    Complete Games
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Games Finished
    Games Played
    Games Started
    Innings Fielding (complete & partial)
    Innings Fielding (total outs)
    Passed Balls
    Position
    Putouts
    Range Factor
    Steal Caught
    Steal Percentage
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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 Balls
    Total Bases
    Total Runs Scored
    Total Strikeouts
    Total Strikes
    Triples
    Two Out RBI
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Player Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Game
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average Opponents Batting Average on Balls in Play
    Opponents Fly Balls
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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: Best of #
    Series Id
    Series Round
    Series Start Date
    Series Status
    Series Title
    Team Info Data Points: Abbreviation
    Id
    Market Name
    Team Baserunning Data Points: Caught Stealing Stolen Base Percentage Stolen Base
    Team Fielding Data Points: Assists
    Assists Outfield
    Assists Total
    Double Plays
    Errors
    Errors Fielding
    Errors Interference
    Errors Throwing
    Errors Total
    Fielding Percentage
    Innings Fielding (Complete & Partial)
    Innings Fielding (Total Outs)
    Passed Balls
    Putouts
    Steal Caught
    Steal Percentage
    Steal Pickoff
    Stolen Bases Allowed
    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
    Cycle
    Dirt Balls Faced
    Doubles
    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
    Pickoff
    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
    Walks
    Walks Per Plate Appearance
    Walks Per Strikeout
    Team Pitching Data Points: Balks
    Balls
    Batters Faced
    Batters Faced per Inning Played
    Batters Faced per Start
    Bequeathed Runners
    Bequeathed Runners Allowed
    Blown Saves
    Complete Games
    Dirt Balls
    Doubles Allowed
    Earned Run Average
    Earned Runs Allowed
    Errors
    Fielders Choice
    Fielding Independent Pitching
    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
    Hits Allowed per 9 Innings
    Holds
    Home Runs Allowed
    Home Runs Allowed per 9 Innings
    Inherited Runners
    Inherited Runners Allowed
    Innings Pitched (Complete & Partial)
    Innings Pitched (Total Outs)
    Intentional Balls
    Intentional Walks
    Line Outs
    Line Outs In Double Plays
    Losses
    Opponents at Bats
    Opponents Batting Average
    Opponents Batting Average on Balls in Play
    Opponents Flyballs
    Opponents Ground Ball to Fly Ball Ratio
    Opponents Ground Balls
    Opponents Line Drives
    Opponents On Base Percentage
    Opponents Popups
    Opponents Runners Left On Base
    Opponents Slugging Percentage
    Pickoff
    Pitch Count
    Pitches per Batter Faced
    Pitches per Inning Played
    Pitches per Start
    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 Balls
    Total Bases Allowed
    Total Pitches
    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/v6.6/en/series/1316d0da-dfe7-4959-b32a-a5e7582b2928/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/v6.6/en/series/1316d0da-dfe7-4959-b32a-a5e7582b2928/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/v6.6/en/series/1316d0da-dfe7-4959-b32a-a5e7582b2928/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Series Summary feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/series/`{series_id}`/summary.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `series_id` | Id of a given series. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Series Summary use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/statistics.xsd 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
    Spring Leagues Alias
    Spring Leagues Id
    Spring Leagues Name
    Standings Data Points: American League Losses
    American League Wins
    Away Losses
    Away Wins
    Central Losses
    Central Wins
    Division Elimination Number
    Division Rank
    Eastern Losses
    Eastern Wins
    Elimination Number
    Games Back
    Home Losses
    Home Wins
    Last 10 Losses
    Last 10 Wins
    League Rank
    National League Losses
    National League Wins
    Overall Losses
    Overall Winning Percentage
    Overall Wins
    Streak
    Western Losses
    Western Wins
    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/v6.6/en/seasons/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/v6.6/en/seasons/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/v6.6/en/seasons/2014/REG/standings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Standings feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{mlb_season}`/standings.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/mlb/standings.xsd Return to API map ## Statcast Leaders Statcast leader information for various hitting and pitching statistics.
    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
    Rank
    Status
    Statcast Leaders Data Points: Hitting Barreled Ball
    Hitting Distance
    Hitting Generated Speed
    Hitting Hang Time
    Hitting Homerun Distance
    Hitting Launch Angle
    Hitting Launch Speed
    Hitting Launch Spin Rate
    Hitting Max Height
    Hitting Travel Distance
    Hitting Travel Time
    Leading Game Id
    Opposing Player First Name
    Opposing Player Id
    Opposing Player Jersey Number
    Opposing Player Last Name
    Opposing Player Position
    Opposing Player Preferred Name
    Opposing Player Primary Position
    Opposing Player Status
    Pitching Effective Speed
    Pitching Generated Speed
    Pitching Launch Angle
    Pitching Launch Speed
    Pitching Release Extension
    Pitching Release Speed
    Pitching Release Spin Rate
    Player Count Value
    Player Maximum Value
    Player Minimum Value
    Unit Type
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/en/seasons/2019/REG/leaders/statcast.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/v6.6/en/seasons/2019/REG/leaders/statcast.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/v6.6/en/seasons/2019/REG/leaders/statcast.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Statcast Leaders feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{mlb_season}`/leaders/statcast.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 Statcast Leaders use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/statcast_leaders.xsd Return to API map ## Team Depth Chart Current depth chart 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/v6.6/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/v6.6/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/v6.6/en/teams/25507be1-6a68-4267-bd82-e097d94b359b/depth_chart.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Team Depth Charts feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/teams/`{team_id}`/depth_chart.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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, use the following URL. https://feed.elasticstats.com/schema/baseball/v6/team.xsd 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
    Disabled List
    First Name
    Full Name
    Height
    High School
    Id
    Jersey Number
    Last Name
    Mlbam Id
    Name Suffix
    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
    Field Orientation
    Id
    Latitude
    Longitude
    Market
    Name
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/teams/25507be1-6a68-4267-bd82-e097d94b359b/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Team Profile feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/teams/`{team_id}`/profile.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `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 use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/team.xsd 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
    Field Orientation
    Id
    Latitude
    Left Centerfield Distance
    Left Field Distance
    Longitude
    Market
    Middle Left Centerfield Distance
    Middle Left Field Distance
    Middle Right Centerfield Distance
    Middle Right Field Distance
    Name
    Right Centerfield Distance
    Right Field Distance
    Stadium Type
    State
    Surface
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/v6.6/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/v6.6/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/v6.6/en/league/venues.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Venues feed by replacing the parameters in the following URL: https://api.sportradar.us/mlb/`{access_level}`/`{version}`/en/league/venues.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Venues use the following URL. https://feed.elasticstats.com/schema/baseball/v6.6/venues.xsd Return to API map ## Push Feeds >To best utilize Push feeds, we have included code samples in Ruby, Java and Python which provide an example of a way you can consume the feeds. Using these samples will output the feeds content to STDOUT.
    For Java, we have also provided a Stream Client to assist your integration.

    Note: In the provided Java sample, replace "URL GOES HERE" with the desired Push feed URL. ```ruby require 'httpclient' module Sportradar module HTTP module Stream class Client attr_reader :url, :logger def initialize(url, publisher, logger) @url = url @logger = logger @publisher = publisher @client = ::HTTPClient.new(:agent_name => 'SportsData/1.0') end def start @thread ||= Thread.new do logger.debug "Starting loop" @client.get_content(url, :follow_redirect => true) do |chunk| @publisher.publish(::JSON.parse(chunk)) if @publisher end logger.debug "finished loop" end end def stop @thread.terminate if @thread end end end end end ``` ```java package com.sportradar.http.stream.client; import org.junit.After; import org.junit.Before; import org.junit.Test; public class StreamClientTest { private StreamClient client; private static String SERVICE_URL = ""; @Before public void setup() { client = new StreamClient(); } @After public void cleanup() { client.terminate(); } @Test public void testStream() throws Exception { Handler handler = new ConsoleHandler(); client.stream(SERVICE_URL, handler); System.out.println("Connecting...."); Thread.sleep(1 * 60 * 1000); System.out.println("Disconnecting...."); } } ``` Some of our APIs include Push feeds that allow you to get updates as soon as they are available. Push API feeds automatically send JSON payload to you via a push service, and can dramatically reduce the number of calls you need to make to our RESTful API feeds. The structure of the Push feeds are similar to the structure of the corresponding RESTful API feed (i.e. Push Boxscore, Push Events, and Push Statistics). The push service ensures reliable and efficient delivery of the most up to date information. Our Push services are based on a HTTP publish/subscribe model. When making a call to the Push APIs, you "subscribe" to various data feeds provided by our service; whenever new content is available on one of those feeds, the server pushes that information out to your client. When no new information is available on the feed, a heartbeat message is sent every 5 seconds to keep the connection active. If you want to filter the results of the feeds, there are several optional query string parameters that can be applied to the API call. If left unfiltered, than all data for the feed is displayed (i.e. all games, events, or statistics). For your applications to accept data from our Push feeds, ensure that your application can: * Can follow a HTTP redirect or use the location provided in the feeds header within one minute of your initial request. * Can accept HTTP data transfer encoded as chunked. Our Push service does not provide a "stateful session", there is no memory of what data has been sent previously. If you are disconnected from the Push session, you can use the RESTful API to catch up or recover from the disconnection. Syntax for using our Push feeds and examples of the JSON payloads can be found below. ## Push Events ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/stream/en/events/subscribe?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 requests import json r = requests.get("https://api.sportradar.com/mlb/trial/stream/en/events/subscribe", params = {'api_key': 'your_api_key'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.us/mlb/trial/stream/en/events/subscribe?api_key={your_api_key}' ``` > The above command returns json like this. > Click on the following links to find samples of enforced strikes or balls due to time clock violations. Automatic Ball - Automatic Strike Provides detailed, real-time information on every game event. https://api.sportradar.us/mlb/`{access_level}`/stream/`{language_code}`/events/subscribe?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 (production), Trial (trial) or Simulation (simulation). | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters: ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/stream/en/events/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a") 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 requests import json r = requests.get("https://api.sportradar.com/mlb/trial/stream/en/events/subscribe", params = {'api_key': 'your_api_key', 'status': 'inprogress', 'match': 'match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.us/mlb/trial/stream/en/events/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a' ``` In addition to the URL parameters listed above, you can filter the Events information with one or more of the following optional query string parameters.
    Note: Optional query string parameters must be added after your API key with an ampersand (&). If you are filtering for more than one result, separate the results with a comma (,) and no spaces.
    Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `event_category` | Event category expressed as: stolenbase, runneradvancement, hit, single, double, triple, homerun, strikeout, walk, out, double_play, triple_play, atbatover, runscored, or halfover.
    Example: event_category=hit | | `event_type` | Event type expressed as: atbat, pitch, steal, lineup, warmup, or event_over.
    Example: event_type=atbat_id | | `inning_half` | Inning half expressed as: T or B.
    Example: inning_half=T | | `inning` | Inning expressed as an integer.
    Example: inning=9 | | `match` | Game id expressed as: sd:match:{game_id}.
    Example: match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a | | `player` | Player id expressed as: sd:player:{player_id}
    Example: player=sd:player:56da7cb9-5975-46cd-8c63-96fce1245945 | | `stats_category` | Stats category expressed as: fielding, hitting, or pitching
    Example: stats_category=pitching | | `stats_type` | Stats type expressed as: player or team.
    Example stats_type=player | | `status` | Status type expressed as: inprogress or created.
    Example: status=inprogress | | `team` | Team id expressed as: sd:team:{team_id}.
    Example: team=sd:team:25507be1-6a68-4267-bd82-e097d94b359b | Return to API map ## Push Linescores ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/stream/en/linescore/subscribe?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 requests import json r = requests.get("https://api.sportradar.com/mlb/trial/stream/en/linescore/subscribe", params = {'api_key': 'your_api_key'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.us/mlb/trial/stream/en/linescore/subscribe?api_key={your_api_key}' ``` > The above command returns json like this. Provides real-time high level scoring by inning. https://api.sportradar.us/mlb/`{access_level}`/stream/`{language_code}`/linescore/subscribe?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 (production), Trial (trial) or Simulation (simulation). | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters: ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/stream/en/linescore/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a") 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 requests import json r = requests.get("https://api.sportradar.com/mlb/trial/stream/en/linescore/subscribe", params = {'api_key': 'your_api_key', 'status': 'inprogress', 'match': 'sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.us/mlb/trial/stream/en/linescore/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a' ``` In addition to the URL parameters listed above, you can filter the Boxscore information with one or more of the following optional query string parameters.
    Note: Optional query string parameters must be added after your API key with an ampersand (&). If you are filtering for more than one result, separate the results with a comma (,) and no spaces.
    Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `match` | Game id expressed as: sd:match:{game_id}.
    Example: match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a | | `status` | Status type expressed as: inprogress or created.
    Example: status=inprogress | Return to API map ## Push Probable Pitchers ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.com/mlb/trial/stream/en/probables/subscribe?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 requests import json r = requests.get("https://api.sportradar.com/mlb/trial/stream/en/probables/subscribe", params = {'api_key': 'your_api_key'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.com/mlb/trial/stream/en/probables/subscribe?api_key={your_api_key}' ``` > The above command returns json like this. Provides real-time updates to probable pitchers for upcoming games. https://api.sportradar.com/mlb/`{access_level}`/stream/`{language_code}`/probables/subscribe?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 (production) or Trial (trial). | | `your_api_key` | Your API key. | Return to top ## Push Statistics ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/stream/en/statistics/subscribe?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 requests import json r = requests.get("https://api.sportradar.com/mlb/trial/stream/en/statistics/subscribe", params = {'api_key': 'your_api_key'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.us/mlb/trial/stream/en/statistics/subscribe?api_key={your_api_key}' ``` > The above command returns json like this. Provides real-time game stats at the player level for all live games. https://api.sportradar.us/mlb/`{access_level}`/stream/`{language_code}`/statistics/subscribe?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 (production), Trial (trial) or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v6.6). | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters: ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/mlb/trial/stream/en/statistics/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a") 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 requests import json r = requests.get("https://api.sportradar.com/mlb/trial/stream/en/statistics/subscribe", params = {'api_key': 'your_api_key', 'status': 'inprogress', 'match': 'sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.us/mlb/trial/stream/en/statistics/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a' ``` In addition to the URL parameters listed above, you can filter the Statistics information with one or more of the following optional query string parameters.
    Note: Optional query string parameters must be added after your API key with an ampersand (&). If you are filtering for more than one result, separate the results with a comma (,) and no spaces.
    Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `match` | Game id expressed as: sd:match:{game_id}.
    Example: match=sd:match:7779b2fe-70ad-4823-8c6d-9e2453576e2a | | `player` | Player id expressed as: sd:player:{player_id}
    Example: player=sd:player:56da7cb9-5975-46cd-8c63-96fce1245945 | | `stats_category` | Stats category expressed as: fielding, hitting, or pitching
    Example: stats_category=pitching | | `stats_type` | Stats type expressed as: player or team.
    Example stats_type=player | | `status` | Status type expressed as: inprogress or created.
    Example: status=inprogress | | `team` | Team id expressed as: sd:team:{team_id}.
    Example: team=sd:team:25507be1-6a68-4267-bd82-e097d94b359b | 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. As well, we provide overall total statistics that covers the whole season.

    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: Why are some data points missing for years prior to 2018?

    A: In version 6.5 we added several data points that we previously have not collected data for. Those statistics will appear only for 2018 forward.

    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 Injured List
    • D10 = 10 Day Injured List
    • D15 = 15 Day Injured List
    • D60 = 60 Day Injured 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
    • D15
    • 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: 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: 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. Graphically, here is how it looks

    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: 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: 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: 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