Get Subevents
GET/events/:eventId
Retrieves all event information and subevents for given event ID
Request
Path Parameters
eventId int64required
ID of event to fetch
Example: 574
Responses
- 200
- 404
- 500
Returns an Event with child Subevents
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
eventId int64required
eventName stringrequired
categoryId integerrequired
categoryName stringrequired
subevents
object[]
subeventId int64required
subeventName stringrequired
subeventStartTime date-timerequired
Subevent start time in UTC
inPlay booleanrequired
Subevents are split into two for pre-match and in-play (as sportsbooks can price both at the same time). This flag defines whether the subevent is for the pre-match or in-play instance of the game. You can use the subevent start time to trigger the swap between the pre-match and in-play instances.
subeventType SubeventType (string)
Possible values: [OUTRIGHT
, MATCH
, RACE
, ANTEPOST
]
The type of subevent. Can be OUTRIGHT, MATCH, RACE, ANTEPOST
providerReferences
object[]
provider SubeventProviderName (string)
Possible values: [SPORT_RADAR
, PA
, FAIRPLAY
, OPTA
]
id string
{
"eventId": 19170,
"eventName": "Ante-Post",
"categoryId": 2,
"categoryName": "Ante-Post Racing",
"subevents": [
{
"subeventId": 12345,
"subeventName": "Grand National",
"subeventStartTime": "2021-11-18T23:59:00Z",
"inPlay": true,
"subeventType": "MATCH",
"providerReferences": [
{
"provider": "SPORT_RADAR",
"id": "string"
}
]
}
]
}
Not Found
Internal error
Loading...