GetEventResults - Saba-sports/OddsDirectAPI GitHub Wiki

This API is to get event results.

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

Request

GET  /sports/{version}/GetEventResults?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, 
            "countryCode": string, 
            "eSportGroup": int?, 
            "gameSession": int, 
            "isTest": bool, 
            "events": [ 
                { 
                    "eventId": int, 
                    "homeId": int, 
                    "homeName": string, 
                    "awayId": int, 
                    "awayName": string, 
                    "htHomeScore": string, 
                    "htAwayScore": string, 
                    "homeScore": string, 
                    "awayScore": string, 
                    "firstHomeScore": string, 
                    "firstAwayScore": string, 
                    "secondHomeScore": string, 
                    "secondAwayScore": string, 
                    "homeGameScore": string, 
                    "awayGameScore": string, 
                    "sessionScores": [ 
                        { 
                            "homeScore": string, 
                            "awayScore": string, 
                            "isRefund": bool 
                        } 
                    ], 
                    "overTimeScores": [ 
                        { 
                            "homeScore": string, 
                            "awayScore": string, 
                            "isRefund": bool 
                        } 
                    ], 
                    "gameStatus": string, 
                    "winDetail": string 
                    "eventTime": dateTime, 
                    "soccerDetail": { 
                        "firstGoal": string, 
                        "lastGoal": string, 
                        "firstHtGoal": string, 
                        "lastHtGoal": string, 
                        "goalSequence": string, 
                        "cornerSequence": string, 
                        "penaltySequence": string, 
                        "firstGoalMethod": string, 
                        "firstGoalScorerPlayer": string, 
                        "specialData": [ 
                            { 
                                "leagueId": int, 
                                "leagueName": string, 
                                "eventId": int,
                                "homeId": int, 
                                "homeName": string, 
                                "awayId": int, 
                                "awayName": string, 
                                "htHomeScore": string, 
                                "htAwayScore": string, 
                                "homeScore": string, 
                                "awayScore": string, 
                                "sort": int, 
                                "status": string 
                            } 
                        ],
                        "deathSuddenPenaltySequence": string,
                        "isPenaltyHandicap": bool,
                        "isPenaltyOverUnder": bool
                    }, 
                    "eSportMapDetail": { 
                        "maps": [ 
                            { 
                                "map": int, 
                                "homeScore": string 
                                "awayScore": string 
                                "status": string 
                            } 
                        ] 
                    } 
                } 
            ] 
        } 
    ] 
} 
Parameter Format Description
result Object Array Specifies the result information of the events result.

Result Object

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 1
leagueName string Specifies the name of the league. Yes $filter=leaguename eq '*UEFA CHAMPIONS LEAGUE' or $filter=contains(leaguename,'NBA')
countryCode string Specifies the identifier of the country. No
eSportGroup int? Specifies the information of league.
1 → Dota2 ; 2 → LOL ; 3 → CS2 ; 4 → KOG ; 99 → Others
No
gameSession int Specifies the total games of the event. No
isTest bool Specifies whether the event is test. No
events Object Array Specifies the event information. No

Events Object

