Counter-Strike: Global Offensive v1

Frequently Asked Questions
API API Version
CSGO v1
Note: Authentication is required for all API calls.
## Daily Results ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/schedules/2016-06-05/results.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", "/csgo-t1/us/schedules/2016-06-05/results.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/csgo-t1/us/schedules/2016-06-05/results.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Daily Results. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/schedules/`{year}`-`{month}`-`{day}`/results.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day of month in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Daily Results, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/results.xsd?api_key=`{your_api_key}` ## Daily Schedule ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/schedules/2016-06-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", "/csgo-t1/us/schedules/2016-06-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/csgo-t1/us/schedules/2016-06-05/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Daily Schedule. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/schedules/`{year}`-`{month}`-`{day}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day of month in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Daily Results, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/common/schedule.xsd?api_key=`{your_api_key}` ## Deleted Matches ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/schedules/deleted_matches.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", "/csgo-t1/us/schedules/deleted_matches.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/csgo-t1/us/schedules/deleted_matches.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Deleted Matches. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/schedules/deleted_matches.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | ## Head-2-Head ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/teams/sr:competitor:262739/versus/sr:competitor:261015/matches.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", "/csgo-t1/us/teams/sr:competitor:262739/versus/sr:competitor:261015/matches.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/csgo-t1/us/teams/sr:competitor:262739/versus/sr:competitor:261015/matches.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Head-2-Head Statistics. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/teams/`{team_id}`/versus/`{team_id}`/matches.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `team_id` | ID of a given team. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for Head-2-Head, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/team_versus_matches.xsd?api_key=`{your_api_key}` ## Match Lineups ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/matches/sr:match:9356887/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", "/csgo-t1/us/matches/sr:match:9356887/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/csgo-t1/us/matches/sr:match:9356887/lineups.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Match Lineups. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/matches/`{match_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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `match_id` | ID of a given match. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Match Lineups, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/lineups.xsd?api_key=`{your_api_key}` ## Match Probabilities ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/matches/sr:match:9356887/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", "/csgo-t1/us/matches/sr:match:9356887/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/csgo-t1/us/matches/sr:match:9356887/probabilities.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Match Probabilities. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/matches/`{match_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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `match_id` | ID of a given match. | | `format` | xml or json. | | `your_api_key` | Your API key. |
Note: The match_id used must be pre-match for the odds to display.
To retrieve the XML Schema Definition (.XSD) for the Match Probabilities, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/match_probabilities.xsd?api_key=`{your_api_key}` ## Match Summary ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/matches/sr:match:9356887/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", "/csgo-t1/us/matches/sr:match:9356887/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/csgo-t1/us/matches/sr:match:9356887/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Match Summary. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/matches/`{match_id}`/summary.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `match_id` | ID of a given match. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Match Summary, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/match_summary.xsd?api_key=`{your_api_key}` ## Match Timeline ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/matches/sr:match:9356887/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", "/csgo-t1/us/matches/sr:match:9356887/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/csgo-t1/us/matches/sr:match:9356887/timeline.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves the Match Timeline. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/matches/`{match_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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `match_id` | ID of a given match. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Match Timeline, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/match_timeline.xsd?api_key=`{your_api_key}` ## Player Profile ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/players/sr:player:917768/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", "/csgo-t1/us/players/sr:player:917768/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/csgo-t1/us/players/sr:player:917768/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/csgo-`{access_level}{version}`/`{language_code}`/player/`{player_id}`/profile.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `player_id` | ID of a given player. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Player Profile, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/player_profile.xsd?api_key=`{your_api_key}` ## Team Profile ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/teams/sr:competitor:262739/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", "/csgo-t1/us/teams/sr:competitor:262739/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/csgo-t1/us/teams/sr:competitor:262739/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Team Profile. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/teams/`{team_id}`/profile.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `team_id` | ID of a given team. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Team Profile, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/team_profile.xsd?api_key=`{your_api_key}` ## Team Results ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/teams/sr:competitor:262739/results.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", "/csgo-t1/us/teams/sr:competitor:262739/results.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/csgo-t1/us/teams/sr:competitor:262739/results.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Team Results. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/teams/`{team_id}`/results.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `team_id` | ID of a given team. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Team Results, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/team_results.xsd?api_key=`{your_api_key}` ## Team Schedule ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/teams/sr:competitor:262739/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", "/csgo-t1/us/teams/sr:competitor:262739/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/csgo-t1/us/teams/sr:competitor:262739/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Team Schedule. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/teams/`{team_id}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `team_id` | ID of a given team. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Team Schedule, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/team_schedule.xsd?api_key=`{your_api_key}` ## Teams List ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/teams.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", "/csgo-t1/us/teams.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/csgo-t1/us/teams.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Teams List. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/teams.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Teams List, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/teams_list.xsd?api_key=`{your_api_key}` ## Tournament Info ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/tournaments/sr:tournament:2464/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", "/csgo-t1/us/tournaments/sr:tournament:2464/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/csgo-t1/us/tournaments/sr:tournament:2464/info.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Tournament Info. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/tournaments/`{tournament_id or 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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `tournament_id or season_id` | ID of a given tournament or season. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournament Info, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/tournament_info.xsd?api_key=`{your_api_key}` ## Tournament Live Summary ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/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", "/csgo-t1/us/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/csgo-t1/us/schedules/live/summaries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Tournament Live Summary. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/schedules/live/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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournament Info, use the following URL. http://schemas.sportradar.com/bsa/csgo/v1/xml/endpoints/csgo/summaries.xsd ## Tournament Results ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/tournaments/sr:tournament:2464/results.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", "/csgo-t1/us/tournaments/sr:tournament:2464/results.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/csgo-t1/us/tournaments/sr:tournament:2464/results.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Tournament Results. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/tournaments/`{tournament_id or season_id}`/results.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `tournament_id or season_id` | ID of a given tournament or season. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournament Results, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/tournament_results.xsd?api_key=`{your_api_key}` ## Tournament Schedule ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/tournaments/sr:tournament:2464/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", "/csgo-t1/us/tournaments/sr:tournament:2464/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/csgo-t1/us/tournaments/sr:tournament:2464/schedule.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Tournament Schedule. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/tournaments/`{tournament_id or season_id}`/schedule.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `tournament_id or season_id` | ID of a given tournament or season. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournament Schedule, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/tournament_schedule.xsd?api_key=`{your_api_key}` ## Tournament Seasons ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/tournaments/sr:tournament:2464/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", "/csgo-t1/us/tournaments/sr:tournament:2464/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/csgo-t1/us/tournaments/sr:tournament:2464/seasons.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Tournament Seasons. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/tournaments/`{tournament_id or season_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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `tournament_id or season_id` | ID of a given tournament or season. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournament Seasons, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/tournament_seasons.xsd?api_key=`{your_api_key}` ## Tournament Standings ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/tournaments/sr:tournament:2392/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", "/csgo-t1/us/tournaments/sr:tournament:2392/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/csgo-t1/us/tournaments/sr:tournament:2392/standings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Tournament Standings. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/tournaments/`{tournament_id or 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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `tournament_id or season_id` | ID of a given tournament or season. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournament Standings, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/csgo/tournament_standings.xsd?api_key=`{your_api_key}` ## Tournament Summary ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/schedules/sr:tournament:2392/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", "/csgo-t1/us/schedules/sr:tournament:2392/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/csgo-t1/us/schedules/sr:tournament:2392/summaries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves a Tournament Summary. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/tournaments/`{tournament_id or 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 (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `tournament_id or season_id` | ID of a given tournament or season. | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournament Summary, use the following URL. http://schemas.sportradar.com/bsa/csgo/v1/xml/endpoints/csgo/summaries.xsd ## Tournaments ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/csgo-t1/us/tournaments.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", "/csgo-t1/us/tournaments.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/csgo-t1/us/tournaments.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. This endpoint retrieves Tournaments. https://api.sportradar.us/csgo-`{access_level}{version}`/`{language_code}`/tournaments.`{format}`?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (p) or Trial (t). | | `version` | Version number of the API you are accessing (Current Version: 1). | | `language_code` | Optional 2 letter code for supported languages. See the list of Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | To retrieve the XML Schema Definition (.XSD) for the Tournaments, replace the parameters in the following URL. https://api.sportradar.us/csgo-`{access_level}{version}`/schema/common/tournaments.xsd?api_key=`{your_api_key}` ## Frequently Asked Questions

