NBA Advanced Insights - Highs v1

Frequently Asked Questions
API API Version
NBA Advanced Insights - Highs v1
Note: Authentication is required for all API calls.
## Highs by Game ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.com/highs/nba/trial/v1/en/game/6c7ddf15-2521-45d9-b16c-8a086540be9a?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", "/highs/nba/trial/v1/en/game/6c7ddf15-2521-45d9-b16c-8a086540be9a?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L "https://api.sportradar.com/highs/nba/trial/v1/en/game/6c7ddf15-2521-45d9-b16c-8a086540be9a?api_key={your_api_key}" ``` > The above command returns json structured like this. This endpoint retrieves Highs by Game. https://api.sportradar.com/highs/nba/`{access_level}`/`{version}`/en/game/`{game_id}`?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 Trial (trial) or Development (development). | | `version` | Version number of the API you are accessing (Current Version: v1). | | `game_id` | Id of a given game. | | `your_api_key` | Your API key. | ## Highs by Player ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.com/highs/nba/trial/v1/en/player/0ffd6d00-1aa4-49e0-a85d-6a538417ff3b?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", "/highs/nba/trial/v1/en/player/0ffd6d00-1aa4-49e0-a85d-6a538417ff3b?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -L "https://api.sportradar.com/highs/nba/trial/v1/en/player/0ffd6d00-1aa4-49e0-a85d-6a538417ff3b?api_key={your_api_key}" ``` > The above command returns json structured like this. This endpoint retrieves Highs by Player. https://api.sportradar.com/highs/nba/`{access_level}`/`{version}`/en/player/`{player_id}`?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 Trial (trial) or Development (development). | | `version` | Version number of the API you are accessing (Current Version: v1). | | `player_id` | Id of a given player. | | `your_api_key` | Your API key. | ## Frequently Asked Questions

Q: What is the Date format?

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 time zone 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: Will you be adding other triggers, such as players approaching and closing in on Highs?

A: Yes – additional triggers will be coming to the endpoints.

Q: Will you be adding Team Highs?

A: Yes – after launch of Player Highs, we will turn our attention to Team Highs.

Q: What if there’s a statistical category I care about that isn’t currently in Highs?

A: Please let us know and we can look into adding the statistical category.

Return to top

Docs Navigation