Player Percent to Play
Requires elevated access, inquire here.
Player Percent to Play Subscription
Subscribe to real-time player percent-to-play updates for one or more leagues. Receive immediate notifications when player availability percentages are created or updated.
Parameters
|
Field |
Type |
Description |
|---|---|---|
|
|
array of integers |
Optional. Array of league IDs to subscribe to (e.g., |
Response Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
object |
The player percent-to-play item (see Player Percent to Play Fields below) |
|
|
string |
Timestamp when the message was generated |
|
|
string |
Unique identifier for this message (for internal use) |
|
|
string |
Correlation identifier for message tracking (for internal use) |
Player Percent to Play Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
int |
League identifier |
|
|
object |
Player information (see Person Fields below) |
|
|
object |
Event information (see Event Fields below) |
|
|
object |
Team information (see Team Fields below) |
|
|
decimal |
Percent chance the player will play in the next game (0-100) |
|
|
string |
Additional notes or description |
|
|
object |
Metadata about the item (see Meta Fields below) |
Person Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
long |
Player identifier |
|
|
string |
Player first name |
|
|
string |
Player last name |
Event Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
long |
Event identifier |
|
|
string |
Event name |
|
|
datetime |
Event start time (UTC) |
|
|
int |
Event status ID (1=PREGAME, 2=LIVE, 3=FINAL, etc.) |
Team Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
long |
Team identifier |
|
|
string |
Team name |
Meta Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
datetime |
Date the item was created (UTC) |
|
|
datetime |
Date the item was last updated (UTC) |
Example Subscription
Subscribe to NBA and NHL percent-to-play updates:
subscription {
playerPercentToPlay(leagueIds: [3, 4]) {
playerPercentToPlay {
leagueId
person {
id
firstName
lastName
}
event {
id
name
eventStart
statusId
}
team {
id
name
}
percentToPlay
notes
meta {
createdAt
updatedAt
}
}
messageTimestamp
messageId
correlationId
}
}