GET /api/streams
The response from this endpoint provides detailed information about various streams within their categories, structured like the below:
boolean
): Indicates if the request was successful.integer
): Unix timestamp of when the response was generated.string
): A message prompting interested parties to contact for further API usage details.float
): A performance metric, possibly indicating API response time or efficiency.array
): An array containing objects for different categories:string
): Name of the category (e.g., "Basketball", "Combat Sports").integer
): Unique identifier for the category.integer
): Flag to indicate if this category is always live (0 = no, 1 = yes).array
): List of individual stream objects within the category:integer
): Unique identifier for the stream.string
): Name or title of the event or stream.string
): A tag or broadcaster label for the stream.string
): URL for the promotional image of the stream.string
): URL-friendly name used in the stream's URI.integer
): Unix timestamp indicating when the stream starts.integer
): Unix timestamp indicating when the stream ends.integer
): Indicates if the stream is always live (0 = no, 1 = yes).string
): The category name this stream belongs to.string
): The iframe you will use to embed. In this case, contacting specific stream endpoint is not required. If this value isn't present, we have not added it yet.integer
): Indicates if past streams are allowed to be viewed (0 = no, 1 = yes).
{
"success": true,
"timestamp": 1734299469,
"READ_ME": "Interested in using our API? Contact us for more information.",
"performance": 3.15,
"streams": [
{
"category": "Basketball",
"id": 37,
"always_live": 0,
"streams": [
{
"id": 2940,
"name": "Pelicans at Pacers",
"tag": "Local Broadcast",
"poster": "https://cdn.nba.com/manage/2024/12/nop-@-ind-12_15_2024-game-card-16_9.png",
"uri_name": "nba-reg/week-8/nop-ind",
"starts_at": 1734300000,
"ends_at": 1734310800,
"always_live": 0,
"category_name": "Basketball",
"allowpaststreams": 0
},
// ... Additional streams
]
},
// ... Additional categories
]
}
always_live
and allowpaststreams
fields are binary indicators where 1
means true and 0
means false.starts_at
, ends_at
, timestamp
) are in Unix timestamp format.uri_name
should be used to construct URLs for accessing specific streams or for API calls related to that stream.uri_name
to fetch detailed information or access specific streams.poster
URL can be used to display promotional images in user interfaces.This documentation outlines the structure and expected use of the response from the /api/streams
endpoint. Remember to handle the API response appropriately in your application, particularly with regards to time management and image handling.