curl --request GET \
--url https://api.example.com/scores/stream \
--header 'Authorization: Bearer <token>' \
--header 'X-Api-Token: <api-key>'{
"id": "<string>",
"event": "<string>",
"data": {
"fixtureId": 123,
"gameState": "<string>",
"startTime": 123,
"isTeam": true,
"fixtureGroupId": 123,
"competitionId": 123,
"countryId": 123,
"sportId": 123,
"participant1IsHome": true,
"participant2Id": 123,
"participant1Id": 123,
"action": "<string>",
"id": 123,
"ts": 123,
"connectionId": 123,
"seq": 123,
"coverageSecondaryData": true,
"coverageType": "<string>",
"statusId": {},
"statusBasketballId": {},
"type": {},
"confirmed": true,
"clock": {
"running": true,
"seconds": 123
},
"down": {
"number": 123,
"yardsToGo": 123,
"scrimmageLine": 123,
"possession": {},
"side": {}
},
"inPlayInfo": {
"BallSnapped": true,
"PlayersLiningUp": true,
"TimeoutParti1": true,
"TimeoutParti2": true,
"TVTimeout": true,
"Outcome": {},
"NewSetOfDowns": true,
"PenaltyIncreasedDown": true,
"PreviousDown": {
"number": 123,
"yardsToGo": 123,
"scrimmageLine": 123,
"possession": {},
"side": {}
}
},
"kickoffInfo": {
"Team": {},
"Type": {},
"Outcome": {},
"KickoffPreviousAction": {},
"PenaltyYards": 123
},
"score": {
"Participant1": {
"Q1": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q2": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"HT": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q3": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q4": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Total": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
}
},
"Participant2": {
"Q1": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q2": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"HT": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q3": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q4": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Total": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
}
}
},
"data": {
"Action": "<string>",
"Active": true,
"BigPlay": true,
"Challenge": true,
"Clock": {
"running": true,
"seconds": 123
},
"Down": "<string>",
"FieldGoal": true,
"Id": 123,
"IsTeam": true,
"New": {
"Clock": {
"running": true,
"seconds": 123
},
"IsTeam": true,
"Outcome": "<string>",
"PlayerId": 123,
"ReceiverId": 123,
"RusherId": 123,
"SackedPlayerId": 123,
"Yards": 123,
"YardsToGo": 123
},
"NewSetOfDowns": true,
"Origin": "<string>",
"Outcome": "<string>",
"Participant": 123,
"Participants": [
123
],
"PasserId": 123,
"Penalty": true,
"PlayerId": 123,
"Posession": 123,
"Previous": {
"Clock": {
"running": true,
"seconds": 123
},
"IsTeam": true,
"Outcome": "<string>",
"PlayerId": 123,
"ReceiverId": 123,
"RusherId": 123,
"SackedPlayerId": 123,
"Yards": 123,
"YardsToGo": 123
},
"ReceiverId": 123,
"ReplaceId": 123,
"ReviewType": "<string>",
"RusherId": 123,
"SackedPlayerId": 123,
"Safety": true,
"ScrimmageLine": 123,
"Side": "<string>",
"Touchdown": true,
"Turnover": true,
"Type": "<string>",
"Yards": 123,
"YardsToGo": 123,
"YardsToEndzone": 123
},
"scoreBasketball": {
"Participant1": {
"Period": {},
"HT": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"Total": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
}
},
"Participant2": {
"Period": {},
"HT": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"Total": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
}
}
},
"dataBasketball": {
"Action": "<string>",
"Active": true,
"AssistConfirmed": true,
"AssistId": 123,
"BlockConfirmed": true,
"BlockerId": 123,
"Clock": {
"running": true,
"seconds": 123
},
"FouledId": 123,
"Id": 123,
"New": {
"Clock": {
"running": true,
"seconds": 123
},
"IsPlayerRebound": true,
"IsTeam": true,
"IsTeamRebound": true,
"Outcome": "<string>",
"PlayerId": 123,
"Type": "<string>"
},
"Outcome": "<string>",
"Previous": {
"Clock": {
"running": true,
"seconds": 123
},
"IsPlayerRebound": true,
"IsTeam": true,
"IsTeamRebound": true,
"Outcome": "<string>",
"PlayerId": 123,
"Type": "<string>"
},
"ReplaceId": 123,
"Type": "<string>"
},
"stats": {},
"participant": 123
}
}A long-lived stream of scores updates.
The stream consists of two types of events:
id in the format timestamp:index and data containing a JSON object for a single Scores record.event field set to heartbeat and may have data like {"Ts": 12345}.curl --request GET \
--url https://api.example.com/scores/stream \
--header 'Authorization: Bearer <token>' \
--header 'X-Api-Token: <api-key>'{
"id": "<string>",
"event": "<string>",
"data": {
"fixtureId": 123,
"gameState": "<string>",
"startTime": 123,
"isTeam": true,
"fixtureGroupId": 123,
"competitionId": 123,
"countryId": 123,
"sportId": 123,
"participant1IsHome": true,
"participant2Id": 123,
"participant1Id": 123,
"action": "<string>",
"id": 123,
"ts": 123,
"connectionId": 123,
"seq": 123,
"coverageSecondaryData": true,
"coverageType": "<string>",
"statusId": {},
"statusBasketballId": {},
"type": {},
"confirmed": true,
"clock": {
"running": true,
"seconds": 123
},
"down": {
"number": 123,
"yardsToGo": 123,
"scrimmageLine": 123,
"possession": {},
"side": {}
},
"inPlayInfo": {
"BallSnapped": true,
"PlayersLiningUp": true,
"TimeoutParti1": true,
"TimeoutParti2": true,
"TVTimeout": true,
"Outcome": {},
"NewSetOfDowns": true,
"PenaltyIncreasedDown": true,
"PreviousDown": {
"number": 123,
"yardsToGo": 123,
"scrimmageLine": 123,
"possession": {},
"side": {}
}
},
"kickoffInfo": {
"Team": {},
"Type": {},
"Outcome": {},
"KickoffPreviousAction": {},
"PenaltyYards": 123
},
"score": {
"Participant1": {
"Q1": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q2": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"HT": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q3": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q4": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Total": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
}
},
"Participant2": {
"Q1": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q2": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"HT": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q3": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Q4": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
},
"Total": {
"Score": 123,
"Touchdown": 123,
"Safety": 123,
"1ptSafety": 123,
"1ptConversion": 123,
"2ptConversion": 123,
"FieldGoal": 123,
"Defensive2ptConversion": 123
}
}
},
"data": {
"Action": "<string>",
"Active": true,
"BigPlay": true,
"Challenge": true,
"Clock": {
"running": true,
"seconds": 123
},
"Down": "<string>",
"FieldGoal": true,
"Id": 123,
"IsTeam": true,
"New": {
"Clock": {
"running": true,
"seconds": 123
},
"IsTeam": true,
"Outcome": "<string>",
"PlayerId": 123,
"ReceiverId": 123,
"RusherId": 123,
"SackedPlayerId": 123,
"Yards": 123,
"YardsToGo": 123
},
"NewSetOfDowns": true,
"Origin": "<string>",
"Outcome": "<string>",
"Participant": 123,
"Participants": [
123
],
"PasserId": 123,
"Penalty": true,
"PlayerId": 123,
"Posession": 123,
"Previous": {
"Clock": {
"running": true,
"seconds": 123
},
"IsTeam": true,
"Outcome": "<string>",
"PlayerId": 123,
"ReceiverId": 123,
"RusherId": 123,
"SackedPlayerId": 123,
"Yards": 123,
"YardsToGo": 123
},
"ReceiverId": 123,
"ReplaceId": 123,
"ReviewType": "<string>",
"RusherId": 123,
"SackedPlayerId": 123,
"Safety": true,
"ScrimmageLine": 123,
"Side": "<string>",
"Touchdown": true,
"Turnover": true,
"Type": "<string>",
"Yards": 123,
"YardsToGo": 123,
"YardsToEndzone": 123
},
"scoreBasketball": {
"Participant1": {
"Period": {},
"HT": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"Total": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
}
},
"Participant2": {
"Period": {},
"HT": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"OT": {},
"OTTotal": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
},
"Total": {
"Score": 123,
"Fouls": 123,
"PersonalFouls": 123,
"Blocks": 123,
"Rebounds": 123,
"FreeThrows_made": 123,
"2pts_made": 123,
"3pts_made": 123,
"FreeThrows_missed": 123,
"2pts_missed": 123,
"3pts_missed": 123,
"FreeThrows_attempts": 123,
"2pts_attempts": 123,
"3pts_attempts": 123,
"Assists": 123,
"Turnovers": 123,
"Steals": 123,
"UsedTimeouts": 123
}
}
},
"dataBasketball": {
"Action": "<string>",
"Active": true,
"AssistConfirmed": true,
"AssistId": 123,
"BlockConfirmed": true,
"BlockerId": 123,
"Clock": {
"running": true,
"seconds": 123
},
"FouledId": 123,
"Id": 123,
"New": {
"Clock": {
"running": true,
"seconds": 123
},
"IsPlayerRebound": true,
"IsTeam": true,
"IsTeamRebound": true,
"Outcome": "<string>",
"PlayerId": 123,
"Type": "<string>"
},
"Outcome": "<string>",
"Previous": {
"Clock": {
"running": true,
"seconds": 123
},
"IsPlayerRebound": true,
"IsTeam": true,
"IsTeamRebound": true,
"Outcome": "<string>",
"PlayerId": 123,
"Type": "<string>"
},
"ReplaceId": 123,
"Type": "<string>"
},
"stats": {},
"participant": 123
}
}Documentation Index
Fetch the complete documentation index at: https://txline-docs.txodds.com/llms.txt
Use this file to discover all available pages before exploring further.
User's session JWT.
The user's long-lived API token, obtained from the activation endpoint.
Bearer token for the user's session JWT.
The user's long-lived API token.
Optional. The ID of the last event received, to resume the stream.
Optional. Filter the event stream for a single fixture ID.
Was this page helpful?