NFL Push Draft Picks provides pre-draft pick order with real-time (push enabled) pick selections during the draft.
Syntax
https://api.sportradar.com/draft/nfl/{access_level}/stream/en/picks/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
In addition to the URL parameters listed above, you can filter the Pick information with one or more of the following optional query string parameters.
Optional query string parameters must be added after your API key with an ampersand (&). If you are filtering for more than one result, separate the results with a comma (,) and no spaces.
Replace placeholders with the following query parameters:
Parameter | Description |
---|---|
draft | Draft id expressed as: sd:draft:{draft_id}. Example: draft=sd:draft:04b11293-240e-4340-8f4f-ded6c6281fe9 |
Code Samples
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/draft/nfl/trial/stream/en/picks/subscribe?api_key={your_api_key}&draft=sd:draft:04b11293-240e-4340-8f4f-ded6c6281fe9&league=NFL")
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
import requests
import json
r = requests.get("https://api.sportradar.com/draft/nfl/trial/stream/en/picks/subscribe",
params = {'api_key': 'your_api_key', 'draft': 'sd:draft:04b11293-240e-4340-8f4f-ded6c6281fe9', 'league': 'NFL'},
allow_redirects=False)
redirect_url = r.headers['Location']
r = requests.get(redirect_url, stream=True)
for line in r.iter_lines():
# filter out keep-alive new lines
if line:
decoded_line = line.decode('utf-8')
print(json.loads(decoded_line))
curl -L GET 'api.sportradar.us/draft/nfl/trial/stream/en/picks/subscribe?api_key={your_api_key}&draft=sd:draft:04b11293-240e-4340-8f4f-ded6c6281fe9&league=NFL'
Samples with Query String Params
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.sportradar.us/draft/nfl/trial/stream/en/trades/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
import requests
import json
r = requests.get("https://api.sportradar.com/draft/nfl/trial/stream/en/trades/subscribe",
params = {'api_key': 'your_api_key'},
allow_redirects=False)
redirect_url = r.headers['Location']
r = requests.get(redirect_url, stream=True)
for line in r.iter_lines():
# filter out keep-alive new lines
if line:
decoded_line = line.decode('utf-8')
print(json.loads(decoded_line))
curl -L GET 'api.sportradar.us/draft/nfl/trial/stream/en/trades/subscribe?api_key={your_api_key}'
Response Sample
The above commands return json like this.
Data Points
Draft Info:
Attribute | Parent Element | Type | Description |
---|---|---|---|
end_date | draft | Date | End date of a draft ex. 2022-04-30 |
id | draft | GUID | Unique ID of a draft ex. 01c63362-299c-48a0-b725-63fa18fca261 |
start_date | draft | Date | Start date of a draft ex. 2022-04-30 |
status | draft | String | Status of a draft ex. closed |
alias | pick -team | String | Draft team alias ex. MIN (Minnesota) |
id | pick -team | GUID | Unique ID of a draft team ex. 82d2d380-3834-4938-835f-aec541e5ece7 |
market | pick -team | String | Draft team market name ex. Minnesota |
name | pick -team | String | Draft team name ex. Vikings |
year | draft | Integer | Year of a draft |
Pick Info:
Attribute | Parent Element | Type | Description |
---|---|---|---|
compensatory | pick | Boolean | Signifies a compensatory draft pick |
id | pick | GUID | Unique ID of a draft pick ex. ca6b8dae-e835-49e4-9638-b30cdd3969a8 |
number | pick | Integer | Number of a draft pick within a round |
overall | pick | Integer | Overall number of a draft pick |
traded | pick | Boolean | Signifies a traded draft pick |
id | pick -trades -trade | GUID | Unique ID of a trade ex. 3fc4ffa0-fe54-4d9a-bf53-e85df0e2cefd |
Round Info:
Attribute | Parent Element | Type | Description |
---|---|---|---|
end_date | round | Date | End date of a round ex. 2022-04-30 |
id | round | GUID | Unique ID of a round ex. 2e9eee59-fdc4-4dbf-bafa-b1cc80976fdb |
number | round | Integer | Number of a round |
start_date | round | Date | Start date of a round ex. 2022-04-30 |
status | round | String | Status of a round ex. closed |
Broadcast:
Attribute | Parent Element | Type | Description |
---|---|---|---|
channel | broadcast | String | Name of the game's broadcast channel |
internet | broadcast | String | Name of the game's internet stream |
network | broadcast | String | Name of the game's broadcast network ex. Amazon Prime Video |
League:
Attribute | Parent Element | Type | Description |
---|---|---|---|
alias | league | String | Alias of a league ex. NFL |
id | league | GUID | Unique ID of a league ex. 3c6d318a-6164-4290-9bbc-bf9bb21cc4b8 |
name | league | String | Name of a league ex. National Football League |
Prospects:
Attribute | Parent Element | Type | Description |
---|---|---|---|
birth_place | prospect | String | Birthplace of a player ex. Tyler, TX, USA |
experience | prospect | String | Experience of a college player ex. JR or SR |
first_name | prospect | String | First name of a player ex. Patrick |
height | prospect | Integer | Height in inches |
id | prospect | GUID | Unique ID of a player ex. 11cad59d-90dd-449c-a839-dddaba4fe16c |
last_name | prospect | String | Last name of a player ex. Mahomes |
league_id | prospect | GUID | Unique ID of a player's league ex. 5250f409-d4d7-48ac-adf4-35c3561ffad1 |
name | prospect | String | Full name of a player ex. Patrick Mahomes |
position | prospect | String | Position of a player See our FAQ for a list of valid positions |
publishable | prospect | Boolean | Signifies a prospect should appear in the feed |
source_id | prospect | GUID | Unique ID of a player's source team ex. 9fe7c9f9-5830-4e22-953d-054a44342323 |
team_name | prospect | String | Name of college or team ex. Texas Tech |
top_prospect | prospect | Boolean | Signifies a top prospect |
weight | prospect | Decimal | Weight in lbs |
Metadata:
Attribute | Parent Element | Type | Description |
---|---|---|---|
league | metadata | String | Alias of a league ex. NFL |
draft | metadata | String | Unique ID of a draft ex. sd:draft:04b11293-240e-4340-8f4f-ded6c6281fe9 |
locale | metadata | String | Language code ex. en (English) |
operation | metadata | String | Operation of an updateupdate ,delete |
version | metadata | String | Version of the API ex. v1 |