Parameter Format Description Queryable Query Example
eventId int Specifies the identifier of the event. Yes $filter=eventid eq 38255274
homeId int Specifies the identifier of the home team. Yes $filter=homeId eq 17892
homeName string Specifies the name of the home team. Yes $filter=contains(homename,'Field')
awayId int Specifies the identifier of the away team. Yes $filter=awayid eq 714227
awayName string Specifies the name of the away team. Yes $filter=contains(awayname,'Lakers')
htHomeScore string Specifies the 1st half score of the home team. No
htAwayScore string Specifies the 1st half score of the away team. No
homeScore string Specifies the score of the home team. No
awayScore string Specifies the score of the away team. No
firstHomeScore string Specifies the score of the 1st innings of the home team.
Only support for Cricket(50)
No
firstAwayScore string Specifies the score of the 1st innings of the away team.
Only support for Cricket(50)
No
secondHomeScore string Specifies the score of the 2nd innings of the home team.
Only support for Cricket(50)
No
secondAwayScore string Specifies the score of the 2nd innings of the away team.
Only support for Cricket(50)
No
homeGameScore string Specifies the total game's score of the home team.
Only support for Tennis(5),Volleyball(6),Badminton(9),Squash(30),BeachVolleyball(45),SepakTakraw(48)
No
awayGameScore string Specifies the total game's score of the away team.
Only support for Tennis(5),Volleyball(6),Badminton(9),Squash(30),BeachVolleyball(45),SepakTakraw(48)
No
sessionScores Object Array Specifies the score information for each session. No
overTimeScores Object Array Specifies the score information for over time session. No
gameStatus string Specifies the status of the game.
Running,Completed,Refund FT,Refund HT,Refund,Pending,Abandoned 1H,Abandoned 2H,Under Settlement,Result Pending
Only support following status string:
running
internal
completed
refundft
refundht
refund
postponed
abandoned1h
abandoned2h
resultpending
undersettlement
Yes $filter=gameStatus eq 'refundft'
winDetail string Specifies the detail of the winning method.
Only support for Muay Thai(44).
No
eventTime DateTime Specifies the start time for the event. (time zone GMT+0) No
soccerDetail SoccerDetail Array Specifies the soccer detail information. No
eSportMapDetail eSportMapDetail Array Specifies the E-Sport detail information. No

SessionScores / OverTimeScores

Parameter Format Description Queryable Query Example
homeScore string Specifies the score of the session of the home team. No
awayScore string Specifies the score of the session of the away team. No
isRefund bool Specifies whether the session is refunded. No

SoccerDetail

Parameter Format Description Queryable Query Example
firstGoal string Specifies which team gets the first goal in the full-time game.
Will return "h", "a" or null.
No
lastGoal string Specifies which team gets the last goal in the full-time game.
Will return "h", "a" or null.
No
firstHtGoal string Specifies which team gets the first goal in the 1st half.
Will return "h", "a" or null.
No
lastHtGoal string Specifies which team gets the last goal in the 1st half.
Will return "h", "a" or null.
No
goalSequence string Specifies the goal sequence. No
cornerSequence string Specifies the corner sequence. No
penaltySequence string Specifies the penalty sequence. No
firstGoalMethod string Specifies the method of the first goal.
Shot, Header, Penalty, Free Kick, Own Goal, No Goal
No
specialData Object Array Specifies the special information of the soccer event. No
deathSuddenPenaltySequence string Specifies the penalty sequence of death sudden. No
isPenaltyHandicap bool Specifies whether the event is Handicap of penalty shoot-out. No
isPenaltyOverUnder bool Specifies whether the event is Over-Under of penalty shoot-out. No

SpecialData

Parameter Format Description Queryable Query Example
leagueId int Specifies the identifier of the league. No
leagueName string Specifies the name of the league. No
eventId int Specifies the identifier of the event. No
homeId int Specifies the identifier of the home team. No
homeName string Specifies the name of the home team. No
awayId int Specifies the identifier of the away team. No
awayName string Specifies the name of the away team. No
htHomeScore string Specifies the 1st half score of the home team. No
htAwayScore string Specifies the 1st half score of the away team. No
homeScore string Specifies the score of the home team. No
awayScore string Specifies the score of the away team. No
sort int Specifies the order of the special data. No
status string Specifies the status of the special data.
Running,Completed,Refund FT,Refund HT,Refund,Pending,Abandoned 1H,Abandoned 2H,Under Settlement,Result Pending
No

eSportMapDetail

Parameter Format Description Queryable Query Example
maps Object Array Specifies the information of each maps. No

Maps

Parameter Format Description Queryable Query Example
map int Specifies the map of the game. No
homeScore string Specifies the score of the home team. No
awayScore string Specifies the score of the away team. No
status string Specifies the status of the map.
Refund FT, Refund HT, Refund, Completed
No
⚠️ **GitHub.com Fallback** ⚠️