Nearly there. You solved the mystery and now I have to automate it and put in script.
Code:
C:\>curl -k -H "Accept: application/json;pk=BCpkADawqM1UIU4favtR1Jj4rqM0ZAkYwMEbgN9bsEpJ2150CdxJmRIG8jK-Up_9w4w37x3tP1AsoO_MZhD_XoAGkdKWxymaaw4OHuhPn_lEJczODTm3AO7S08gLFPnLnb-FcKJwXhbxCQ10" https://edge.api.brightcove.com/playback/v1/accounts/5377161796001/videos/6168209415001
{"poster":"https://cf-images.eu-west-1.prod.boltdns.net/v1/static/5377161796001/7ca3cb2c-eae6-485b-9ca0-106095c046da/81b510f3-7a73-49bf-a2da-c2ce620eed3c/1280x720/match/image.jpg","thumbnail":"https://cf-images.eu-west-1.prod.boltdns.net/v1/static/5377161796001/7ca3cb2c-eae6-485b-9ca0-106095c046da/2241157d-98d1-468d-919b-3e058b03b695/160x90/match/image.jpg","poster_sources":[{"src":"https://cf-images.eu-west-1.prod.boltdns.net/v1/static/5377161796001/7ca3cb2c-eae6-485b-9ca0-106095c046da/81b510f3-7a73-49bf-a2da-c2ce620eed3c/1280x720/match/image.jpg"}],"thumbnail_sources":[{"src":"https://cf-images.eu-west-1.prod.boltdns.net/v1/static/5377161796001/7ca3cb2c-eae6-485b-9ca0-106095c046da/2241157d-98d1-468d-919b-3e058b03b695/160x90/match/image.jpg"}],"description":null,"tags":[],"cue_points":[],"custom_fields":{},"account_id":"5377161796001","sources":[{"asset_id":"6168211852001","src":"https://i24alive2.akamaized.net/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/playlist-all_dvr.m3u8?__nn__=5476555825001\u0026hdnea=st=1602100800~exp=1602104400~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=7481ab35c27b510dceb7657c4a7de7a4c6fd95c0a0491b00c01278b09cb76feb\u0026__nn__=5476555825001\u0026hdnea=st=1593502200~exp=1593505800~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=e10085a246c4608e9f04e7d4b925449af4c8477024068d6ca8e4e3f9de7364b1\u0026__nn__=5476555825001\u0026hdnea=st=1579100400~exp=1579104000~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=c186cee77d80e35d26659b79813e3945270ce3339b49292ac0a39914dba1ffc5","type":"application/vnd.apple.mpegurl"}],"name":"Arabic live free","reference_id":null,"long_description":null,"duration":0,"economics":"AD_SUPPORTED","text_tracks":[],"published_at":"2020-08-25T18:40:33.825Z","created_at":"2020-06-30T08:00:26.822Z","updated_at":"2020-08-25T18:40:33.851Z","offline_enabled":false,"link":null,"id":"6168209415001","ad_keys":null}
I try to get the header and to work arround this error:
"error_code": "INVALID_POLICY_KEY",
"message": "Request policy key is missing or invalid"
Code:
GET https://edge.api.brightcove.com/playback/v1/accounts/5377161796001/videos/6168209415001 HTTP/1.1
Host: edge.api.brightcove.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Accept: application/json;pk=BCpkADawqM1UIU4favtR1Jj4rqM0ZAkYwMEbgN9bsEpJ2150CdxJmRIG8jK-Up_9w4w37x3tP1AsoO_MZhD_XoAGkdKWxymaaw4OHuhPn_lEJczODTm3AO7S08gLFPnLnb-FcKJwXhbxCQ10
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://www.i24news.tv/ar/%D9%85%D8%A8%D8%A7%D8%B4%D8%B1
Origin: https://www.i24news.tv
DNT: 1
Connection: keep-alive
If these fields aren't volatile there isn't need to get this header every time and code you posted is enough.