Skip to main content

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

Returns an Event with child Subevents

Schema

    eventId int64required
    eventName stringrequired
    categoryId integerrequired
    categoryName stringrequired

    subevents

    object[]

  • Array [

  • 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[]

  • Array [

  • provider SubeventProviderName (string)

    Possible values: [SPORT_RADAR, PA, FAIRPLAY, OPTA]

    id string
  • ]

  • ]

Loading...