Skip to main content

MidnightStreamer Docs & API

Server API Streams

🎬 MidnightStreamer Pro API – Stream Management

MidnightStreamer Pro includes powerful API endpoints for monitoring and controlling the state of IPTV streams. With simple GET-based API requests, you can view online/offline streams and remotely start or stop them as needed.


✅ API Access Configuration

Before using the API:

  1. Go to General Settings → API Settings
  2. Whitelist your server IP address
  3. Copy your API Key

You can use the api_key as a segment in the URL (GET request – no POST needed).


📡 Get Online Streams

Endpoint:

http://your-domain:8000/api/streams/online/{api_key}

Request Method: GET

Description: Returns a list of all streams currently online.


🔌 Get Offline Streams

Endpoint:

http://your-domain:8000/api/streams/offline/{api_key}

Request Method: GET

Description: Returns a list of streams that are currently offline or stopped.


🔁 Enable or Restart Streams

Endpoint:

http://your-domain:8000/api/streams/start/{api_key}/{stream_1_id}/{stream_2_id}/.../{stream_X_id}

Request Method: GET

Description: Starts one or more specified streams. Simply append the stream IDs to the URL.

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}

Request Method: GET

Description: Stops one or more specified streams.

Example:

http://your-domain:8000/api/streams/stop/APIKEY/12/14/33