Type Definitions
# event
Event data is used to display information inside the card / event component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string | number |
<required> |
Sportradar ID of the event. |
externalId |
string | number | Client ID of the event. |
|
date |
string | This is used to display date inside the component. |
|
sport |
Object | Sport |
|
id |
string | number | The ID of the sport. |
|
name |
string | The name of the sport. |
|
category |
Object | Category |
|
id |
string | number | The ID of the category. |
|
name |
string | The name of the category. |
|
tournament |
Object | Tournament |
|
id |
string | number | The ID of the tournament. |
|
name |
string | The name of the tournament. |
|
teams |
Array.<Object, Object> | Array for home and away competitors. |
|
id |
string | number | The ID of the competitor. |
|
name |
string | The name of the competitor. |
|
isLive |
boolean | Live status of event. |
|
liveCurrentTime |
string | Live time of the event. |
|
result1 |
result1 Widgets.BetInsights.Integration.Results.result1 | Data appears in the result column. For more information check Result1. |
Example
{
"id": "36613889",
"date": "12/10/22, 05:20",
"sport": {
"id": "5",
"name": "Tennis"
},
"category": {
"id": "213",
"name": "ITF Women"
},
"tournament": {
"id": "121685",
"name": "Hua Hin, Singles Main, W-ITF-THA-14A"
},
"teams": [
{
"id": "13917823",
"name": "Costoulas, Sofia"
},
{
"id": "1228969",
"name": "Sema, Erika"
}
],
"isLive": true,
"liveCurrentTime": "2nd set",
"result1": {
"result": [
0,
1
]
}
}
# market
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string | number |
<required> |
The ID of the market. |
name |
string | The name of the market. |
|
status |
Object | ||
isActive |
boolean | The status of the market. |
Example
{
"id": "13",
"name": "Win tennis match",
"status": {
"isActive": true
}
}
# outcome
Outcome data is used to display outcomes buttons.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string |
<required> |
The name of the outcome. |
id |
string | number |
<required> |
The ID of the outcome. |
odds |
string | number |
<required> |
Value displayed inside outcome button. |
specifier |
Object | ||
value |
string | number | Specifies an additional value associated with the outcome. |
|
status |
Object | ||
isActive |
boolean | The status of the outcome. |
Example
{
"name": "1",
"id": "19628406267",
"odds": "1.78",
"specifier": {
value: "-2.50"
}
"status": {
"isActive": true
}
}