# How can I upload zoom recorded video on amazon s3 automatically, not the url the complete video using node js

**URL:** <https://devforum.zoom.us/t/how-can-i-upload-zoom-recorded-video-on-amazon-s3-automatically-not-the-url-the-complete-video-using-node-js/92553>\
**Category:** Cloud Recordings\
**Tags:** recording\
**Created:** [July 28, 2023, 6:31am UTC](https://devforum.zoom.us/t/how-can-i-upload-zoom-recorded-video-on-amazon-s3-automatically-not-the-url-the-complete-video-using-node-js/92553 "2023-07-28T06:31:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushi.singh](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ayushi.singh](https://devforum.zoom.us/u/ayushi.singh)\
**Post date:** [July 28, 2023, 6:31am UTC](https://devforum.zoom.us/t/how-can-i-upload-zoom-recorded-video-on-amazon-s3-automatically-not-the-url-the-complete-video-using-node-js/92553/1 "2023-07-28T06:31:16Z")

</div>

How can I upload zoom recorded video on amazon s3 automatically, not the url the complete video using node js

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [July 28, 2023, 9:56pm UTC](https://devforum.zoom.us/t/how-can-i-upload-zoom-recorded-video-on-amazon-s3-automatically-not-the-url-the-complete-video-using-node-js/92553/2 "2023-07-28T21:56:15Z")

</div>

@ayushi.singh  
When you call the Get Recordings API, it gives you the download\_url. You can download the recording from there and then create a custom logic that uploads it. We do not have a ready to use code for this

---

<div class="post-metadata">

**Author:** ![ayushi.singh](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ayushi.singh](https://devforum.zoom.us/u/ayushi.singh)\
**Post date:** [July 31, 2023, 7:51am UTC](https://devforum.zoom.us/t/how-can-i-upload-zoom-recorded-video-on-amazon-s3-automatically-not-the-url-the-complete-video-using-node-js/92553/3 "2023-07-31T07:51:19Z")

</div>

Can you please let me know what custom logic needs to be created, do you have any reference for this?

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [August 1, 2023, 8:34pm UTC](https://devforum.zoom.us/t/how-can-i-upload-zoom-recorded-video-on-amazon-s3-automatically-not-the-url-the-complete-video-using-node-js/92553/4 "2023-08-01T20:34:54Z")

</div>

Here is a sample nodejs code to list and download zoom recordings:

```auto
const listRecordings = async () => {
    const response = await axios.get(`https://api.zoom.us/v2/users/${zoomUserId}/recordings`, {
        headers: {
            'Authorization': `Bearer ${zoomJwtToken}`,
            'Content-Type': 'application/json',
        },
    });

    return response.data;
};

const downloadRecording = async (url) => {
    const response = await axios.get(url, { responseType: 'stream' });

    response.data.pipe(fs.createWriteStream('recording.mp4'));

    return new Promise((resolve, reject) => {
        response.data.on('end', () => resolve());
        response.data.on('error', () => reject());
    });
};

//Your logic to upload recording to amazon s3 will go here

```
