GetSports - Saba-sports/OddsDirectAPI GitHub Wiki

This API is to get how many events count and parlay count for each sport.

Request

GET  /sports/{version}/GetSports?until=2021-02-28&language=cs
Accept: application/json
Accept-Encoding: br, gzip, deflate
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
Parameter Description
query Specific the query parameters for using odata query format
from Specific the start date of the data. It can be inputted separately.The date time string format should be like: "2021-01-01T00:00:00", encodable
until Specific the end date of the data. It can be inputted separately.The date time string format should be like: "2021-01-01T00:00:00", encodable
language Specific the language of the response context

Response

{    
    "sports": Sport[]   
} 
Name Format Description
sports Sport array Specifies the information of sport

Sport

{  
    "sportType": int,  
    "sportName": string, 
    "liveGameCount":int,
    "gameCount": int,
    "liveParlayGame": int,
    "parlayGame": int,
    "outrightGame": int
} 
Name Format Description Queryable Query Example
sportType int Specifies the identifier of the sport. Yes $filter=sporttype eq 1
sportName string Specifies the name of the sport. Yes $filter=sportname eq 'Soccer'
liveGameCount int Specifies the number of the live events. Yes $filter=liveGameCount gt 0
gameCount int Specifies the number of the non-live events. No
liveParlayGame int Specifies the number of the live parlay’s events. No
parlayGame int Specifies the number of the non-live parlay’s events. No
outrightGame int Specifies the number of the outright’s events. No