GET /events/
Changed onGet a list of Events
Request
- Base URLhttps://api.sportsgameodds.com/v2
- Auth
- API key in query parameter apiKey
- or API key in header x-api-key
Query parameters
An eventID to get Event data for. If an eventID has since changed, the Event which lists it in its aliases is returned
A comma separated list of eventIDs to get Event data for. If an eventID has since changed, the Event which lists it in its aliases is returned
A sportID or comma-separated list of sportIDs to get Events for
A leagueID or comma-separated list of leagueIDs to get Events for
Only include Events of the specified type
Whether you want only Events which do (true) or do not (false) have odds markets which are currently available (open for wagering)
Whether you want only Events which do (true) or do not (false) have any associated odds markets regardless of whether those odds markets are currently available (open for wagering)
An oddID or comma-separated list of oddIDs to include odds for
Whether to include opposing odds for each included oddID
Whether to include alternate lines in the odds byBookmaker data
Whether to expand the results object to include all stat values rather than just the base set
Whether to include open and close odds values (openOdds, closeOdds, openSpread, closeSpread, openOverUnder, closeOverUnder) in the odds byBookmaker data
A bookmakerID or comma-separated list of bookmakerIDs to include odds for
A teamID or comma-separated list of teamIDs to include Events for
A playerID or comma-separated list of playerIDs to include Events (and associated odds) for
Only include finalized Events (true), exclude unfinalized Events (false) or all Events (omit)
Only include live Events (true), only non-live Events (false) or all Events (omit)
Only include Events which have have previously started (true), only Events which have not previously started (false) or all Events (omit)
Only include Events which have have ended (true), only Events which have not ended (false) or all Events (omit)
Only include cancelled Events (true), only non-cancelled Events (false) or all Events (omit)
Get Events that start after this date
Get Events that start before this date
The maximum number of Events to return
The cursor for the request. Used to get the next group of Events. This is an opaque token — pass the nextCursor value from the prior response unchanged.
Response
An array of events
Example response
{
"data": [
{
"results": {
"game": {
"home": {
"points": 12
},
"away": {
"points": 10
}
}
}
}
],
"notice": "Response is missing 5 events and 12 bookmaker odds. Upgrade your API key to access all data from this query.",
"success": true
}Changes
- warning
removed the optional property
data/items/odds/additionalProperties/byBookmaker/additionalProperties/bookmakerIDfrom the response with the status - warning
removed the optional property
data/items/odds/additionalProperties/byBookmaker/additionalProperties/isMainLinefrom the response with the status
- warning
- info
added the optional property
data/items/info/venue/venueIDto the response with the status
- info