GetEventResults - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get event results.
- Only support query the results within the last 12 days.
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. |
{
"result": [
{
"sportType": int,
"sportName": string,
"leagueId": int,
"leagueName": string,
"countryCode": string,
"eSportGroup": int?,
"gameSession": int,
"isTest": bool,
"leagueIconUrl": string,
"events": [
{
"eventId": int,
"homeId": int,
"homeName": string,
"homeIconUrl": string,
"awayId": int,
"awayName": string,
"awayIconUrl": 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
}
]
},
"playerDetails": {
"1302599": {
"points": null,
"assists": null,
"rebounds": null,
"threePtFgMade": "8",
"blocks": null,
"steals": null,
"otherInfo": "1302599,918747",
"playerId": "1302599",
"teamId": "918747",
"playerName": "Player A (Aces)",
"teamName": "Las Vegas Aces (W)"
}
}
}
]
}
]
}
| Parameter | Format | Description |
|---|---|---|
| result | Object Array | Specifies the result information of the events result. |
| 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 | β |
| leagueIconUrl | string | Specifies the URL of the league image. If the image not found, please change to use default url. {domain}/LeagueImg/league_flag.png Please replace domain with the domain returned by leagueIconUrl |
No | - |
| events | Object Array | Specifies the event information. | No | β |
| 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') |
| homeIconUrl | string | Specifies the URL of the home team image. If the image not found, please change to use default url. {domain}/TeamImg/team_flag_home.png Please replace domain with the domain returned by homeIconUrl |
No | - |
| 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') |
| awayIconUrl | string | Specifies the URL of the away team image. If the image not found, please change to use default url. {domain}/TeamImg/team_flag_away.png Please replace domain with the domain returned by awayIconUrl |
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 | β |
| 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 | β |
| playerDetails | playerDetail Dict | Specifies the basketball player statistics information. | No | - |
| 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 | β |
| 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 | β |
| 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 | β |
| Parameter | Format | Description | Queryable | Query Example |
|---|---|---|---|---|
| maps | Object Array | Specifies the information of each maps. | No | β |
| 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 | β |
| Parameter | Format | Description | Queryable | Query Example |
|---|---|---|---|---|
| playerDetails.{playerId} | object PlayerStats | Stats and metadata for a single player; the key itself is the player's ID (e.g., "1302599"). | No | β |
| points | string | null (numeric string) | Player points value used for betting (e.g., thresholds/targets). null if not available. | No | β |
| assists | string | null (numeric string) | Player assists value used for betting. null if not available. | No | β |
| rebounds | string | null (numeric string) | Player rebounds value used for betting. null if not available. | No | β |
| threePtFgMade | string | null (numeric string) | Player 3-point field goals made, used for betting. null if not available. | No | β |
| blocks | string | null (numeric string) | Player blocks value used for betting. null if not available. | No | β |
| steals | string | null (numeric string) | Player steals value used for betting. null if not available. | No | β |
| otherInfo | string "playerId,teamId" | Auxiliary info combining playerId and teamId as a comma-separated string (e.g., "1302599,918747"). | No | β |
| playerId | string | Unique identifier of the player (e.g., "1302599"). | No | β |
| teamId | string | Unique identifier of the team (e.g., "918747"). | No | β |
| playerName | string | Display name of the player, often including team short name in parentheses (e.g., "Player A (Aces)"). | No | β |
| teamName | string | Team display name (e.g., "Las Vegas Aces (W)"; (W) may denote the womenβs team). | No | β |