# Fetching recordings using session\_name

**URL:** <https://devforum.zoom.us/t/fetching-recordings-using-session-name/120138>\
**Category:** Web\
**Created:** [October 31, 2024, 5:55pm UTC](https://devforum.zoom.us/t/fetching-recordings-using-session-name/120138 "2024-10-31T17:55:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [November 5, 2024, 11:59am UTC](https://devforum.zoom.us/t/fetching-recordings-using-session-name/120138/2 "2024-11-05T11:59:23Z")

</div>

@alanc

There are two ways to solve this:

1. You can use `client.getSessionInfo().sessionId` to get the `sessionId` and sync that with your database. You can see an example of this in our [Telehealth sample app](https://github.com/zoom/VideoSDK-Web-Telehealth/blob/17537e2009612e24e8e0c5abacc64ed153a7ab29/src/components/videocall/Videocall.tsx#L36). We store all different sessionIds for a single “session name” in the database. We can then [query those recordings](https://github.com/zoom/VideoSDK-Web-Telehealth/blob/17537e2009612e24e8e0c5abacc64ed153a7ab29/src/server/api/routers/zoom.ts#L32) using the API.

2. This is **not** something I would recommend since we rate limit the API but you can also query all sessions and recursively get the recordings as a last resort. [Link to code](https://github.com/zoom/VideoSDK-Web-Telehealth/blob/f064caafe78c35ea82d6ef7adc18addd35a1b8a5/src/server/api/routers/zoom.ts#L7)

---

_[View the full topic](https://devforum.zoom.us/t/fetching-recordings-using-session-name/120138)._