Q: What format are date fields presented in?

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

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

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

Q: What leagues or tournaments do you cover for Counter-Strike: Global Offensive?

A: We cover all tournaments & leagues run by ESL Gaming.

Q: What tournaments do you cover standings for?

A: We cover standings for the following tournaments:

  • ESL Pro League
  • ECS League
  • LCS NA
  • LCS EU
  • LCK
  • LPL

Q: What tournaments do you cover live?

A: We have live coverage for the following tournaments:

  • Betradar eSports Invitational
  • ESEA Premier Division
  • ESG Mykonos Invitational
  • ESL ANZ Championship
  • ESL Benelux Championship
  • ESL Brasil Premier League
  • ESL Championnat National
  • ESL Expo
  • ESL Masters España
  • ESL Meisterschaft
  • ESL Mistrzostwa Polski
  • ESL One
  • ESL Pro League
  • ESL UK Premiership
  • Fortuna Esport Balkan League
  • Intel Extreme Masters
  • ZEN Esports Network League

Q: What is the format of the Ids in your feeds?

A: In the API we try to consistently use an URN-scheme for identifying different entities with id. Our standard URN-scheme is usually on this format “<origin>:<type>:<id>”. This string is a guaranteed unique id across our APIs. It is best to treat the Id as a string that uniquely identifies the entity and not try to break apart the different pieces.

