Event Lineup
Subscribe to real-time event lineup updates for one or more leagues. Receive immediate notifications when starting lineups are projected, confirmed, or updated.
Parameters
|
Field |
Type |
Description |
|---|---|---|
|
|
array of integers |
Optional. Array of league IDs to subscribe to (e.g., |
Response Types
|
Field |
Type |
Description |
|---|---|---|
|
|
object |
The event lineup data (see Event Lineup 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) |
Event Lineup Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
int |
League identifier |
|
|
string |
Date for the lineup in YYYY-MM-DD format |
|
|
object |
Event information (see Event Fields below) |
|
|
array |
Array of team lineups (see Team Lineup Fields below) |
|
|
object |
Metadata about the lineup (see Meta Fields below) |
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 Lineup Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
string |
Side of the event: "AWAY" or "HOME" |
|
|
object |
Team information (see Team Fields below) |
|
|
string |
Lineup status: "PROJECTED" or "CONFIRMED" |
|
|
datetime |
When the lineup was confirmed (null if projected) |
|
|
array |
Array of starting players (see Starter Fields below) |
Team Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
long |
Team identifier |
|
|
string |
Team name |
Starter Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
string |
Player position (e.g., "PG", "SG", "SF", "PF", "C" for NBA) |
|
|
object |
Player information (see Player Fields below) |
Player Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
long |
Player identifier |
|
|
string |
Player first name |
|
|
string |
Player last 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 lineup updates:
subscription {
eventLineup(leagueIds: [3]) {
eventLineup {
leagueId
date
event {
id
name
eventStart
statusId
}
teams {
side
team {
id
name
}
lineupStatus
confirmedAt
starters {
position
player {
id
firstName
lastName
}
}
}
meta {
createdAt
updatedAt
}
}
messageTimestamp
messageId
correlationId
}
}