# How to pass parameters into the recordings api

**URL:** <https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335>\
**Category:** API and Webhooks\
**Created:** [January 30, 2023, 2:22pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335 "2023-01-30T14:22:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![radicallyrooted](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@radicallyrooted](https://devforum.zoom.us/u/radicallyrooted)\
**Post date:** [January 30, 2023, 2:22pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/1 "2023-01-30T14:22:48Z")

</div>

I have a newb question but couldn’t find it in the forum.

I’m trying to use this API: [https://developers.zoom.us/docs/api-reference/zoom-api/methods/#operation/recordingsList](https://developers.zoom.us/docs/api-reference/zoom-api/methods/#operation/recordingsList) which works fine with no parameters, but I wanted to add a from date. When I tried adding this as a get parameter to my request, it gave me a 400. I then looked at the example and it looks like a JSON packet.

My question is how to send a JSON packet on a get request? I can’t seem to find this in the documentation.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 30, 2023, 9:54pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/2 "2023-01-30T21:54:50Z")

</div>

Hi @radicallyrooted ,

No problem, check out our Postman public workspace:

[https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/request/22097587-977cb9a1-a6df-4bea-8759-2fd3efb754b4?ctx=documentation](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/request/22097587-977cb9a1-a6df-4bea-8759-2fd3efb754b4?ctx=documentation)

You can fork this endpoint to your own workspace and replace the query params accordingly. Also not the documentation on the side or “code snippet” option on the side to populate code samples in different languages:

 ![Screen Shot 2023-01-30 at 1.52.30 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/9/d94be5a76c3e003f67753d6a84c1d3512241b0a9.png)

---

<div class="post-metadata">

**Author:** ![thom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thom1/32/46586_2.png) [@thom1](https://devforum.zoom.us/u/thom1)\
**Post date:** [March 21, 2023, 6:55pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/4 "2023-03-21T18:55:26Z")

</div>

OK, here is the URL I am calling:

[https://api.zoom.us/v2/users/me/recordings](https://api.zoom.us/v2/users/me/recordings)? from=2023-03-6& to=2023-03-21

There are a number of videos in this range, but here is the response I’m getting back?

{“from”:“2023-03-20”,“to”:“2023-03-21”,“page\_count”:0,“page\_size”:0,“total\_records”:0,“next\_page\_token”:“”,“meetings”:}

Why did the date range change and why are there no videos? Are some of the other parameters required to make this work? Are all of the parameters required that are on the postman? If so, why isn’t it spelled out in the docs?

---

<div class="post-metadata">

**Author:** ![thom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thom1/32/46586_2.png) [@thom1](https://devforum.zoom.us/u/thom1)\
**Post date:** [March 21, 2023, 8:17pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/5 "2023-03-21T20:17:01Z")

</div>

Sorry, posted below.

---

<div class="post-metadata">

**Author:** ![anawilliam850](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anawilliam850/32/33827_2.png) [@anawilliam850](https://devforum.zoom.us/u/anawilliam850)\
**Post date:** [March 21, 2023, 8:25pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/6 "2023-03-21T20:25:58Z")

</div>

> [@radicallyrooted](#):
>
> I have a newb question but couldn’t find it in the forum.
> 
> I’m trying to use this API: [https://developers.zoom.us/docs/api-reference/zoom-api/methods/#operation/recordingsList](https://developers.zoom.us/docs/api-reference/zoom-api/methods/#operation/recordingsList) which works fine with no parameters, but I wanted to add a from date. When I tried adding this as a get parameter to my request, it gave me a 400. I then looked at the example and it looks like a JSON packet.
> 
> My question is how to send a JSON packet on a get request? I can’t seem to find this in the documentation.

Thanks for the information about how to pass parameters into the recordings api

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 21, 2023, 9:20pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/7 "2023-03-21T21:20:01Z")

</div>

> [@thom1](#):
>
> [https://api.zoom.us/v2/users/me/recordings](https://api.zoom.us/v2/users/me/recordings)? from=2023-03-6& to=2023-03-21

Hi @thom1 , it needs to be in UTC format: ‘yyyy-mm-dd’. Change from 2023-03-6 to 2023-03-06 and try again. Please also confirm whether this is for a user-level app and if you’re passing `me` because you’re checking for your recordings. If not, pass the userId or email address of the user you’re pulling recordings for (provided you have authorized access to make those queries).

---

<div class="post-metadata">

**Author:** ![thom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thom1/32/46586_2.png) [@thom1](https://devforum.zoom.us/u/thom1)\
**Post date:** [March 21, 2023, 9:47pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/8 "2023-03-21T21:47:14Z")

</div>

Well, that was stupid.

Yes, I’m using `me`.

OK, I have modified the url to:` https://api.zoom.us/v2/users/me/recordings? from=2023-03-06& to=2023-03-21` and it still returns

`{"from":"2023-03-20","to":"2023-03-21","page_count":0,"page_size":0,"total_records":0,"next_page_token":"","meetings":[]}`

---

<div class="post-metadata">

**Author:** ![thom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thom1/32/46586_2.png) [@thom1](https://devforum.zoom.us/u/thom1)\
**Post date:** [March 22, 2023, 3:33pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/9 "2023-03-22T15:33:14Z")

</div>

Somehow spaces end up before “to” and “from” and that appears to be causing the issue. I have now resolved it.

The original problem appears to be that you can’t specify a from without a to date. These are provided as query parameters, so the JSON reference in the documentation is wrong.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 22, 2023, 4:47pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/10 "2023-03-22T16:47:11Z")

</div>

@thom1 , I’m glad you resolved with the spacing.

> [@thom1](#):
>
> The original problem appears to be that you can’t specify a from without a to date. These are provided as query parameters, so the JSON reference in the documentation is wrong.

You included the “to” date parameter though. How could it be clearer? Stating that it is mandatory if looking within a date range?

---

<div class="post-metadata">

**Author:** ![thom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thom1/32/46586_2.png) [@thom1](https://devforum.zoom.us/u/thom1)\
**Post date:** [March 22, 2023, 5:05pm UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/11 "2023-03-22T17:05:34Z")

</div>

Yes. By saying you must specify from and to both if you specify either one.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 25, 2024, 8:42am UTC](https://devforum.zoom.us/t/how-to-pass-parameters-into-the-recordings-api/82335/12 "2024-03-25T08:42:15Z")

</div>

Closed on March 25, 2024, 8:42am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
