Introduction
Users can request programs scheduled on channels. Programs are imported by importers. Programs are returned based on channels and within a window starting from 04:00 AM on the given date until 04:00 AM on the following date. The result is cacheable.
...
Endpoint | Http method | Purpose |
---|---|---|
/api/metadata/v1/broadcast_slots/{channel_id}/{date} | GET | Get a list of broadcast slots based on channel_id within a window starting from 04:00 AM on the given date until 04:00 AM on the following date. |
This is a public API that requires no authentication.
Displaying broadcast schedule
...
The Channel API can be used to fetch all available channels and their IDs. The broadcast schedule for each channel can then be queried by calling the broadcast_slots API with the channel ID.
...
The services provided for each channel can be found in the Channel object in the "services_enabled" attribute. For convenience, the Channel object is included in the response from the broadcast_slots API. These services can be blacklisted for individual broadcast slots, meaning that service is not available for the given broadcast slot, even though it is normally enabled for the channel. For example, if the "npvr" service is enabled for a channel, but blacklisted for a broadcast slot aired on that channel, it means that the user is not allowed to record that broadcast slot. The blacklisting information is included in the broadcast slot object in the "services_blacklisted" attribute.
Language support
If the content data is available in multiple languages, specific languages can be requested from the API by specifying the language query parameter in the request.