beta GetGameDetails - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get the game final result by event id.
Request
GET /betting/{version}/GetGameDetails?eventids=12345,6789
Content-Type: application/json
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
Parameter |
Format |
Length |
Mandatory |
Description |
eventIds |
string |
5100 |
Yes |
Specifies the event idSplit trans by ",", ex:1111,2222 |
language |
string |
|
|
Specific the language of the response context, default is "en".Please refer to Language Table |
Response
{
"games": [
{
"eventId": string,
"gameDetail": null
},
{
"eventId": string,
"gameDetail": {
"eventTime": DateTime,
"sportType": int,
"leagueId": int,
"leagueName": string,
"homeId": int,
"homeName": string,
"awayId": int,
"awayName": string,
"homeScore": int,
"awayScore": int,
"htHomeScore": int,
"htAwayScore": int,
"gameStatus": string,
"winItem": string?,
"cornerSequence": string?
}
}
]
}
Parameter |
Format |
Description |
games |
Array |
Specifies the information of the games. |
Parameter |
Format |
Description |
eventId |
string |
Specifies the identifier of the event. |
gameDetail |
Object? |
Return null if the event is not found. |
Parameter |
Format |
Description |
eventTime |
DateTime |
Specifies the start time for the event. (time zone GMT+0) |
sportType |
int |
Specifies the identifier of the sport. |
leagueId |
int |
Specifies the identifier of the league. |
leagueName |
string |
Specifies the name of the league. |
homeId |
int |
Specifies the identifier of the home team. |
homeName |
string |
Specifies the name of the home team. |
awayId |
int |
Specifies the identifier of the away team. |
awayName |
string |
Specifies the name of the away team. |
homeScore |
int |
Specifies the score of the home team.The 'homeScore' and 'awayScore' represent gross for golf event and the value for event winner bet type, if the value is more than the other means the lost one. |
awayScore |
int |
Specifies the score of the away team.The 'homeScore' and 'awayScore' represent gross for golf event and the value for event winner bet type, if the value is more than the other means the lost one. |
htHomeScore |
int |
Specifies the 1st score of the home team. |
htAwayScore |
int |
Specifies the 1st score of the away team. |
gameStatus |
string |
Specifies the status of the game: running: The event hasn't started or is undergoing.closed: The event has been closed before starts.postponed: The event has postponed.completed: The event has been settled.refund: The event has refund. |
winItem |
string? |
Specifies the final home score and away score. Only support:Ice Hockey(4) / Tennis(5) / Volleyball(6) / Baseball(8) / Badminton(9) / Muay Thai(44) |
cornerSequence |
string? |
Specifies the corner sequence. |