Server Api Streams
Manage IPTV streams using MidnightStreamer Pro Server API. View online streams, offline streams, and remotely start or stop stream IDs.
🎬 MidnightStreamer Pro API – Stream Management
MidnightStreamer Pro provides a set of API endpoints that allow you to monitor and control the status of IPTV streams in real time. These endpoints use simple GET requests and require no POST data.
✅ API Access Configuration
Before using any stream-related API endpoint:
- Navigate to General Settings → API Settings
- Add your server IP to Allowed IPs
- Copy your API Key
You can authenticate via URL segment:
/api/streams/.../{api_key}
No POST parameters required.
📡 Get Online Streams
Endpoint:
http://your-domain:8000/api/streams/online/{api_key}
Method: GET
Description: Returns a complete list of streams currently online.
🔌 Get Offline Streams
Endpoint:
http://your-domain:8000/api/streams/offline/{api_key}
Method: GET
Description: Shows all streams that are offline, stopped, or not running.
🔁 Enable or Restart Streams
Endpoint:
http://your-domain:8000/api/streams/start/{api_key}/{stream_1_id}/{stream_2_id}/.../{stream_X_id}
Method: GET
Description: Starts or restarts one or multiple streams.
Example:
http://your-domain:8000/api/streams/start/APIKEY/12/14/33
⛔ Disable or Stop Streams
Endpoint:
http://your-domain:8000/api/streams/stop/{api_key}/{stream_1_id}/{stream_2_id}/.../{stream_X_id}
Method: GET
Description: Stops one or multiple streams.
Example:
http://your-domain:8000/api/streams/stop/APIKEY/12/14/33
This guide covers all essential operations for stream state control using the MidnightStreamer Pro Server API.