Note: You must contact Hive to have streams allocated to your project before you can use this feature.

This endpoint will retrieve whether a stream's status is active or stopped.

EXAMPLES


curl --request GET \
  --url https://api.thehive.ai/api/v2/stream/status \
  --header 'accept: application/json' \
  --header 'authorization: token <API_KEY>'
var request = require("request");

var options = {
  method: 'GET',
  url: 'https://api.thehive.ai/api/v2/stream/active',
  headers: {
    accept: 'application/json',
    authorization: 'token <API_KEY>'
  }
};  

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
import requests
url = 'https://api.thehive.ai/api/v2/stream/active'
headers = {"authorization": "token <API_KEY>", "accept": "application/json"}
response = session.get("https://api.thehive.ai/api/v2/stream/active", headers = headers)

RESULTS


{
    "stream_id": "2302d160-234b-11ed-847d-370749a0bad4",
    "url": "https://video-weaver.sjc05.hls.ttvnw.net/v1/playlist/CrcFRPz01COfjdu6RT-geII9UqNDUShFx2RXGZpMqm4St6CLcmnKILjFqYGAWiUuK9V_eFsDV9NvtcM1XSP-XPE9A4ako4cb-J3CuNNdfM5WAgWCbnvyvaDfN3N3N_8A-45fc5ly5V3lyMnokynPx1YcFv_ZM5ANaY5odau0W0mENQZE1X54U0LMDFdOqK3JDa-9C9cr61vb88-yVRIlUTRsaH5Yn2UdWpgVfGvgL7oBc1iX1ZKqhXLBNhPReYGt_LNhyfOkbyre3g2mCS3cRqvmCC0l2ngWdeDop8zw9keBKBPeeG9eS5mbveCUDccctlo3yOhKuJ4N0jEOFAG1r0rGufZj3_qtEiauTtE61W3qvj5eXwqc_68odI92rBNmpfrP4JXX4TN2eVFjrWa7fnE9qoFeDHYzOi99HMPVKpBl0UJiSTvrghnHHn4L8ZGeIi_BL0J0gbWCsYSBf1G4PX8qv3gFMvmuPeDPN_SIH2ZW_diBZ-QPzoP1CJvJT2L_vEuXqfuch91K7DOvUW-cR5SX5Ieowo0e1ZXnzqlXWESb6OQKAYxhcOGp57WeL5PgxGknaM6A_HMeS3yp00PLWL1GwNXnOZnkMhsxFX_v4AwiX134G7j6uGzI-iQiYzx4FPVrIVN3vKz8QAbxp_QkMBpEtHMgkRpfMxuzuG53D9QPTp4NTB_rip4sJxr8XxDfFGLWX1bZt40r6buMm3LQ2HV9vcs6EYSNcmcUPFbD2zGwEHW8kE0JErCOCC87uLFO7f0vgKSAcY6CkA107kJHfpv9Z4CErY2On1Fn5ZP--mffv0crLY3u3VbHy7b8UTUfNFk6mWoRAdSTaBYdqTZyUj7q7V4y2nlElcGMhpIrd07By00V4MH5V-ucULsWs_NaiCLrSPZT8jIFthvwwOKqGxH_qm-nmi0Z5IwaDPoj1kiAUv3ecreQBSABKgl1cy1lYXN0LTEw9gI.m3u8",
    "callback_url": "https://webhook.site/4f706551-2bb1-48ba-ace9-6170545d13d5",
    "message": "Stream Processing Active",
    "units_processed": 56
}
{
    "stream_id": "2302d160-234b-11ed-847d-370749a0bad4",
    "url": "https://video-weaver.sjc05.hls.ttvnw.net/v1/playlist/CrcFRPz01COfjdu6RT-geII9UqNDUShFx2RXGZpMqm4St6CLcmnKILjFqYGAWiUuK9V_eFsDV9NvtcM1XSP-XPE9A4ako4cb-J3CuNNdfM5WAgWCbnvyvaDfN3N3N_8A-45fc5ly5V3lyMnokynPx1YcFv_ZM5ANaY5odau0W0mENQZE1X54U0LMDFdOqK3JDa-9C9cr61vb88-yVRIlUTRsaH5Yn2UdWpgVfGvgL7oBc1iX1ZKqhXLBNhPReYGt_LNhyfOkbyre3g2mCS3cRqvmCC0l2ngWdeDop8zw9keBKBPeeG9eS5mbveCUDccctlo3yOhKuJ4N0jEOFAG1r0rGufZj3_qtEiauTtE61W3qvj5eXwqc_68odI92rBNmpfrP4JXX4TN2eVFjrWa7fnE9qoFeDHYzOi99HMPVKpBl0UJiSTvrghnHHn4L8ZGeIi_BL0J0gbWCsYSBf1G4PX8qv3gFMvmuPeDPN_SIH2ZW_diBZ-QPzoP1CJvJT2L_vEuXqfuch91K7DOvUW-cR5SX5Ieowo0e1ZXnzqlXWESb6OQKAYxhcOGp57WeL5PgxGknaM6A_HMeS3yp00PLWL1GwNXnOZnkMhsxFX_v4AwiX134G7j6uGzI-iQiYzx4FPVrIVN3vKz8QAbxp_QkMBpEtHMgkRpfMxuzuG53D9QPTp4NTB_rip4sJxr8XxDfFGLWX1bZt40r6buMm3LQ2HV9vcs6EYSNcmcUPFbD2zGwEHW8kE0JErCOCC87uLFO7f0vgKSAcY6CkA107kJHfpv9Z4CErY2On1Fn5ZP--mffv0crLY3u3VbHy7b8UTUfNFk6mWoRAdSTaBYdqTZyUj7q7V4y2nlElcGMhpIrd07By00V4MH5V-ucULsWs_NaiCLrSPZT8jIFthvwwOKqGxH_qm-nmi0Z5IwaDPoj1kiAUv3ecreQBSABKgl1cy1lYXN0LTEw9gI.m3u8",
    "callback_url": "https://webhook.site/4f706551-2bb1-48ba-ace9-6170545d13d5",
    "message": "Stream Processing Completed",
    "units_processed": 1807
}
HEADERS
string
required

Project API Token from hive customer dashboard. Prepend with 'token'