beta GetStreaming - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get streaming url.
Request
GET /sports/{version}/GetStreaming?sportType=xx&streamingOption=xx&channelCode=xx
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 |
sportType |
int |
Yes |
Specifies the identifier of the sport. |
streamingOption |
int |
Yes |
Specifies the identifier of the streaming. |
channelCode |
string |
Yes |
Specifies the code of the streaming. |
Response
{
"StreamingUrl": string,
"StreamingUrlH5": string,
"StreamingUrlCN": string,
"StreamingUrlNonCN": string,
}
Name |
Format |
Description |
Queryable |
Query Example |
StreamingUrl |
string |
Streaming URL for H5 .m3u8Must use videojs to play, how to integrate please refer here |
No |
— |
streamingUrlH5 |
string |
Streaming URL for H5 |
No |
— |
streamingUrlCN |
string |
Streaming URL for .m3u8 format (For China visitor) |
No |
— |
streamingUrlNonCN |
string |
Streaming URL for .m3u8 format (For non China visitor) |
No |
— |