# Zoom Cloud recording “download\_URL” working only in browser

**URL:** <https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358>\
**Category:** API and Webhooks\
**Tags:** dc, faq\
**Created:** [April 22, 2020, 4:28am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358 "2020-04-22T04:28:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![shravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shravan/32/2725_2.png) [@shravan](https://devforum.zoom.us/u/shravan)\
**Post date:** [April 22, 2020, 4:28am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/1 "2020-04-22T04:28:30Z")

</div>

I’m able to access download URLs fine and when the download URL is pasted into the browser it is downloading the mp4 file.

The same download\_url I’m using from nodeJS or python it is returning HTML Page as a response (Required Password HTML Page), Wrapped the URL with Nodejs it is returning status code as 401 and response body forbidden.

How can I access the Recorded meeting video from the backend code(Node JS or Python) ?

I’m using JWT Token to retrieve the download\_URL

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [April 22, 2020, 5:54pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/2 "2020-04-22T17:54:38Z")

</div>

Hi @shravan, I have removed the screenshot as it included sensitive account and recording data.

When accessing the recording, can you add a JWT as an `access_token` parameter to the download url?

Follow the [Get Meeting Recordings API](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingget) documentation reference on the download\_url for more information.

---

<div class="post-metadata">

**Author:** ![shravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shravan/32/2725_2.png) [@shravan](https://devforum.zoom.us/u/shravan)\
**Post date:** [April 23, 2020, 1:04am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/3 "2020-04-23T01:04:52Z")

</div>

Yes I’m adding access\_token parameter for that I’m passing jet token

download\_url? access\_token = Bearer \< JWT TOKEN \>

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [April 23, 2020, 5:17pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/4 "2020-04-23T17:17:18Z")

</div>

@shravan do you know if there are any [authentication profiles](https://support.zoom.us/hc/en-us/articles/360037756671-Authentication-Profiles-for-Cloud-Recordings) on your account or user level settings restricting access to cloud recordings from specific domains?

---

<div class="post-metadata">

**Author:** ![ankit](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@ankit](https://devforum.zoom.us/u/ankit)\
**Post date:** [May 21, 2020, 12:07pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/5 "2020-05-21T12:07:13Z")

</div>

did you find the solution ? I am not getting any response from zoom team and there is no way to implement this. Please someone provide solution for this.

---

<div class="post-metadata">

**Author:** ![shoeb](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@shoeb](https://devforum.zoom.us/u/shoeb)\
**Post date:** [May 26, 2020, 6:28pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/6 "2020-05-26T18:28:50Z")

</div>

Hi Shravan  
Did this work for you. I am having the same problem. Download\_url returns a html response and not the recording (using Node.js, JWT)  
Regards

---

<div class="post-metadata">

**Author:** ![shravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shravan/32/2725_2.png) [@shravan](https://devforum.zoom.us/u/shravan)\
**Post date:** [May 27, 2020, 3:25am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/7 "2020-05-27T03:25:18Z")

</div>

No it is not resolve,so I’m using webhook to fix that problem

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 1, 2020, 9:17pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/8 "2020-06-01T21:17:07Z")

</div>

Hey @ankit, @shoeb, @shravan,

Can you please share the code you are using to download the file?

Please share steps to reproduce the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![HyoSeong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hyoseong/32/10657_2.png) [@HyoSeong](https://devforum.zoom.us/u/HyoSeong)\
**Post date:** [June 29, 2020, 7:06am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/9 "2020-06-29T07:06:45Z")

</div>

Hey @tommy,

This is my code.

```
$destination = $dir . "/movie.mp4";
$authorization = 'Authorization: Bearer ' . $token;

$url = $url . '?access_token=' . $token;
$fp = fopen($destination, "w");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json' , $authorization));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);   
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);    
curl_setopt($ch, CURLOPT_FILE, $fp);

curl_exec($ch);
fclose($fp);

```

url and token is download\_url and download\_token in [Recording Completed](https://marketplace.zoom.us/docs/api-reference/webhook-reference/recording-events/recording-completed)

And result:  
{“status”:false,“errorCode”:401,“errorMessage”:“Forbidden”}

---

<div class="post-metadata">

**Author:** ![karasiov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/karasiov/32/11135_2.png) [@karasiov](https://devforum.zoom.us/u/karasiov)\
**Post date:** [June 29, 2020, 7:32am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/10 "2020-06-29T07:32:14Z")

</div>

I have same issue.

> [@Cannot download recording](https://devforum.zoom.us/t/cannot-download-recording/22594):
>
> include "vendor/autoload.php"; use \Firebase\JWT\JWT; $key = "\*\*\*\*\*\*\*\*\*"; $payload = array( "iss" =\> "\*\*\*\*\*\*", "exp" =\> time()+36000, ); $jwt = JWT::encode($payload, $key, 'HS256'); $curl = curl\_init(); $d = "https://us02web.zoom.us/rec/download/ABCDEFGH?access\_token=".$jwt; curl\_setopt\_array($curl, array( CURLOPT\_URL =\> $d, CURLOPT\_RETURNTRANSFER =\> true, CURLOPT\_ENCODING =\> "", CURLOPT\_MAXREDIRS =\> 10, CURLOPT\_TIMEOUT =\> 30, CURLOPT\_HTTP\_VERSION =\> CURL\_HTTP\_VERSION\_1\_1, CURL…

Can anybody help me?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 30, 2020, 9:10pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/11 "2020-06-30T21:10:08Z")

</div>

Hey @karasiov, @HyoSeong,

Can you try just using the ?access\_token=token query param and not the Authorization Bearer?

That should fix the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![HyoSeong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hyoseong/32/10657_2.png) [@HyoSeong](https://devforum.zoom.us/u/HyoSeong)\
**Post date:** [July 1, 2020, 1:55am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/12 "2020-07-01T01:55:24Z")

</div>

Thanks for reply, @tommy  
I changed my code

```
$destination = $dir . "/movie.mp4";
//$authorization = 'Authorization: Bearer ' . $token;
$url = $url . '?access_token=' . $token;
$fp = fopen($destination, "w");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
//curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json' , $authorization));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_FILE, $fp);

```

Then the result is

> Access denied

But cURL command works, postman works too. ( download\_url?access\_token=somelongtoken )  
(This is weird)

Temporary I use [Get Meeting Recordings](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingget) API, this API return download\_url too,  
But It doesn’t need any token to download.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 2, 2020, 12:08am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/13 "2020-07-02T00:08:54Z")

</div>

Hey @HyoSeong,

Can you try allowing redirects in your request to download the file:

> <https://stackoverflow.com/questions/18474690/is-there-a-way-to-follow-redirects-with-command-line-curl>

> [@HyoSeong](#):
>
> Temporary I use [Get Meeting Recordings](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingget) API, this API return download\_url too,  
> But It doesn’t need any token to download.

Does it have the token included?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![mokutsu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mokutsu/32/27515_2.png) [@mokutsu](https://devforum.zoom.us/u/mokutsu)\
**Post date:** [July 2, 2020, 8:46pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/14 "2020-07-02T20:46:54Z")

</div>

not OP but this fixed my 401 / getting HTML response. thanks!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 6, 2020, 11:09pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/15 "2020-07-06T23:09:48Z")

</div>

Thanks for sharing @mokutsu! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![psuhas](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/psuhas/32/12038_2.png) [@psuhas](https://devforum.zoom.us/u/psuhas)\
**Post date:** [July 16, 2020, 9:29pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/16 "2020-07-16T21:29:38Z")

</div>

For clarify the correct curl command that worked for me is

curl -L -X GET \<download\_url\_from\_meeting\_api\>?access\_token=\<jwt\_token\>

The docs are confusing on this one as \<download\_path\> is no where to be found

---

<div class="post-metadata">

**Author:** ![ssnukala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ssnukala/32/11894_2.png) [@ssnukala](https://devforum.zoom.us/u/ssnukala)\
**Post date:** [July 18, 2020, 1:29pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/17 "2020-07-18T13:29:19Z")

</div>

@tommy, @mokutsu  
I have the same issue I am able to download using a browser when I am logged in the Download url plus the JWT token as a query parameter works.  
But when I do the same using my php code using curl it gives password required page in return.  
@tommy. I see that there are multiple questions on this.  
I am guessing you may have something that worked end to end. So please post full code and steps that you guys have tested and work

1. Download the file using curl in PHP not command line shell
2. Get the actual file name instead of specifying one.

I have code for all this but I can not get past the password required using PHP curl.

Any help will be greatly appreciated.

Srinivas

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 22, 2020, 6:53am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/18 "2020-07-22T06:53:13Z")

</div>

Hey @psuhas,

Thanks for sharing and your feedback. We will use it to improve our docs.

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 22, 2020, 6:55am UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/19 "2020-07-22T06:55:39Z")

</div>

Hey @ssnukala,

Make sure of, add the JWT Token as a query param and not as a request header:

`download_url?access_token=JWT_TOKEN_HERE`

I see I have replied to a few of your posts already in this thread, let’s continue this discussion there:

> [@Download URL is not working](https://devforum.zoom.us/t/download-url-is-not-working/8348/60):
>
> Hey @ssnukala, Is your download url in this format: download\_url?access\_token=JWT\_TOKEN\_HERE If you are still having issues, please send your download\_url to [developersupport@zoom.us](mailto:developersupport@zoom.us) so we can assist further. Thanks, Tommy

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Emanuel\_Aguirre](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Emanuel\_Aguirre](https://devforum.zoom.us/u/Emanuel_Aguirre)\
**Post date:** [August 26, 2020, 4:36pm UTC](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358/20 "2020-08-26T16:36:56Z")

</div>

> [@HyoSeong](#):
>
> `$fp = fopen($destination, "w");`

you are trying to open the destinarion with write permission, please try with “r” instead of “w” like this:

`$fp = fopen($destination, "r");`

[Next page](https://devforum.zoom.us/t/zoom-cloud-recording-download-url-working-only-in-browser/14358.md?page=2)
