GetOutrightResults - Saba-sports/OddsDirectAPI GitHub Wiki

This API is to get outright results.

  • Only support query the results within the last 12 days.

Request

GET  /sports/{version}/GetOutrightResults?from=2022-01-01&until=2022-01-02&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 Format Mandatory Description
from DateTime Yes Specific the start date of the data. (GMT+0)The date time string format should be like: "2021-01-01T00:00:00"
until DateTime Yes Specific the end date of the data. (GMT+0)The date time string format should be like: "2021-01-01T00:00:00"
language string Specific the language of the response context, default is "en".Please refer to Language Table.
query string Specific the query parameters for using odata query format.Will query soccer as default.

Response

{    
    "result": [
        {
            "sportType": int, 
            "sportName": string,   
            "leagueId": int,  
            "leagueName": string, 
            "isTest": string,
            "outrights": [
                {
                   "eventTime": DateTime,
                   "teamId": int,
                   "teamName": string,
                   "status": string   
                }
            ]
        }
    ]   
} 
Parameter Format Description
result Object Array Specifies the result information of outrights.
Parameter 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'
leagueId int Specifies the identifier of the league. Yes $filter=leagueid eq 56038
leagueName string Specifies the name of the league. Yes $filter=leaguename eq '*UEFA CHAMPIONS LEAGUE' or $filter=contains(leaguename,'NBA')
isTest bool Specifies whether the event is test. No
outrights Object Array Specifies the information of the outright. No
Parameter Format Description Queryable Query Example
eventTime DateTime Specifies the date and time of the beginning of the event. (time zone GMT+0) No
teamId int Specifies the identifier of the team. No
teamName string Specifies the name of the team. No
status string Specifies the status of the game.Won, Lost, Refund No