NBA G League v5

API API Version Failover
G League v5 Failover Details
Failover Summary
Note: Authentication is required for all API calls.
## G League API Map To best utilize the NBA G League API v5, 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 a team's leader in assists for a given game: >
  1. Call the season or series schedule and find the Game Id for the chosen game
  2. Call the Game Boxscore using the Game Id
  3. Find the Team Assists Leader statistics and locate the player full_name attribute
>The name of the team's leader in assists is displayed. >
    >To find a player's average points per game: >
    1. Call the season or series schedule and find id for the team the player is on
    2. Call the Team Profile using the Team ID
    3. Locate the Player ID for your chosen player and call the Player Profile.
    4. Find the average element with the points attribute
    >The players's average points are displayed. The primary feeds require only a date or season to call the endpoints. Those feeds provide Game, Team, or Player Ids which can be used to generate the game, team, and player feeds. All of the other feeds require no variables. ## Coverage Levels We provide two different levels of detail to ensure maximum coverage. We combine coverage levels with the correct feeds to ensure you are getting the most comprehensive data offering in the most efficient manner possible. Extended Boxscore – We provide scores, time remaining, and team leaders (assists, points, and rebounds), in a timely manner, as the game progresses. We provide team and player-level data for the game within 30 minutes of the official results being posted. Full – We provide live play-by-play coverage for the entire game. We provide updated scores and time remaining as well as team- and player-level data in near real time. Full coverage is available for all regular and post season games.
    Note: Preseason coverage of G League games may vary. Due to data-entry coverage (from venue) not being available, some games may be covered via our extended boxscore coverage.
    ## Daily Change Log Information on any changes made to teams, players, game statistics, and standings.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Info Data Points: Game Id Last Updated
    League Info Data Points: League Alias
    League Id
    League Name Season Id
    Player Data Points: Full Name
    Id
    Last Modified
    Reference
    SR Id
    Team Data Points: Id
    Last Modified
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/league/2018/07/05/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", "/nbdl/trial/v5/en/league/2018/07/05/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/nbdl/trial/v5/en/league/2018/07/05/changes.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Daily Change Log. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/league/`{year}`/`{month}`/`{day}`/changes.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day 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. http://feed.elasticstats.com/schema/basketball/changelog-v2.0.xsd Return to API map ## Daily Schedule Date, time, location, and other event details for every match-up taking place in the league defined day.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Info Data Points: Away Team Alias
    Away Team Id
    Away Team Name
    Away Team Points
    Away Team Reference
    Away Team Rotation Number
    Away Team Seed Number
    Away Team SR Id
    Broadcast Cable
    Broadcast Channel
    Broadcast Internet
    Broadcast Locale
    Broadcast Network
    Broadcast Radio
    Broadcast Satellite
    Broadcast Type
    Broadcast URL
    Game Coverage
    Game Id
    Game Reference
    Game SR Id
    Game Status
    Game Title
    Home Team Alias
    Home Team Id
    Home Team Name
    Home Team Points
    Home Team Reference
    Home Team Rotation Number
    Home Team Seed Number
    Home Team SR Id
    Neutral Site
    Scheduled Date
    Scheduled Date and Time
    Time Zones Away Team
    Time Zones Home Team
    Time Zones Venue
    Track on Court
    League Info Data Points: League Alias League Id League Name
    Venue Info Data Points: Address
    Capacity
    City
    Country
    Description
    Name
    SR Id
    State
    Id
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/games/2018/07/05/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", "/nbdl/trial/v5/en/games/2018/07/05/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/nbdl/trial/v5/en/games/2018/07/05/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. To access the Daily Schedule, use the following URL: https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/games/`{year}`/`{month}`/`{day}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day 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. http://feed.elasticstats.com/schema/basketball/schedule-v5.0.xsd Return to API map ## Daily Transfers Information for all transfers added or edited during the league defined day.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: League Alias League Id League Name
    Player Info Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Transfers Description
    Transfers Effective Date
    Transfers End Date
    Transfers Id
    Transfers New Team Id
    Transfers New Team Market
    Transfers New Team Name
    Transfers New Team Reference
    Transfers New Team SR Id
    Transfers Notes
    Transfers Old Team Id
    Transfers Old Team Market
    Transfers Old Team Name
    Transfers Old Team Reference
    Transfers Old Team SR Id
    Transfers Start Date
    Transfers Update Date
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/league/2018/07/05/transfers.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", "/nbdl/trial/v5/en/league/2018/07/05/transfers.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/nbdl/trial/v5/en/league/2018/07/05/transfers.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Daily Transfers. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/league/`{year}`/`{month}`/`{day}`/transfers.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day 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 Transfers, use the following URL. http://feed.elasticstats.com/schema/basketball/transfers-v2.0.xsd Return to API map ## Free Agents Information for all NBA free agents.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: League Alias League Id League Name
    Player Info Data Points: Abbreviated Name
    Birth Date
    Birth Place
    College
    Experience
    First Name
    Full Name
    Height (in)
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Status
    Updated
    Weight (lbs)
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/league/free_agents.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", "/nbdl/trial/v5/en/league/free_agents.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/nbdl/trial/v5/en/league/free_agents.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Free Agents. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/league/free_agents.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Free Agents, use the following URL. http://feed.elasticstats.com/schema/basketball/free-agents-v2.0.xsd Return to API map ## Game Boxscore Top-level team scores by quarter, along with full statistics for each team‘s leaders in points, rebounds, and assists.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Info Data Points: Away Team Id
    Entry Mode
    Game Clock
    Game Coverage
    Game Duration
    Game Id
    Game Quarter
    Game Reference
    Game SR Id
    Game Status
    Game Title
    Home Team Id
    Neutral Site
    Scheduled Date And Time
    Time Zones Away Team
    Time Zones Home
    Time Zones Venue
    Track on Court
    Boxscore Data Points: Attendance
    Lead Changes
    Scoreboard - Away Team Bonus
    Scoreboard - Away Team Game Score
    Scoreboard - Away Team Id
    Scoreboard - Away Team Market
    Scoreboard - Away Team Name
    Scoreboard - Away Team Overtime Score
    Scoreboard - Away Team Quarter Score
    Scoreboard - Away Team Reference
    Scoreboard - Away Team SR Id
    Scoreboard - Home Team Bonus
    Scoreboard - Home Team Flag
    Scoreboard - Home Team Game Score
    Scoreboard - Home Team Id
    Scoreboard - Home Team Market
    Scoreboard - Home Team Name
    Scoreboard - Home Team Overtime Score
    Scoreboard - Home Team Quarter Score
    Scoreboard - Home Team Reference
    Scoreboard - Home Team SR Id
    Scoreboard - Overtime Number
    Scoreboard - Overtime Sequence
    Scoreboard - Quarter Number
    Scoreboard - Quarter Sequence
    Team Assists Leader - Player Full Name
    Team Assists Leader - Player Id
    Team Assists Leader - Player Reference
    Team Assists Leader - Player SR Id
    Team Points Leader - Player Full Name
    Team Points Leader - Player Id
    Team Points Leader - Player Reference
    Team Points Leader - Player SR Id
    Team Rebounds Leader - Player Full Name
    Team Rebounds Leader - Player Id
    Team Rebounds Leader - Player Reference
    Team Rebounds Leader - Player SR Id
    Times Tied
    Team Info Data Points: Alias
    Id
    Market
    Name
    Reference
    SR Id
    Player Info Data Points: Full Name
    Jersey Number
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Player Game Statistics Data Points: Assists
    Assists To Turnover Ratio
    Blocked Attempts
    Blocked Shots
    Defensive Rebounds
    Double Double
    Effective Field Goal Percentage
    Efficiency
    Efficiency Game Score
    Field Goal Attempts
    Field Goal Percentage
    Field Goals Made
    Flagrant Fouls
    Fouls Drawn
    Free Throw Attempts
    Free Throw Percentage
    Free Throws Made
    Minutes Played
    Offensive Fouls
    Offensive Rebounds
    Personal Fouls
    Plus/Minus
    Points
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Made
    Points in the Paint Percentage
    Points Off Turnovers
    Rebounds
    Second Chance Points
    Steals
    Technical Fouls
    Three Point Attempts
    Three Point Percentage
    Three Points Made
    Triple Double
    True Shooting Attempts
    True Shooting Percentage
    Turnovers
    Two Point Attempts
    Two Point Percentage
    Two Points Made
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/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", "/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/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/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/boxscore.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Game Boxscore information for a specific game. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/games/`{game_id}`/boxscore.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `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. http://feed.elasticstats.com/schema/basketball/game-v5.0.xsd Return to API map ## Game Summary Top-level boxscore information, along with detailed game stats at the team and player levels.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Info Data Points: Away Team Id
    Game Clock
    Game Coverage
    Game Duration
    Game Id
    Game Quarter
    Game Reference
    Game SR Id
    Game Status
    Game Title
    Home Team Id
    Neutral Site
    Scheduled Date And Time
    Time Zones Away Team
    Time Zones Home
    Time Zones Venue
    Track on Court
    Boxscore Info Data Points: Attendance
    Game Officials - Assignment
    Game Officials - Experience
    Game Officials - First Name
    Game Officials - Full Name
    Game Officials - Id
    Game Officials - Last Name
    Game Officials - Number
    Lead Changes
    Lineups - Active For Game
    Lineups - Ejected
    Lineups - Fouled Out
    Lineups - Not Playing Reason
    Lineups - On Court
    Lineups - Played
    Lineups - Started
    Scoreboard - Away Team Bonus
    Scoreboard - Away Team Game Score
    Scoreboard - Away Team Id
    Scoreboard - Away Team Market
    Scoreboard - Away Team Name
    Scoreboard - Away Team Overtime Score
    Scoreboard - Away Team Quarter Score
    Scoreboard - Away Team Reference
    Scoreboard - Away Team SR Id
    Scoreboard - Home Team Bonus
    Scoreboard - Home Team Flag
    Scoreboard - Home Team Game Score
    Scoreboard - Home Team Id
    Scoreboard - Home Team Market
    Scoreboard - Home Team Name
    Scoreboard - Home Team Overtime Score
    Scoreboard - Home Team Quarter Score
    Scoreboard - Home Team Reference
    Scoreboard - Home Team SR Id
    Scoreboard - Overtime Number
    Scoreboard - Overtime Sequence
    Scoreboard - Quarter Number
    Scoreboard - Quarter Sequence
    Times Tied
    Team Info Data Points: Alias
    Coach - First Name
    Coach - Full Name
    Coach - Id
    Coach - Last Name
    Coach - Position
    Id
    Market
    Name
    Reference
    SR Id
    Player Info Data Points: First Name
    Full Name
    Injuries - Injury Comment
    Injuries - Injury Description
    Injuries - Injury
    Injuries - Injury Start Date
    Injuries - Injury Status
    Injuries - Update Date
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Player Period Statistics Data Points: Assists
    Assists To Turnover Ratio
    Blocked Attempts
    Blocked Shots
    Coach Ejections
    Coach Tech Fouls
    Defensive Rating
    Defensive Rebounds
    Defensive Rebounds Percentage
    Effective Field Goal Percentage
    Efficiency
    Efficiency Game Score
    Fast Break Attempts
    Fast Break Made
    Fast Break Percentage
    Fast Break Points
    Field Goal Attempts
    Field Goal Percentage
    Field Goals Made
    Flagrant Fouls
    Fouls Drawn
    Free Throw Attempts
    Free Throw Percentage
    Free Throws Made
    Minus
    Minutes Played
    Offensive Fouls
    Offensive Rating
    Offensive Rebounds
    Offensive Rebounds Percentage
    Personal Fouls
    Period Id
    Period Number
    Period Type
    Period Sequence
    Plus
    Plus/Minus
    Points
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Made
    Points in the Paint Percentage
    Points Off Turnovers
    Rebounds
    Rebounds Percentage
    Second Chance Attempts
    Second Chance Made
    Second Chance Percentage
    Second Chance Points
    Steals
    Steals Percentage
    Technical Fouls
    Three Point Attempts
    Three Point Percentage
    Three Points Made
    True Shooting Attempts
    True Shooting Percentage
    Turnovers
    Turnovers Percentage
    Two Point Attempts
    Two Point Percentage
    Two Points Made
    Team Period Statistics Data Points: Assists
    Assists To Turnover Ratio
    Bench Points
    Biggest Lead
    Blocked Attempts
    Blocked Shots
    Coach Ejections
    Coach Technical Fouls
    Defensive Assists
    Defensive Points per Possession
    Defensive Rating
    Defensive Rebounds
    Effective Field Goal Percentage
    Efficiency
    Efficiency Game Score
    Ejections
    Fast Break Attempts
    Fast Break Made
    Fast Break Percentage
    Fast Break Points
    Field Goal Attempts
    Field Goal Percentage
    Field Goals Made
    Flagrant Fouls
    Fouls Drawn
    Free Throw Attempts
    Free Throw Percentage
    Free Throws Made
    Minutes Played
    Offensive Fouls
    Offensive Points per Possession
    Offensive Rating
    Offensive Rebounds
    Opponent Possessions
    Pace
    Period Id
    Period Number
    Period Sequence
    Period Type
    Personal Fouls
    Player Technical Fouls
    Plus/Minus
    Points
    Points Against
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Percentage
    Points in the Paint Made
    Points off Turnovers
    Possessions
    Rebounds
    Second Chance Attempts
    Second Chance Made
    Second Chance Percentage
    Second Chance Points
    Steals
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Rebounds
    Team Technical Fouls
    Team Turnovers
    Technical Other
    Three Point Attempts
    Three Point Percentage
    Three Points Made
    Time Leading
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Percentage
    Turnovers
    Two Point Attempts
    Two Point Percentage
    Two Points Made
    Player Game Statistics Data Points: Assists
    Assists To Turnover Ratio
    Blocked Attempts
    Blocked Shots
    Coach Ejections
    Coach Tech Fouls
    Defensive Rating
    Defensive Rebounds
    Defensive Rebounds Percentage
    Double Double
    Effective Field Goal Percentage
    Efficiency
    Efficiency Game Score
    Fast Break Attempts
    Fast Break Made
    Fast Break Percentage
    Fast Break Points
    Field Goal Attempts
    Field Goal Percentage
    Field Goals Made
    Flagrant Fouls
    Fouled Out
    Fouls Drawn
    Free Throw Attempts
    Free Throw Percentage
    Free Throws Made
    Games Played
    Games Started
    Minus
    Minutes Played
    Offensive Fouls
    Offensive Rating
    Offensive Rebounds
    Offensive Rebounds Percentage
    Personal Fouls
    Plus
    Plus/Minus
    Points
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Made
    Points in the Paint Percentage
    Points Off Turnovers
    Rebounds
    Rebounds Percentage
    Second Chance Attempts
    Second Chance Made
    Second Chance Percentage
    Second Chance Points
    Steals
    Steals Percentage
    Technical Fouls
    Three Point Attempts
    Three Point Percentage
    Three Points Made
    Triple Double
    True Shooting Attempts
    True Shooting Percentage
    Turnovers
    Turnovers Percentage
    Two Point Attempts
    Two Point Percentage
    Two Points Made
    Team Game Statistics Data Points: Assists
    Assists To Turnover Ratio
    Bench Points
    Biggest Lead
    Blocked Attempts
    Blocked Shots
    Coach Ejections
    Coach Technical Fouls
    Defensive Assists
    Defensive Points per Possession
    Defensive Rating
    Defensive Rebounds
    Effective Field Goal Percentage
    Efficiency
    Efficiency Game Score
    Ejections
    Fast Break Attempts
    Fast Break Made
    Fast Break Percentage
    Fast Break Points
    Field Goal Attempts
    Field Goal Percentage
    Field Goals Made
    Flagrant Fouls
    Foul Outs
    Fouls Drawn
    Free Throw Attempts
    Free Throw Percentage
    Free Throws Made
    Minutes Played
    Most Unanswered - Opponent Score
    Most Unanswered - Own Score
    Most Unanswered - Points
    Offensive Fouls
    Offensive Points per Possession
    Offensive Rating
    Offensive Rebounds
    Opponent Possessions
    Pace
    Personal Fouls
    Player Technical Fouls
    Plus/Minus
    Points
    Points Against
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Percentage
    Points in the Paint Made
    Points off Turnovers
    Possessions
    Rebounds
    Second Chance Attempts
    Second Chance Made
    Second Chance Percentage
    Second Chance Points
    Steals
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Rebounds
    Team Technical Fouls
    Team Turnovers
    Technical Other
    Three Point Attempts
    Three Point Percentage
    Three Points Made
    Time Leading
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Percentage
    Turnovers
    Two Point Attempts
    Two Point Percentage
    Two Points Made
    Venue Data Points: Address
    Capacity
    City
    Country
    Description
    Name
    SR Id
    State
    Venue Id
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/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", "/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/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/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Game Summary information for a specific game. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/games/`{game_id}`/summary.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `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. http://feed.elasticstats.com/schema/basketball/game-v5.0.xsd Return to API map ## Injuries Information concerning all active player injuries for all teams within the league.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Data Points: League Alias League Id League Name
    Player Info Data Points: First Name
    Full Name
    Injuries - Injury Comment
    Injuries - Injury Description
    Injuries - Injury Id
    Injuries - Injury Start Date
    Injuries - Injury Status
    Injuries - Update Date
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Team Info Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/league/injuries.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/nbdl/trial/v5/en/league/injuries.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/nbdl/trial/v5/en/league/injuries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves player Injuries. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/league/injuries.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Injuries, use the following URL. http://feed.elasticstats.com/schema/basketball/injuries-v2.0.xsd Return to API map ## League Hierarchy League, conference, division, and team identification and association information.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    Team Info Data Points: Alias
    Id
    Market
    Name
    Reference
    SR Id
    Venue Info Data Points: Address
    Capacity
    City
    Country
    Description
    Name
    SR Id
    State
    Venue Id
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/league/hierarchy.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/nbdl/trial/v5/en/league/hierarchy.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/nbdl/trial/v5/en/league/hierarchy.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the League Hierarchy. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/league/hierarchy.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for League Hierarchy, use the following URL. http://feed.elasticstats.com/schema/basketball/nba/hierarchy-v5.0.xsd Return to API map ## League Leaders G League leader information for various offensive and defensive categories including full player seasonal statistics for each player in each category.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Season Id Season Type Season Year
    League Leaders Data Points: Assists
    Assists Per Game
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Category Name
    Category Type
    Defensive Rebounds
    Defensive Rebounds Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Foulouts
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Leaders Alias
    Leaders Id
    Leaders Name
    Leaders SR Id
    Minutes Played
    Minutes Played Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Player Rank
    Points
    Points Per Game
    Rebounds
    Rebounds Per Game
    Stat Category
    Steals
    Steals Per Game
    Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Tied Flag
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Player Info Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Player Season Statistics Data Points: Assists
    Assists Per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Tech Fouls
    Defensive Rebounds
    Defensive Rebounds Per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency Per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Fouled Out
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Games Started
    Minus
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Plus
    Points
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points Off Turnovers
    Points Off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/REG/leaders.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", "/nbdl/trial/v5/en/seasons/2017/REG/leaders.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/nbdl/trial/v5/en/seasons/2017/REG/leaders.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the League Leaders. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/leaders.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_season` | Preseason (PRE), Regular Season (REG), or Postseason (PST). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for League Leaders, use the following URL. http://feed.elasticstats.com/schema/basketball/statistics-v3.0.xsd Return to API map ## Play-By-Play Detailed, real-time information on every team possession and game event.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Info Data Points: Away Team Id
    Entry Mode
    Game Clock
    Game Coverage
    Game Id
    Game Quarter
    Game Reference
    Game SR Id
    Game Status
    Game Title
    Home Team Id
    Neutral Site
    Scheduled Date And Time
    Time Zones Away Team
    Time Zones Home Team
    Time Zones Venue
    Track on Court
    Boxscore Info Data Points: Attendance Lead Changes Times Tied
    Play-By-Play Data Points: Attribution - Team Id
    Attribution - Team Market
    Attribution - Team Name
    Attribution - Team Reference
    Attribution - Team SR Id
    Away Team Alias
    Away Team Bonus
    Away Team Game Score
    Away Team Id
    Away Team Market
    Away Team Name
    Away Team Quarter Score
    Away Team Reference
    Away Team SR Id
    Basket Team is Attacking
    Event Attempt
    Event Away Points
    Event Clock
    Event Description
    Event Free Throw Type
    Event Home Points
    Event Id
    Event Action Area
    Event Location - X Coordinate
    Event Location - Y Coordinate
    Event Number
    Event Participants - Player Full Name
    Event Participants - Player Id
    Event Participants - Player Jersey Number
    Event Participants - Player Reference
    Event Participants - Player SR Id
    Event Participants - Team Id
    Event Participants - Team Market
    Event Participants - Team Name
    Event Participants - Team Reference
    Event Participants - Team SR Id
    Event Qualifier Name
    Event Qualifiers
    Event Sequence
    Event Shot Type
    Event Shot Type Description
    Event Turnover Type
    Event Type
    Event Updated
    Event Wall Clock
    Fieldgoal - Made Flag
    Fieldgoal - Points
    Fieldgoal - Shot Distance
    Fieldgoal - Shot Type
    Fieldgoal - Shot Type Description
    Fieldgoal - Three Point Shot
    Freethrow - Made Flag
    Freethrow - Free Throw Type
    Home Team Alias
    Home Team Game Score
    Home Team Id
    Home Team Market
    Home Team Name
    Home Team Quarter Score
    Home Team Reference
    Home Team SR Id
    On Court Participants - Player Full Name
    On Court Participants - Player Id
    On Court Participants - Player Jersey Number
    On Court Participants - Player Reference
    On Court Participants - Player SR Id
    On Court Participants - Team Id
    On Court Participants - Team Market
    On Court Participants - Team Name
    On Court Participants - Team Reference
    On Court Participants - Team SR Id
    Overtime Id
    Overtime Number
    Overtime Sequence
    Possession - Team Id
    Possession - Team Market
    Possession - Team Name
    Possession - Team Reference
    Possession - Team SR Id
    Quarter Id
    Quarter Number
    Quarter Sequence
    Rebound - Rebound Type
    Scoring Times Tied
    Scoring Lead Changes
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/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", "/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/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/nbdl/trial/v5/en/games/0c2d1f82-a3de-4754-987e-4c1158ba2969/pbp.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Play-By-Play for a game. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/games/`{game_id}`/pbp.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `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 Play-By-Play, use the following URL. http://feed.elasticstats.com/schema/basketball/pbp-v5.0.xsd Return to API map ## Player Profile Detailed player information including a current look at the player’s statistics for the current season.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: League Alias
    League Id
    League Name
    Season Id
    Season Type
    Season Year
    Player Info Data Points: Abbreviated Name
    Birth Date
    Birth Place
    College
    Draft Pick
    Draft Round
    Draft Team
    Draft Year
    Experience
    First Name
    Full Name
    Height (in)
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Status
    Update Date
    Weight (lbs)
    Player Seasonal Statistics Data Points: Assists
    Assists Per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Tech Fouls
    Defensive Rebounds
    Defensive Rebounds Per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency Per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Fouled Out
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Games Started
    Minus
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Plus
    Points
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points Off Turnovers
    Points Off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Team Info Data Points: Alias
    Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/players/4c7dff73-bc54-4e3a-a2fd-5155a2f0e5bb/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", "/nbdl/trial/v5/en/players/4c7dff73-bc54-4e3a-a2fd-5155a2f0e5bb/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/nbdl/trial/v5/en/players/4c7dff73-bc54-4e3a-a2fd-5155a2f0e5bb/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Player Profile. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/players/`{player_id}`/profile.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `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. http://feed.elasticstats.com/schema/basketball/profile-v3.0.xsd Return to API map ## Rankings Conference and division rank for each team, including post season clinching status.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    Season Id
    Season Type
    Season Year
    Standings Info Data Points: Conference Rank Division Rank Playoff Status
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/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", "/nbdl/trial/v5/en/seasons/2017/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/nbdl/trial/v5/en/seasons/2017/REG/rankings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the current Rankings. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/rankings.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_season` | Preseason (PRE), Regular Season (REG), or Postseason (PST). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Rankings, use the following URL. http://feed.elasticstats.com/schema/basketball/nba/rankings-v3.0.xsd Return to API map ## Schedule Date, time, location, and other event details for every match-up taking place in the full league season.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Info Data Points: Away Team Alias
    Away Team Id
    Away Team Name
    Away Team Points
    Away Team Reference
    Away Team Rotation Number
    Away Team Seed Number
    Away Team SR Id
    Broadcast Cable
    Broadcast Channel
    Broadcast Internet
    Broadcast Locale
    Broadcast Network
    Broadcast Radio
    Broadcast Satellite
    Broadcast Type
    Broadcast URL
    Game Coverage
    Game Id
    Game Reference
    Game SR Id
    Game Status
    Game Title
    Home Team Alias
    Home Team Id
    Home Team Name
    Home Team Points
    Home Team Reference
    Home Team Rotation Number
    Home Team Seed Number
    Home Team SR Id
    Neutral Site
    Scheduled Date and Time
    Time Zones Away Team
    Time Zones Home Team
    Time Zones Venue
    Track on Court
    League Info Data Points: League Alias
    League Id
    League Name
    Season Id
    Season Type
    Season Year
    Venue Info Data Points: Address
    Capacity
    City
    Country
    Description
    Name
    SR Id
    State
    Venue Id
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/games/2017/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", "/nbdl/trial/v5/en/games/2017/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/nbdl/trial/v5/en/games/2017/REG/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Schedule. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/games/`{season_year}`/`{nba_season}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_season` | Preseason (PRE), Regular Season (REG), or Postseason (PST). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Schedule, use the following URL. http://feed.elasticstats.com/schema/basketball/schedule-v5.0.xsd Return to API map ## Seasonal Statistics (Season To Date) Detailed team and player statistics for the defined season.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Season Id Season Type Season Year
    Player Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Opponent Seasonal Statistics Data Points: Assists
    Assists Per Game
    Assists To Turnover Ratio
    Bench Points
    Bench Points Per Game
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Technical Fouls
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds Per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Foul Outs
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Points
    Points Against
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points off Turnovers
    Points off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Technical Other
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Player Seasonal Statistics Data Points: Assists
    Assists Per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Tech Fouls
    Defensive Rebounds
    Defensive Rebounds Per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency Per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Fouled Out
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Games Started
    Minus
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Plus
    Points
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points Off Turnovers
    Points Off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Team Seasonal Statistics Data Points: Assists
    Assists Per Game
    Assists To Turnover Ratio
    Bench Points
    Bench Points Per Game
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Technical Fouls
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds Per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Foul Outs
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Points
    Points Against
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points off Turnovers
    Points off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Technical Other
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Team Info Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/REG/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/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", "/nbdl/trial/v5/en/seasons/2017/REG/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/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/nbdl/trial/v5/en/seasons/2017/REG/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/statistics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Seasonal Statistics for a given team. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/teams/`{team_id}`/statistics.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_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. http://feed.elasticstats.com/schema/basketball/statistics-v3.0.xsd Return to API map ## Series Schedule Play-off participant information as well as the date, time, location, and other event details for every match-up taking place for the entire play-offs.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Game Info Data Points: Away Team Alias
    Away Team Id
    Away Team Name
    Away Team Points
    Away Team Reference
    Away Team Rotation Number
    Away Team Seed Number
    Away Team SR Id
    Broadcast Cable
    Broadcast Channel
    Broadcast Internet
    Broadcast Locale
    Broadcast Network
    Broadcast Radio
    Broadcast Satellite
    Broadcast Type
    Broadcast URL
    Game Coverage
    Game Id
    Game Reference
    Game SR Id
    Game Status
    Game Title
    Home Team Alias
    Home Team Id
    Home Team Name
    Home Team Points
    Home Team Reference
    Home Team Rotation Number
    Home Team Seed Number
    Home Team SR Id
    Neutral Site
    Scheduled Date and Time
    Time Zones Away Team
    Time Zones Home Team
    Time Zones Venue
    Track on Court
    League Info Data Points: League Alias
    League Id
    League Name
    Season Id
    Season Type
    Season Year
    Series Info Data Points: Participant - Name
    Participant - Record
    Participant - Seed
    Round
    Series Id
    Series Title
    Start Date
    Status
    Team Info Data Points: Alias
    Id
    Market
    Name
    Reference
    SR Id
    Venue Info Data Points: Address
    Capacity
    City
    Country
    Description
    Name
    SR Id
    State
    Venue Id
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/series/2017/PST/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", "/nbdl/trial/v5/en/series/2017/PST/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/nbdl/trial/v5/en/series/2017/PST/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Series Schedule. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/series/`{season_year}`/`{nba_season}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_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. http://feed.elasticstats.com/schema/basketball/schedule-v5.0.xsd Return to API map ## Series Statistics Detailed team and player statistics for the defined series.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    Series Info Data Points: Series Id Series Title Series Status
    Player Info Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Opponent Seasonal Statistics Data Points: Assists
    Assists Per Game
    Assists To Turnover Ratio
    Bench Points
    Bench Points Per Game
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Technical Fouls
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds Per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Foul Outs
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Points
    Points Against
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points off Turnovers
    Points off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Technical Other
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Player Seasonal Statistics Data Points: Assists
    Assists Per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Tech Fouls
    Defensive Rebounds
    Defensive Rebounds Per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency Per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Fouled Out
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Games Started
    Minus
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Plus
    Points
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points Off Turnovers
    Points Off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Team Seasonal Statistics Data Points: Assists
    Assists Per Game
    Assists To Turnover Ratio
    Bench Points
    Bench Points Per Game
    Blocked Attempts
    Blocked Attempts Per Game
    Blocked Shots
    Blocked Shots Per Game
    Coach Ejections
    Coach Technical Fouls
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds Per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts Per Game
    Fast Break Made
    Fast Break Made Per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points Per Game
    Field Goal Attempts
    Field Goal Attempts Per Game
    Field Goal Percentage
    Field Goals Made
    Field Goals Made Per Game
    Flagrant Fouls
    Flagrant Fouls Per Game
    Foul Outs
    Fouls Drawn
    Fouls Drawn Per Game
    Free Throw Attempts
    Free Throw Attempts Per Game
    Free Throw Percentage
    Free Throws Made
    Free Throws Made Per Game
    Games Played
    Minutes Played
    Minutes Played Per Game
    Offensive Fouls
    Offensive Fouls Per Game
    Offensive Rebounds
    Offensive Rebounds Per Game
    Personal Fouls
    Personal Fouls Per Game
    Points
    Points Against
    Points in the Paint
    Points in the Paint Attempts
    Points in the Paint Attempts Per Game
    Points in the Paint Made
    Points in the Paint Made Per Game
    Points in the Paint Per Game
    Points in the Paint Percentage
    Points off Turnovers
    Points off Turnovers Per Game
    Points Per Game
    Rebounds
    Rebounds Per Game
    Second Chance Attempts
    Second Chance Attempts Per Game
    Second Chance Made
    Second Chance Made Per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points Per Game
    Steals
    Steals Per Game
    Technical Fouls
    Technical Other
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Three Point Attempts
    Three Point Attempts Per Game
    Three Point Percentage
    Three Points Made
    Three Points Made Per Game
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts Per Game
    True Shooting Percentage
    Turnovers
    Turnovers Per Game
    Two Point Attempts
    Two Point Attempts Per Game
    Two Point Percentage
    Two Points Made
    Two Points Made Per Game
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/series/1fee44c8-cdcc-4dc5-b6d4-fd918988af84/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/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", "/nbdl/trial/v5/en/series/1fee44c8-cdcc-4dc5-b6d4-fd918988af84/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/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/nbdl/trial/v5/en/series/1fee44c8-cdcc-4dc5-b6d4-fd918988af84/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/statistics.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Series Statistics for a given team. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/series/`{series_id}`/teams/`{team_id}`/statistics.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `series id` | ID for 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 Series Statistics, use the following URL. http://feed.elasticstats.com/schema/basketball/statistics-v3.0.xsd Return to API map ## Splits (Game) Detailed Team, Player, and Opponent game splits across various views including: Home Team, Loss, Vs Opponent, Overtime, Over 500, Road, Under 500, At Venue, and Wins.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    Season Id
    Season Type
    Season Year
    Player Info Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Opponent Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Player Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Rebounds
    Defensive Rebounds per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempts per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempts
    Free Throws Attempts per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Games Started
    Minus
    Minutes
    Minutes per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Plus
    Points
    Points in Paint
    Points in Paint Attempts
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Technical Fouls
    Three Points Attempted
    Three Points Attempts per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempts per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/PST/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/splits/game.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", "/nbdl/trial/v5/en/seasons/2017/PST/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/splits/game.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/nbdl/trial/v5/en/seasons/2017/PST/teams/c2f3bc9c-9f0f-455c-87b3-a373c10ee1af/splits/game.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Game Splits. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/teams/`{team_id}`/splits/game.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_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 Game Splits, use the following URL. http://feed.elasticstats.com/schema/basketball/statistics-v3.0.xsd Return to API map ## Splits (Hierarchy) Detailed Team, Player, and Opponent splits across each Conference and Division.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    Season Id
    Season Type
    Season Year
    Player Info Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Opponent Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Player Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Rebounds
    Defensive Rebounds per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempts per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempts
    Free Throws Attempts per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Games Started
    Minus
    Minutes
    Minutes per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Plus
    Points
    Points in Paint
    Points in Paint Attempts
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Technical Fouls
    Three Points Attempted
    Three Points Attempts per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempts per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/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", "/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/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/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/hierarchy.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Hierarchy Splits. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/teams/`{team_id}`/splits/hierarchy.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_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 Hierarchy Splits, use the following URL. http://feed.elasticstats.com/schema/basketball/statistics-v3.0.xsd Return to API map ## Splits (In-game) Detailed Team, Player, and Opponent in-game splits across various views including: Higher Field Goal Percentage, Less Personal Fouls, Less Rebounds, Less Turnovers, Lower Field Goal Percentage, More Personal Fouls, More Rebounds, More Turnovers, Over 100 Against, Over 100 For, Same Personal Fouls, Same Rebounds, Same Turnovers, Under 100 Against, and Under 100 For.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    Season Id
    Season Type
    Season Year
    Player Info Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Opponent Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Player Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Rebounds
    Defensive Rebounds per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempts per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempts
    Free Throws Attempts per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Games Started
    Minus
    Minutes
    Minutes per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Plus
    Points
    Points in Paint
    Points in Paint Attempts
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Technical Fouls
    Three Points Attempted
    Three Points Attempts per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempts per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/ingame.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", "/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/ingame.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/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/ingame.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves In-Game Splits. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/teams/`{team_id}`/splits/ingame.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_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 In-Game Splits, use the following URL. http://feed.elasticstats.com/schema/basketball/statistics-v3.0.xsd Return to API map ## Splits (Schedule) Detailed Team, Player, and Opponent splits across various schedule views including: Days of Rest (1, 2, or 3+), Day of the Week, Last 5, Last 10, By Month, and By Week.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    Season Id
    Season Type
    Season Year
    Player Info Data Points: First Name
    Full Name
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Opponent Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Player Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Rebounds
    Defensive Rebounds per Game
    Double Doubles
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempts per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempts
    Free Throws Attempts per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Games Started
    Minus
    Minutes
    Minutes per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Plus
    Points
    Points in Paint
    Points in Paint Attempts
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Technical Fouls
    Three Points Attempted
    Three Points Attempts per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Triple Doubles
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempts per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Splits Data Points: Assists
    Assists per Game
    Assists to Turnover Ratio
    Bench Points
    Bench Points per Game
    Blocked Attempts
    Blocked Attempts per Game
    Blocks
    Blocks per Game
    Coach Ejections
    Coach Technical Fouls
    Day of Week
    Days of Rest
    Defensive Assists
    Defensive Rebounds
    Defensive Rebounds per Game
    Effective Field Goal Percentage
    Efficiency
    Efficiency per Game
    Ejections
    Fast Break Attempts
    Fast Break Attempts per Game
    Fast Break Made
    Fast Break Made per Game
    Fast Break Percentage
    Fast Break Points
    Fast Break Points per Game
    Field Goals Attempted
    Field Goals Attempted per Game
    Field Goals Made
    Field Goals Made per Game
    Field Goals Percentage
    Flagrant Fouls
    Flagrant Fouls per Game
    Foulouts
    Fouls Drawn
    Fouls Drawn per Game
    Free Throws Attempted
    Free Throws Attempted per Game
    Free Throws Made
    Free Throws Made per Game
    Free Throws Percentage
    Games Played
    Minutes Played
    Minutes Played per Game
    Month
    Offensive Fouls
    Offensive Fouls per Game
    Offensive Rebounds
    Offensive Rebounds per Game
    Personal Fouls
    Personal Fouls per Game
    Points
    Points Against
    Points in Paint
    Points in Paint Attempted
    Points in Paint Attempts per Game
    Points in Paint Made
    Points in Paint Made per Game
    Points in Paint per Game
    Points in Paint Percentage
    Points Off Turnovers
    Points Off Turnovers per Game
    Points per Game
    Rebounds
    Rebounds per Game
    Second Chance Attempts
    Second Chance Attempts per Game
    Second Chance Made
    Second Chance Made per Game
    Second Chance Percentage
    Second Chance Points
    Second Chance Points per Game
    Split Category
    Steals
    Steals per Game
    Team Defensive Rebounds
    Team Fouls
    Team Offensive Rebounds
    Team Technical Fouls
    Technical Fouls
    Technical Other
    Three Points Attempted
    Three Points Attempted per Game
    Three Points Made
    Three Points Made per Game
    Three Points Percentage
    Total Fouls
    Total Rebounds
    True Shooting Attempts
    True Shooting Attempts per Game
    True Shooting Percentage
    Turnovers
    Turnovers per Game
    Two Points Attempted
    Two Points Attempted per Game
    Two Points Made
    Two Points Made per Game
    Two Points Percentage
    Week
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/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", "/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/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/nbdl/trial/v5/en/seasons/2017/PST/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/splits/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Schedule Splits. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/teams/`{team_id}`/splits/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_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 Schedule Splits, use the following URL. http://feed.elasticstats.com/schema/basketball/statistics-v3.0.xsd Return to API map ## Standings Detailed team records across various views including, overall, conference, and division information.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    Season Id
    Season Type
    Season Year
    Standings Data Points: Conference Losses
    Conference Winning Percentage
    Conference Wins
    Division Losses
    Division Winning Percentage
    Division Wins
    Equal Rebounds Losses
    Equal Rebounds Winning Percentage
    Equal Rebounds Wins
    Equal Turnovers Losses
    Equal Turnovers Winning Percentage
    Equal Turnovers Wins
    Fewer Turnovers Losses
    Fewer Turnovers Winning Percentage
    Fewer Turnovers Wins
    Games Behind Conference
    Games Behind Division
    Games Behind League
    Games Decided by 10 pts or More Losses
    Games Decided by 10 pts or More Winning Percentage
    Games Decided by 10 pts or More Wins
    Games Decided by 3 pts or Less Losses
    Games Decided by 3 pts or Less Winning Percentage
    Games Decided by 3 pts or Less Wins
    Home Losses
    Home Winning Percentage
    Home Wins
    Last 10 Games Losses
    Last 10 Games Winning Percentage
    Last 10 Games Wins
    Last 10 Home Games Losses
    Last 10 Home Games Winning Percentage
    Last 10 Home Games Wins
    Last 10 Road Games Losses
    Last 10 Road Games Winning Percentage
    Last 10 Road Games Wins
    Leads Field Goal Percentage Losses
    Leads Field Goal Percentage Winning Percentage
    Leads Field Goal Percentage Wins
    Leads Rebounds Losses
    Leads Rebounds Winning Percentage
    Leads Rebounds Wins
    Opponent Fewer Turnovers Losses
    Opponent Fewer Turnovers Winning Percentage
    Opponent Fewer Turnovers Wins
    Opponent Leads Field Goal Percentage Losses
    Opponent Leads Field Goal Percentage Winning Percentage
    Opponent Leads Field Goal Percentage Wins
    Opponent Leads Rebounds Losses
    Opponent Leads Rebounds Winning Percentage
    Opponent Leads Rebounds Wins
    Opponent Scores 100 or More Losses
    Opponent Scores 100 or More Winning Percentage
    Opponent Scores 100 or More Wins
    Overall Losses
    Overall Point Differential
    Overall Points Against
    Overall Points For
    Overall Winning Percentage
    Overall Wins
    Overtime Losses
    Overtime Winning Percentage
    Overtime Wins
    Road Losses
    Road Winning Percentage
    Road Wins
    Scores 100 or More Losses
    Scores 100 or More Winning Percentage
    Scores 100 or More Wins
    Streak
    Versus Atlantic DL Division Losses
    Versus Atlantic DL Division Winning Percentage
    Versus Atlantic DL Division Wins
    Versus Central DL Division Losses
    Versus Central DL Division Winning Percentage
    Versus Central DL Division Wins
    Versus Northwest DL Division Losses
    Versus Northwest DL Division Winning Percentage
    Versus Northwest DL Division Wins
    Versus Pacific DL Division Losses
    Versus Pacific DL Division Winning Percentage
    Versus Pacific DL Division Wins
    Versus Southeast DL Division Losses
    Versus Southeast DL Division Winning Percentage
    Versus Southeast DL Division Wins
    Versus Southwest DL Division Losses
    Versus Southwest DL Division Winning Percentage
    Versus Southwest DL Division Wins
    Versus Teams Above 500 Losses
    Versus Teams Above 500 Winning Percentage
    Versus Teams Above 500 Wins
    Versus Teams Below 500 Losses
    Versus Teams Below 500 Winning Percentage
    Versus Teams Below 500 Wins
    Team Data Points: Id
    Market
    Name
    Reference
    SR Id
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/seasons/2017/PST/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", "/nbdl/trial/v5/en/seasons/2017/PST/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/nbdl/trial/v5/en/seasons/2017/PST/standings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the current Standings. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/seasons/`{season_year}`/`{nba_season}`/standings.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `season_year` | Year in 4 digit format (YYYY). | | `nba_season` | Preseason (PRE), Regular Season (REG), or Postseason (PST). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Standings, use the following URL. http://feed.elasticstats.com/schema/basketball/nba/standings-v3.0.xsd Return to API map ## Team Profile (Rosters) Detailed team information including league affiliation information and player roster information.
    Update Frequency: As Necessary
    Content Type: XML or JSON
    League Info Data Points: Conference Alias
    Conference Id
    Conference Name
    Division Alias
    Division Id
    Division Name
    League Alias
    League Id
    League Name
    Player Info Data Points: Abbreviated Name
    Birth Date
    Birth Place
    College
    Draft Pick
    Draft Round
    Draft Team
    Draft Year
    Experience
    First Name
    Full Name
    Height (in)
    Injuries - Injury Comment
    Injuries - Injury Description
    Injuries - Injury Id
    Injuries - Injury Start Date
    Injuries - Injury Status
    Injuries - Update Date
    Jersey Number
    Last Name
    Player Id
    Position
    Primary Position
    Reference
    SR Id
    Status
    Updated
    Weight (lbs)
    Team Info Data Points: Alias
    Coach - Experience (Years)
    Coach - First Name
    Coach - Full Name
    Coach - Id
    Coach - Last Name
    Coach - Position
    Id
    Market
    Name
    Reference
    SR Id
    Year Founded
    Venue Info Data Points: Address
    Capacity
    City
    Country
    Description
    Name
    SR Id
    State
    Venue Id
    Zip
    ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/nbdl/trial/v5/en/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/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", "/nbdl/trial/v5/en/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/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/nbdl/trial/v5/en/teams/3ae662ac-1579-4b71-af9e-a14fa828315f/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Team Profile. https://api.sportradar.us/nbdl/`{access_level}`/`{version}`/en/teams/`{team_id}`/profile.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production), Trial (trial), or Simulation (simulation). | | `version` | Version number of the API you are accessing (Current Version: v5). | | `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. http://feed.elasticstats.com/schema/basketball/team-v2.0.xsd Return to API map ## Push Feeds >To best utilize Push feeds, we have included code samples in Ruby and Java which provides 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 Clock, 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 - Clock ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("http://api.sportradar.us/nbdl/trial/stream/en/clock/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 http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/nbdl/trial/stream/en/clock/subscribe?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L GET 'api.sportradar.us/nbdl/trial/stream/en/clock/subscribe?api_key={your_api_key}' ``` > The above command returns json like this. This endpoint retrieves the Clock information via Push. http://api.sportradar.us/nbdl/`{access_level}`/stream/`{language_code}`/clock/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). | | `language_code` | Optional 2 letter code for supported languages: en (English) or translations (Any other language translations). | | `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("http://api.sportradar.us/nbdl/trial/stream/en/clock/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56") 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", "/nbdl/trial/stream/en/clock/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L GET 'api.sportradar.us/nbdl/trial/stream/en/clock/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56' ``` In addition to the URL parameters listed above, you can filter the Clock 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` | Match id expressed as: sd:match:{match_id}.
    Example: sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56 | | `language_code` | Optional 2 letter code for supported languages: en (English) or translations (Any other language translations). | | `status` | Status type expressed as: inprogress or created.
    Example: status=inprogress | Return to API map ## Push - Events ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("http://api.sportradar.us/nbdl/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 http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/nbdl/trial/stream/en/events/subscribe?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L GET api.sportradar.us/nbdl/trial/stream/en/events/subscribe?api_key={your_api_key} ``` >The above command returns json like this. This endpoint retrieves the Events information via Push. http://api.sportradar.us/nbdl/`{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) or Trial (trial). | | `language_code` | Optional 2 letter code for supported languages: en (English) or translations (Any other language translations). | | `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("http://api.sportradar.us/nbdl/trial/stream/en/events/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56") 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", "/nbdl/trial/stream/en/events/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L GET 'api.sportradar.us/nbdl/trial/stream/en/events/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56' ``` 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: {event_category}.
    Example: event_category=shot | | `event_type` | Event type expressed as: {event_type}.
    Example: event_type=stoppage | | `match` | Match id expressed as: sd:match:{match_id}.
    Example: sd:match:76b2e680-7da7-461f-95ad-e7c34dbc4c56 | | `players` | Player id expressed as: sd:player:{player_id}.
    Example: sd:player:c1ff3e58-266f-4183-9fa1-d7c914cf4886 | | `status` | Status type expressed as: inprogress or created.
    Example: status=inprogress | | `team` | Team id expressed as: sd:team:{team_id}.
    Example: sd:team:583eca2f-fb46-11e1-82cb-f4ce4684ea4c | Return to API map ## Push - Statistics ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("http://api.sportradar.us/nbdl/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 http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/nbdl/trial/stream/en/statistics/subscribe?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L GET api.sportradar.us/nbdl/trial/stream/en/statistics/subscribe?api_key={your_api_key} ``` > The above command returns json like this. This endpoint retrieves the Statistics information via Push. http://api.sportradar.us/nbdl/`{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) or Trial (trial). | | `language_code` | Optional 2 letter code for supported languages: en (English) or translations (Any other language translations). | | `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("http://api.sportradar.us/nbdl/trial/stream/en/statistics/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:0f4a0ce6-9abb-44ac-867f-75cc2154bb40") 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", "/nbdl/trial/stream/en/statistics/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:0f4a0ce6-9abb-44ac-867f-75cc2154bb40") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L GET 'api.sportradar.us/nbdl/trial/stream/en/statistics/subscribe?api_key={your_api_key}&status=inprogress&match=sd:match:0f4a0ce6-9abb-44ac-867f-75cc2154bb40' ``` 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` | Match id expressed as: sd:match:{match_id}.
    Example: sd:match:0f4a0ce6-9abb-44ac-867f-75cc2154bb40 | | `player` | Player id expressed as: sd:player:{player_id}.
    Example: sd:player:92ec1ed2-95f7-45da-a923-71fd541d6cdb | | `stats_type` | Stat type expressed as {stats_type}. Example: stats_type=player | | `team` | Team id expressed as: sd:team:{team_id}.
    Example: sd:team:583eca2f-fb46-11e1-82cb-f4ce4684ea4c | | `status` | Status type expressed as: inprogress or created.
    Example: status=inprogress | Return to API map