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.(Get from /GetEventsAPI)
channelCode string Yes Specifies the code of the streaming.(Get from /GetEventsAPI)
* Need to take url encode first.

Response

{    
    "StreamingUrl": string?,
    "StreamingUrlH5": string?,
    "StreamingUrlCN": string?,
    "StreamingUrlNonCN": string?, 
    "StreamingUrlStreamer": string?
} 
Name Format Description Queryable Query Example
StreamingUrl string? Streaming URL for H5 .m3u8
Must 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 —
streamingUrlStreamer string? Streaming URL for Streamer No —

streamingUrlH5 (GLive) Embedded Guide

Please add the script below on the page where you load the video player:

<script src="https://gls.liveplugins.com/embed.js" data-site-id="gls"></script>
⚠️ **GitHub.com Fallback** ⚠️