Include download .mp4 link in api request please

Hi,
It’s really save time and easy to develop app without waste time to get .mp4 link.

After test and found the option to Enable MP4 Downloads option on each video after upload, this way very hard if has many video in Stream.

And yes, API to list video but it does not have the link to download mp4 like this: [Sample MP4 link] https://customer-62owrcoxeucjj1ck.cloudflarestream.com/a4cf278b5ebc2919d6a6fc7273fb7300/downloads/default.mp4

Could you include MP4 Download link in API too please [API List videos] https://developers.cloudflare.com/api/operations/stream-videos-list-videos it really easy for me to fetch it into my flutter app, because now not yet support HLS Manifest URL.

Thanks,

Hi @sujaritnrc

You should be able to add a download link via api by using this documentation here: Download videos · Cloudflare Stream docs

Hi @louise2

I found that but if possible include it into API JSON here: https://developers.cloudflare.com/api/operations/stream-videos-list-videos

This make it easy to get it rather than make request other API call. This way I can use low-code platform just only calling to cloudflare API list videos than I can get that download link. Easy and straightforward for whom like me not Pro coder.

Include like this:

"playback": { "dash": "https://customer-m033z5x00ks6nunl.cloudflarestream.com/ea95132c15732412d22c1476fa83f27a/manifest/video.mpd", "hls": "https://customer-m033z5x00ks6nunl.cloudflarestream.com/ea95132c15732412d22c1476fa83f27a/manifest/video.m3u8" "mp4": "https://customer-m033z5x00ks6nunl.cloudflarestream.com/ea95132c15732412d22c1476fa83f27a/manifest/video.mp4" },

Just make it clear:

Currently Stream when click on each video to get all info like this:

but it required manually enable Download MP4 in setting. It is too difficult, instead please when any video are upload to Stream just auto generate download mp4 link than include inside JSON when API is called.

Here example: the current Stream JSON and just auto add mp4 link when API called in this part: “playback”:

cURL example

curl -H "Authorization: Bearer $TOKEN" \n
  https://api.cloudflare.com/client/v4/accounts/fa022b20dec922c110a7628aed95aff5/stream/8a1471462972811a87fb02d739d1

Response body

{
  "uid": "8a147146297281162c7f2d739d1",
  "meta": {
    "filename": "production_id_4629795 (2160p).mp4",
    "filetype": "video/mp4",
    "name": "production_id_4629795 (2160p).mp4",
    "relativePath": "null",
    "type": "video/mp4"
  },
  "playback": {
    "hls": "https://customer-62owrcoxeucjj1ck.cloudflarestream.com/8a147146297281162c3a87fb02d739d1/manifest/video.m3u8",
    

"dash": "https://customer-62owrcoxeucjj1ck.cloudflarestream.com/8a147146297281162c3a87fb02d739d1/manifest/video.mpd"

"mp4": "https://customer-62owrcoxeucjj1ck.cloudflarestream.com/8a14714629728c3a87fb02d739d1/downloads/default.mp4"
  },
}
1 Like

I would also like that feature. I have several hundred videos I need to update and manually enabling mp4 is extremely painful. Should be easy for Cloudflare to enable that automatically or programmatically via the API.