Q: What are the valid “sport_event_status – 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.
  • suspended – The match has been suspended.
  • delayed – The match has been temporarily delayed and will be continued.
  • cancelled – The match has been canceled and will not be played.
  • abandoned – The match began, but was abandoned.
  • 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
  • ended – The match is over.
  • closed – The match is over and the results have been confirmed.

Q: What are the valid “sport_event_status – match_status” values?

A: Here are the valid match status values and their definitions:

  • not_started
  • first_map
  • first_pause
  • second_map
  • second_pause
  • third_map
  • third_pause
  • fourth_map
  • fourth_pause
  • fifth_map
  • fifth_pause
  • sixth_map
  • sixth_pause
  • seventh_map
  • ended
  • walkover1
  • walkover2
  • retired1
  • retired2
  • delayed
  • interrupted
  • abandoned

Q: What does it mean if the “sport_event – status” goes from “abandoned” to “closed”?

A: If the status goes from "abandoned" to "closed" it typically means that there has been some unrecoverable technical fault at the tournament organizer level. If this happens, team and player statistics will not be displayed but the match score/result will be listed at the end of the match.

Q: What are the possible event types?

A: Here are all of the possible event types we log:

  • map_picked
  • map_started
  • map_ended
  • match_started
  • match_ended
  • round_started
  • round_ended
  • kill
  • kill_teammate
  • bomb_planted
  • bomb_defuse_begin
  • team_economy
  • period_score – reported each time a team wins a round
  • score_change – reported when one team wins the map

Q: What are markets and what are the different markets?

A: Markets are 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 3-way (will the home team win? Or the away team? Or will it be a draw?)

Q: What are the possible outcomes?

A: Different markets have different outcomes. The available outcomes are currently:

  • home_team_winner
  • away_team_winner
  • draw

Q: What are the possible kill types?

A: The available kill types are currently:

  • normal
  • headshot
  • headshot_penetrated
  • penetrated

Q: What are the possible winning reasons?

A: The available winning reasons are:

  • terrorists_win
  • counter_terrorists_win
  • bomb_defused
  • target_bombed
  • walked_over

Q: What are the possible social media link types?

A: The available winning reasons are:

  • official_twitter_account
  • official_facebook_account
  • official_youtube_channel
  • twitch
  • steam_account_key
  • official_website

Q: What are the possible values for phase in the tournament_round attribute?

A: Here are the valid phases:

  • regular_season
  • playoffs
  • relegation
  • promotion
  • group_phase_1
  • group_phase_2
  • stage_1
  • stage_2

Q: What are the possible values for match_mode in the sport_event_conditions attribute?

A: Note that match mode is shared across all 3 eSports we offer, so an individual sport may not utilize all of the values below. Here is a list of the statuses for match_mode:

  • BO1 – Best of one
  • BO2 – Best of two
  • BO3 – Best of three
  • BO4 – Best of four
  • BO5 – Best of five
Return to top

Docs Navigation