Events

GET /stream/events

Changed on

Setup streamed (WebSocket) connection

Request

  • Base URL
    https://api.sportsgameodds.com/v2
  • Auth
    • API key in query parameter apiKey
    • or API key in header x-api-key

Query parameters

feedstring

The feed you would like to subscribe to

leagueIDstring

A leagueID to stream events for

eventIDstring

An eventID to stream events for. If the eventID has since changed, the Event which lists it in its aliases is streamed

Response

Event stream credentials and initial event data

successboolean
pusherKeystring
userstring
channelstring

Example response

{
  "data": [
    {
      "results": {
        "game": {
          "home": {
            "points": 12
          },
          "away": {
            "points": 10
          }
        }
      }
    }
  ]
}

Changes

    • warning

      removed the optional property data/items/odds/additionalProperties/byBookmaker/additionalProperties/bookmakerID from the response with the status

    • warning

      removed the optional property data/items/odds/additionalProperties/byBookmaker/additionalProperties/isMainLine from the response with the status

    • info

      added the optional property data/items/info/venue/venueID to the response with the status