Note: Authentication is required for all API calls.
## Global Basketball API Map
To best utilize the Global Basketball API, you will need several parameters to create your API calls. The map below illustrates how you can obtain the parameters you need.
>
Example:
>To find the probability of a home team win for a given game:
>
Call the Daily Schedule for the day the sport event takes place and find the Season Id for the chosen sport event
Make note of the Sport Event Id for the given sport event
Call the Season Probabilties using the Season Id
Find Sport Event Id within the results locate the home team and the outcome probability
>The probability of a home team win is displayed.
The primary feeds require only a date or human-readable parameters to call the endpoints. Those feeds provide Sport Event Ids, Competitor Ids, or Season Ids which can be used to generate the match, team, and tournament feeds.
## Competition Info
Update Frequency:
As Necessary
Content Type:
XML or JSON
Competition Info Data Points:
Id
Name
Parent Id
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/competitions/sr:competition:138/info.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", "/basketball/trial/v2/en/competitions/sr:competition:138/info.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/basketball/trial/v2/en/competitions/sr:competition:138/info.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Competition Info.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/competitions/`{competition_id}`/info.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `competition_id` | Id of a given competition. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Competition Seasons
Update Frequency:
As Necessary
Content Type:
XML or JSON
Competition Info Data Points:
Season Competition Id Season End Date
Season Id Season Name
Season Start Date Season Year
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/competitions/sr:competition:138/seasons.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", "/basketball/trial/v2/en/competitions/sr:competition:138/seasons.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/basketball/trial/v2/en/competitions/sr:competition:138/seasons.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Competition Seasons.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/competitions/`{competition_id}`/seasons.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `competition_id` | Id of a given competition. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Competitions
Update Frequency:
As Necessary
Content Type:
XML or JSON
Competition Info Data Points:
Competition Id
Competition Name
Competition Parent Id
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/competitions.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", "/basketball/trial/v2/en/competitions.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/basketball/trial/v2/en/competitions.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
To access the Competitions feed use the following URL:
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/competitions.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
| `parents=true` | Optional query parameter to display only parent competitions. Note: Optional query string parameters must be added after your API key with an ampersand (&). |
Return to API map
## Competitor Profile
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competitor Info Data Points:
Competitor Abbreviation Competitor Country Competitor Country Code Competitor Id Competitor Name Jersey Base Color Jersey Horizontal Stripes
Jersey Number Color Jersey Shirt Type Jersey Sleeve Color Jersey Split Jersey Squares Jersey Stripes Jersey Type
Manager Country Code Manager Date of Birth Manager Gender Manager Id Manager Name Manager Nationality
Player Info Data Points:
Country Code Date of Birth Gender Height
Id Jersey Number Nationality
Name Position Weight
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/competitors/sr:competitor:3515/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", "/basketball/trial/v2/en/competitors/sr:competitor:3515/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/basketball/trial/v2/en/competitors/sr:competitor:3515/profile.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Competitor Profile.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `competitor_id` | Id of a given competitor. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Competitor Summaries
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Away Score Competitor Qualifier Home Score Period Number Period Type
Sport Event Id Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score
Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id
Competitor Match Statistics Data Points:
Assists Ball Possession Biggest Lead Blocks Against Defensive Rebounds Fouls Free Throw Attempts Successful Free Throw Attempts Made Leader Assists Leader Assists Player Id
Leader Points Leader Points Player Id Leader Rebounds Leader Rebounds Player Id Misses Offensive Rebound Rebounds Shots Blocked Steals Team Leads Team Rebounds
Team Turnovers Three Point Attempts Successful Three Point Attempts Total Time Spent in Lead Timeouts Turnovers Two Point Attempts Successful Two Point Attempts Total
Player Match Statistics Data Points:
Assists Blocked Shots Blocks Blocks Against Defensive Rebounds Field Goals Attempted Field Goals Made
Free Throws Attempted Free Throws Made Minutes Offensive Rebounds Personal Fouls Points
Steals Technical Fouls Three Pointers Attempted Three Pointers Made Total Rebounds Turnovers
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/competitors/sr:competitor:3501/summaries.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", "/basketball/trial/v2/en/competitors/sr:competitor:3501/summaries.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/basketball/trial/v2/en/competitors/sr:competitor:3501/summaries.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Competitor Summaries.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_id}`/summaries.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `competitor_id` | ID for a given competitor. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Competitor vs Competitor
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Away Score Competitor Qualifier Home Score Period Number Period Type
Sport Event Id Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score
Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id
Competitor Match Statistics Data Points:
Assists Ball Possession Biggest Lead Blocks Against Defensive Rebounds Fouls Free Throw Attempts Successful Free Throw Attempts Made Leader Assists Leader Assists Player Id
Leader Points Leader Points Player Id Leader Rebounds Leader Rebounds Player Id Misses Offensive Rebound Rebounds Shots Blocked Steals Team Leads Team Rebounds
Team Turnovers Three Point Attempts Successful Three Point Attempts Total Time Spent in Lead Timeouts Turnovers Two Point Attempts Successful Two Point Attempts Total
Player Match Statistics Data Points:
Assists Blocked Shots Blocks Blocks Against Defensive Rebounds Field Goals Attempted Field Goals Made
Free Throws Attempted Free Throws Made Minutes Offensive Rebounds Personal Fouls Points
Steals Technical Fouls Three Pointers Attempted Three Pointers Made Total Rebounds Turnovers
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/competitors/sr:competitor:3501/versus/sr:competitor:6676/summaries.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", "/basketball/trial/v2/en/competitors/sr:competitor:3501/versus/sr:competitor:6676/summaries.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/basketball/trial/v2/en/competitors/sr:competitor:3501/versus/sr:competitor:6676/summaries.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Competitor vs Competitor Summaries.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_id}`/versus/`{competitor2_id}`/summaries.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `competitor_id` | ID for a given competitor. |
| `competitor2_id` | ID for a given competitor. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Daily Summaries
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Away Score Competitor Qualifier Home Score Period Number Period Type Sport Event Id
Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score Sport Event Status Decided by Fed
Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id Time Played Time Remaining
Competitor Match Statistics Data Points:
Assists Ball Possession Biggest Lead Blocks Against Defensive Rebounds Fouls Free Throw Attempts Successful Free Throw Attempts Made Leader Assists Leader Assists Player Id
Leader Points Leader Points Player Id Leader Rebounds Leader Rebounds Player Id Misses Offensive Rebound Rebounds Shots Blocked Steals Team Leads Team Rebounds
Team Turnovers Three Point Attempts Successful Three Point Attempts Total Time Spent in Lead Timeouts Turnovers Two Point Attempts Successful Two Point Attempts Total
Player Match Statistics Data Points:
Assists Blocked Shots Blocks Blocks Against Defensive Rebounds Field Goals Attempted Field Goals Made
Free Throws Attempted Free Throws Made Minutes Offensive Rebounds Personal Fouls Points
Steals Technical Fouls Three Pointers Attempted Three Pointers Made Total Rebounds Turnovers
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/schedules/2019-01-15/summaries.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", "/basketball/trial/v2/en/schedules/2019-01-15/summaries.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/basketball/trial/v2/en/schedules/2019-01-15/summaries.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Daily Summaries.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/schedules/`{year}`-`{month}`-`{day}`/summaries.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `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. |
Return to API map
## Live Summaries
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Away Score Competitor Qualifier Home Score Period Number Period Type Sport Event Id Sport Event Replaced By
Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score Sport Event Status Home Score Sport Event Status Decided by Fed
Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id Time Played Time Remaining
Competitor Match Statistics Data Points:
Assists Ball Possession Biggest Lead Blocks Against Defensive Rebounds Fouls Free Throw Attempts Successful Free Throw Attempts Made Leader Assists Leader Assists Player Id
Leader Points Leader Points Player Id Leader Rebounds Leader Rebounds Player Id Misses Offensive Rebound Rebounds Shots Blocked Steals Team Leads Team Rebounds
Team Turnovers Three Point Attempts Successful Three Point Attempts Total Time Spent in Lead Timeouts Turnovers Two Point Attempts Successful Two Point Attempts Total
Player Match Statistics Data Points:
Assists Blocked Shots Blocks Blocks Against Defensive Rebounds Field Goals Attempted Field Goals Made
Free Throws Attempted Free Throws Made Minutes Offensive Rebounds Personal Fouls Points
Steals Technical Fouls Three Pointers Attempted Three Pointers Made Total Rebounds Turnovers
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/schedules/live/summaries.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", "/basketball/trial/v2/en/schedules/live/summaries.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/basketball/trial/v2/en/schedules/live/summaries.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Live Summaries.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_id}`/summaries.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `competitor_id` | ID for a given competitor. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Live Timelines
Update Frequency:
As Necessary
Content Type:
XML or JSON
Match Info Data Points:
Period Score Away Score Period Score Home Score Period Score Number Period Score Type Sport Event Status
Sport Event Status Away Score Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned
Sport Event Status Winner Id Sport Event Timeline Id Sport Event Timeline Start Time Time Played Time Remaining
Timeline Info Data Points:
Assist Player Id Assist Player Name Assist Type Away Score Break Name Competitor Home Score
Goal Scorer Id Goal Scorer Name Home Score Id Match Clock Match Time Period
Period Name Time Type X Coordinate Y Coordinate
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/schedules/live/timelines.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", "/basketball/trial/v2/en/schedules/live/timelines.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/basketball/trial/v2/en/schedules/live/timelines.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Live Timelines.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/schedules/live/timelines.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
To retrieve the XML Schema Definition (.XSD) for the Match Timeline use the following URL.
http://schemas.sportradar.com/bsa/v1/endpoints/basketball/match_timeline.xsd
Return to API map
## Live Timelines Delta
Update Frequency:
As Necessary
Content Type:
XML or JSON
Match Info Data Points:
Period Score Away Score Period Score Home Score Period Score Number Period Score Type Sport Event Status
Sport Event Status Away Score Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned
Sport Event Status Winner Id Sport Event Timeline Id Sport Event Timeline Start Time Time Played Time Remaining
Timeline Info Data Points:
Assist Player Id Assist Player Name Assist Type Away Score Break Name Competitor Home Score
Goal Scorer Id Goal Scorer Name Home Score Id Match Clock Match Time Period
Period Name Time Type X Coordinate Y Coordinate
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/schedules/live/timelines_delta.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", "/basketball/trial/v2/en/schedules/live/timelines_delta.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/basketball/trial/v2/en/schedules/live/timelines_delta.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Live Timelines Delta.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/schedules/live/timelines_delta.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Player Profile
Update Frequency:
As Necessary
Content Type:
XML or JSON
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Active Country Code Date Of Birth End Date Gender
Height Id Jersey Number Nationality Name
Position Role Type / Position Start Date Weight
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/players/sr:player:607296/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", "/basketball/trial/v2/en/players/sr:player:607296/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/basketball/trial/v2/en/players/sr:player:607296/profile.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Player Profile.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `player_id` | ID of a given player. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Season Info
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Group Id Group Max Rounds Group Name Season Competition Id
Season End Date Season Id Season Name Season Start Date Season Year Stage End Date
Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:55285/info.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", "/basketball/trial/v2/en/seasons/sr:season:55285/info.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/basketball/trial/v2/en/seasons/sr:season:55285/info.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Seasons Information.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/info.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `season_id` | ID of a given season. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Season Lineups
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group - Group Name Group Id
Group Name Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date
Season Year Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Country Code Date of Birth Height Id
Jersey Number Nationality Name Played
Position Starter Weight
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Competitor Qualifier Period Score Away Score Period Score Home Score Period Score Number Period Score Type
Sport Event Id Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score
Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:55467/lineups.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", "/basketball/trial/v2/en/seasons/sr:season:55467/lineups.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/basketball/trial/v2/en/seasons/sr:season:55467/lineups.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Season Lineups.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/lineups.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `season_id` | Id of a given season. |
| `format` | xml or json. |
| `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/basketball/trial/v2/en/seasons/sr:season:55467/lineups.xml?api_key={your_api_key}&start=0&limit=75")
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", "/basketball/trial/v2/en/seasons/sr:season:55467/lineups.xml?api_key={your_api_key}&start=0&limit=75")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```
```shell
curl -L GET 'api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:55467/lineups.xml?api_key={your_api_key}&start=0&limit=75'
```
In addition to the URL parameters listed above, you can paginate the lineup 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 (&).
Replace placeholders with the following query parameters:
| Parameter | Description |
| --------- | ----------- |
| `start` | Number to start the list of results from. Example: start=0 |
| `limit` | Number to limit the number of results. Minimum value is 1, suggested maximum value is 75. Example: limit=75 |
Return to API map
## Season Probabilities
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Probability Info Data Points:
Home Team Win Probability Home Team Win Probability
Market Name
Outcome Name
Match Info Data Points:
Competitor Qualifier Sport Event Id
Sport Event Replaced By Sport Event Start Time
Sport Event Start Time Confirmed
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:59060/probabilities.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", "/basketball/trial/v2/en/seasons/sr:season:59060/probabilities.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/basketball/trial/v2/en/seasons/sr:season:59060/probabilities.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Season Probabilities.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/probabilities.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `season_id` | Id of a given season. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Season Standings
Update Frequency:
As Necessary
Content Type:
XML or JSON
Competition Info Data Points:
Group - Group Name Group Live Group Id Group Name
Stage End Date Stage Order Stage Phase
Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Standings Info Data Points:
Change Current Outcome Draw Games Behind Group - Group Name Group Id Group Live Group Name
Last Ten Loss Record Last Ten Win Record Losses Losses Conference Losses Division Played Points Points Against
Points For Rank Season Standings Tie Break Rule Season Standings Type Wins Wins Conference Wins Division
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:55467/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", "/basketball/trial/v2/en/seasons/sr:season:55467/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/basketball/trial/v2/en/seasons/sr:season:55467/standings.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Season Standings.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `season_id` | ID of a given season. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Season Summaries
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Away Score Competitor Qualifier Home Score Period Number Period Type Sport Event Id
Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score Sport Event Status Decided by Fed
Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id Time Played Time Remaining
Competitor Match Statistics Data Points:
Assists Ball Possession Biggest Lead Blocks Against Defensive Rebounds Fouls Free Throw Attempts Successful Free Throw Attempts Made Leader Assists Leader Assists Player Id
Leader Points Leader Points Player Id Leader Rebounds Leader Rebounds Player Id Misses Offensive Rebound Rebounds Shots Blocked Steals Team Leads Team Rebounds
Team Turnovers Three Point Attempts Successful Three Point Attempts Total Time Spent in Lead Timeouts Turnovers Two Point Attempts Successful Two Point Attempts Total
Player Match Statistics Data Points:
Assists Blocked Shots Blocks Blocks Against Defensive Rebounds Field Goals Attempted Field Goals Made
Free Throws Attempted Free Throws Made Minutes Offensive Rebounds Personal Fouls Points
Steals Technical Fouls Three Pointers Attempted Three Pointers Made Total Rebounds Turnovers
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:55285/summaries.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", "/basketball/trial/v2/en/seasons/sr:season:55285/summaries.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/basketball/trial/v2/en/seasons/sr:season:55285/summaries.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Season Summaries.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/summaries.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `season_id` | ID of a given season. |
| `format` | xml or json. |
| `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/basketball/trial/v2/en/seasons/sr:season:55285/summaries.xml?api_key={your_api_key}&start=0&limit=75")
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", "/basketball/trial/v2/en/seasons/sr:season:55285/summaries.xml?api_key={your_api_key}&start=0&limit=75")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```
```shell
curl -L GET 'api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:55285/summaries.xml?api_key={your_api_key}&start=0&limit=75'
```
In addition to the URL parameters listed above, you can paginate the summaries 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 (&).
Replace placeholders with the following query parameters:
| Parameter | Description |
| --------- | ----------- |
| `start` | Number to start the list of results from. Example: start=0 |
| `limit` | Number to limit the number of results. Minimum value is 1, suggested maximum value is 75. Example: limit=75 |
Return to API map
## Seasonal Competitor Statistics
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Sport Id
Sport Name
Competition Info Data Points:
Season Competition Id Season End Date
Season Id Season Name
Season Start Date Season Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Team Season Statistics Data Points:
Field Goals Made
Minutes
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/seasons/sr:season:59060/competitors/sr:competitor:130098/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", "/basketball/trial/v2/en/seasons/sr:season:59060/competitors/sr:competitor:130098/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/basketball/trial/v2/en/seasons/sr:season:59060/competitors/sr:competitor:130098/statistics.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Seasonal Competitor Statistics.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/competitors/`{competitor_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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `season_id` | Id of a given season. |
| `competitor_id` | ID of a given competitor. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Sport Event Lineups
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Country Code Date of Birth Height Id
Jersey Number Nationality Name Played
Type Starter Weight
Match Info Data Points:
Competitor Qualifier Period Score Away Score Period Score Home Score Period Score Number Period Score Type
Sport Event Id Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score
Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/sport_events/sr:sport_event:15164419/lineups.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", "/basketball/trial/v2/en/sport_events/sr:sport_event:15164419/lineups.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/basketball/trial/v2/en/sport_events/sr:sport_event:15164419/lineups.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Sport Event Lineups.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/sport_events/`{sport_event_id}`/lineups.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `sport_event_id` | ID of a given match. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Sport Event Summary
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Competitor Qualifier Period Score Away Score Period Score Home Score Period Score Number Period Score Type
Sport Event Id Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score
Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id
Competitor Match Statistics Data Points:
Assists Ball Possession Biggest Lead Blocks Against Defensive Rebounds Fouls Free Throw Attempts Successful Free Throw Attempts Made Leader Assists Leader Assists Player Id
Leader Points Leader Points Player Id Leader Rebounds Leader Rebounds Player Id Misses Offensive Rebound Rebounds Shots Blocked Steals Team Leads Team Rebounds
Team Turnovers Three Point Attempts Successful Three Point Attempts Total Time Spent in Lead Timeouts Turnovers Two Point Attempts Successful Two Point Attempts Total
Player Match Statistics Data Points:
Assists Blocked Shots Blocks Blocks Against Defensive Rebounds Field Goals Attempted Field Goals Made
Free Throws Attempted Free Throws Made Minutes Offensive Rebounds Personal Fouls Points
Steals Technical Fouls Three Pointers Attempted Three Pointers Made Total Rebounds Turnovers
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/sport_events/sr:sport_event:14983599/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", "/basketball/trial/v2/en/sport_events/sr:sport_event:14983599/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/basketball/trial/v2/en/sport_events/sr:sport_event:14983599/summary.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Sport Event Summary.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/sport_events/`{sport_event_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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `sport_event_id` | ID of a given match. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Sport Event Timeline
Update Frequency:
As Necessary
Content Type:
XML or JSON
Category & Sport Info Data Points:
Category Country Code Category Id
Category Name Sport Id
Sport Name
Competition Info Data Points:
Competition Id Competition Name Competition Parent Id Coverage Live Coverage Property Type Coverage Property Value Group Id Group Name
Round Number Season Competition Id Season End Date Season Id Season Name Season Start Date Season Year
Stage End Date Stage Order Stage Phase Stage Start Date Stage Type Stage Year
Competitor Info Data Points:
Competitor Abbreviation Competitor Country
Competitor Country Code Competitor Id
Competitor Name
Player Info Data Points:
Id
Name
Venue Info Data Points:
Capacity City Country Code
Country Name Id
Map Coordinates Name
Match Info Data Points:
Competitor Qualifier Period Score Away Score Period Score Home Score Period Score Number Period Score Type
Sport Event Id Sport Event Replaced By Sport Event Start Time Sport Event Start Time Confirmed Sport Event Status Sport Event Status Away Score
Sport Event Status Decided by Fed Sport Event Status Home Score Sport Event Status Match Status Sport Event Status Scout Abandoned Sport Event Status Winner Id Time Played Time Remaining
Timeline Info Data Points:
Assist Player Id Assist Player Name Assist Type Away Score Break Name Competitor Home Score
Goal Scorer Id Goal Scorer Name Home Score Id Match Clock Match Time Period
Period Name Time Type X Coordinate Y Coordinate
Competitor Match Statistics Data Points:
Assists Ball Possession Biggest Lead Blocks Against Defensive Rebounds Fouls Free Throw Attempts Successful Free Throw Attempts Made Leader Assists Leader Assists Player Id
Leader Points Leader Points Player Id Leader Rebounds Leader Rebounds Player Id Misses Offensive Rebound Rebounds Shots Blocked Steals Team Leads Team Rebounds
Team Turnovers Three Point Attempts Successful Three Point Attempts Total Time Spent in Lead Timeouts Turnovers Two Point Attempts Successful Two Point Attempts Total
Player Match Statistics Data Points:
Assists Blocked Shots Blocks Blocks Against Defensive Rebounds Field Goals Attempted Field Goals Made
Free Throws Attempted Free Throws Made Minutes Offensive Rebounds Personal Fouls Points
Steals Technical Fouls Three Pointers Attempted Three Pointers Made Total Rebounds Turnovers
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/sport_events/sr:sport_event:14972281/timeline.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", "/basketball/trial/v2/en/sport_events/sr:sport_event:14972281/timeline.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/basketball/trial/v2/en/sport_events/sr:sport_event:14972281/timeline.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves the Sport Event Timeline.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/sport_events/`{sport_event_id}`/timeline.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `sport_event_id` | ID of a given sport event. |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Sport Events Removed
Update Frequency:
As Necessary
Content Type:
XML or JSON
Match Info Data Points:
Sport Event Removed Id
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/sport_events/removed.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", "/basketball/trial/v2/en/sport_events/removed.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/basketball/trial/v2/en/sport_events/removed.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Sport Events Removed from the API.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/sport_events/removed.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
Return to API map
## Sport Events Updated
Update Frequency:
As Necessary
Content Type:
XML or JSON
Match Info Data Points:
Id
Updated At
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/basketball/trial/v2/en/sport_events/updated.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", "/basketball/trial/v2/en/sport_events/updated.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/basketball/trial/v2/en/sport_events/updated.xml?api_key={your_api_key}"
```
> The above command returns xml structured like this.
This endpoint retrieves Sport Events Updated in the API.
https://api.sportradar.com/basketball/`{access_level}`/`{version}`/`{language_code}`/sport_events/updated.`{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) or Trial (trial). |
| `version` | Version number of the API you are accessing (Current Version: v2). |
| `language_code` | Supported Locales |
| `format` | xml or json. |
| `your_api_key` | Your API key. |
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 and XML payloads 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 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, then all data for the feed is displayed (i.e. all events).
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 and XML payloads can be found below.
## Push - Events
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("http://api.sportradar.com/basketball/trial/stream/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", "/basketball/trial/stream/events/subscribe?api_key={your_api_key}")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```
```shell
curl -L GET "api.sportradar.com/basketball/trial/stream/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/basketball/`{access_level}`/stream/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). |
| `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.com/basketball/trial/stream/events/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event_id:17582523")
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", "/basketball/trial/stream/events/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event_id:17582523")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```
```shell
curl -L GET 'https://api.sportradar.com/basketball/trial/stream/events/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event_id:17582523'
```
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:
| URL Parameters | Description |
| --------- | ----------- |
| `channel` | Channel type expressed as: {channel_type}. Example: channel=basketball |
| `competition_id` | Competition Id expressed as: {competition_id}. Example: competition_id=sr:competition:27230 |
| `event_id` | Event type expressed as: {event_type}. Example: event_id=score_change |
| `format` | Format type expressed as: {format}. Example: format=json |
| `season_id` | Season id expressed as: {season_id}. Example: season_id=sr:season:59654 |
| `sport_event_id` | Sport event id expressed as: {sport_event_id}. Example: sport_event_id=sr:sport_event:17582523 |
| `sport_id` | Sport id expressed as: {sport_id}. Example: sport_id=sr:sport:22 |
## Push - Statistics
```ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("http://api.sportradar.com/basketball/trial/stream/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", "/basketball/trial/stream/statistics/subscribe?api_key={your_api_key}")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```
```shell
curl -L "GET api.sportradar.com/basketball/trial/stream/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/basketball/`{access_level}`/stream/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). |
| `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.com/basketball/trial/stream/statistics/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event_id:17582523")
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", "/basketball/trial/stream/statistics/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event_id:17582523")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```
```shell
curl -L GET 'https://api.sportradar.com/basketball/trial/stream/statistics/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event_id:17582523'
```
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:
| URL Parameters | Description |
| --------- | ----------- |
| `channel` | Channel type expressed as: {channel_type}. Example: channel=basketball |
| `competition_id` | Competition Id expressed as: {competition_id}. Example: competition_id=sr:competition:27230 |
| `event_id` | Event type expressed as: {event_type}. Example: event_id=score_change |
| `format` | Format type expressed as: {format}. Example: format=json |
| `season_id` | Season id expressed as: {season_id}. Example: season_id=sr:season:59654 |
| `sport_event_id` | Sport event id expressed as: {sport_event_id}. Example: sport_event_id=sr:sport_event:17582523 |
| `sport_id` | Sport id expressed as: {sport_id}. Example: sport_id=sr:sport:22 |
## Frequently Asked Questions
Q: What leagues or competitions do you cover for Basketball v2?
A: A list of the competitions covered in this API can be found below. Note that this list is subject to change at any time. For the most accurate list of competitions, please see the Competitions endpoint in the API.
1 Liga
1. A SKL
1. DBBL
1st League
2nd Division
A1
A1 League
A1 Liga
A1 Liga Women
A1 Women
A2
Aba Liga 2
Acbu Superleague
All Star Game
Alpe Adria Cup
American Championship
American Championship Women
ASEAN Basketball League
Asia Championship
Asia Championship W, Level I
Asia Championship W, Level II
Asian Games
Asian Games, Women
ASWBL
AWBL
B.League
B2.league
Balkan League
Baltic Basketball League
Basketball Super Cup
Basketligaen
BBL
BBL-Pokal
Belgium Cup
Big V
Big V, Women
BLB
Blno
Bundesliga
CBA
Cba, All Star Game
Central American And Caribbean Games
Central American And Caribbean Games, Women
Champions Cup
Champions League
Club Friendly Games
Commonwealth Games
Commonwealth Games Women
Copa del Rey
Coupe de France
Coupe de France, Women
Croatia Cup
Cup
Cup, Women
DBL
Division A
Estonian-Latvian League
Eurochallenge
Eurocup
Eurocup, Women
Euroleague
Euroleague Women
Europe Cup
European Championship
European Championship QF
European Championship QF (W)
European Championship Women
Extraliga
Extraliga, Women
Fbu Superleague
FIBA Africa Championship
FIBA Africa Championship, Women
FIBA Americas League
FIBA Centrob. Championship, Women
FIBA Centrobasket Championship
FIBA Liga Sudamericana
FIBA Oceania Championship
FIBA Oceania Championship Women
FIBA S. American Championship
FIBA S. American Championship, Women
FIBA World Cup
Final Eight
Greece Cup
Ibl
Intercontinental Cup
International Friendly Games
International Friendly Games, Women
KBL
Kml
Korisliiga
Lbl
Leaders Cup LNB
League Cup
LEB Oro
Lega Due
LFB, Women
Liga ABA
Liga Aba Super Cup
Liga ACB
Liga Femenina
Liga Nacional
Liga Nationala
Ligan
Lkl
LNA
LNB
LNBP
Lnp Cup
LPB
LUB
Match des Champions
Match Des Champions, Women
National Invitation Tournament
National League
Nb I
NBA
NBA Africa Game
NBA All Star Game
NBA Development League
NBA Preseason
NBA Rising Stars Challenge
NBA Summer League
NBB
NBL
NCAA Men
NCAA, Women
Nkl
Olympic Games
Olympic Games Women
Olympic Games Women, QF
Olympic Games, QF
PBA, Commissioner Cup
PBA, Governors Cup
PBA, Philippine Cup
PBL
PLK
PLKK
Premier League Women
Pro A
Pro B
Seabl
Seabl, Women
Serie A
Serie A2
Serie A2 Silver
Serie A2, Lnp Cup
Super 20
Super Cup
Super League
Supercopa
Supercoppa
Supercoppa Lnp
Superleague
Superpuchar
TBSL
TKBL
Türkiye Kupasi
U18 EC Division A
U18 EC Division A Women
U18 EC Division B
U18 EC Division B Women
U18 FIBA Americas Championship
U18 FIBA Asia Championship
U19 World Championship
U19 World Championship Women
U20 EC Division A
U20 EC Division A Women
U20 EC Division B
U20 EC Division B Women
United League
Urvalsdeild
Urvalsdeild, Women
Wcba
Wkbl
WNBA
WNBA All Star Game
WNBL
World Championship Women
World Cup Qualification, Africa
World Cup Qualification, Americas
World Cup Qualification, Asia & Oceania
World Cup Qualification, Europe
ZBL
Q: What format are date fields presented in?
A: When we present date only values we present these in the ISO 8601 standard format.
ex: 2013-04-03
We use these for attributes that have date and no time (such as birthdate). For more information: https://en.wikipedia.org/wiki/ISO_8601
Q: What format are the date/time fields presented in?
A: All of our Date/Time attributes are in UTC, presented in the ISO 8601 standard format.
ex: 2013-04-03T18:15:00+00:00
For more information: https://en.wikipedia.org/wiki/ISO_8601
Q: What are the valid match status values?
A: Here are the valid match status values and their definitions:
not_started – The match is scheduled to be played
live – The match is currently in progress
postponed – The match has been postponed to a future date
delayed – The match has been temporarily delayed and will be continued
interrupted - The match began, but coverage has stopped for a short time. Note that match scores may not be updated during this period, the last recorded match score will be displayed instead
canceled – The match has been canceled and will not be played
ended – The match is over
closed – The match results have been confirmed
Q: How do I access past seasons results and stats?
A: Use the Competition Seasons endpoint to locate the season_id for the season you want to access. Use that season_id to interrogate the various seasons endpoints.
Q: What are the valid outcomes for probabilities?
A: Here are the valid outcome probabilities:
home_team_winner
away_team_winner
Q: How do I find out the coverage for a particular match?
A: Find the node called "coverage" in any of the Summary, Lineups, or Timeline feeds. The attribute "coverage - live" reports if Sportradar has live coverage of the match or not.
Q: Why do different groups have coverage information for a competition?
A: The notion of “groups” is versatile and is used to distinguish between playoffs, and our competition structures and is therefore necessary to describe coverage at a group level for consistency. Generally, however, within a competition in Basketball, there will be no difference between competition coverage between conferences.
Q: What are the possible event type values?
A: Here are the possible values for an event type:
match_started
period_start
rebound
score_change
foul
ball_block
break_start
timeout
period_score
match_ended
attempt_missed
free_throws_awarded
steal
timeout_over
turnover
video_review
video_review_over
won_jump_ball
Q: What are markets and what are the different markets?
A: Markets is something you can bet on that we provide probabilities for. Over time we intend to provide more and more markets in the API. Currently the only market we provide is 2-way (will the home team win? Or the away team?).
Q: What is the scale of the X Y coordinates?
A: The court we use is 100 by 100. Here is a layout of the court:
0
X
100
Y
100
Q: What are the possible sport_event_status – match_status values?