# Can't get recordings API to honor date params

**URL:** <https://devforum.zoom.us/t/cant-get-recordings-api-to-honor-date-params/42465>\
**Category:** API and Webhooks\
**Created:** [February 3, 2021, 5:43pm UTC](https://devforum.zoom.us/t/cant-get-recordings-api-to-honor-date-params/42465 "2021-02-03T17:43:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisPleasant](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrispleasant/32/22594_2.png) [@ChrisPleasant](https://devforum.zoom.us/u/ChrisPleasant)\
**Post date:** [February 3, 2021, 5:43pm UTC](https://devforum.zoom.us/t/cant-get-recordings-api-to-honor-date-params/42465/1 "2021-02-03T17:43:24Z")

</div>

I’m finally updating our meeting download scripts from v1 to v2, and am having problems retrieving recording lists.  
I’ve got the JWT created, retrieved the list of user id’s via /v2/users, but when I try to use the v2/users//recordings endpoint, it _always_ returns the default timeframe of yesterday → today (with no records, which is probably correct).  
I’m certain I’m making an elementary mistake but just can’t see it.  
We’re using curl via bash shell script.  
Here’s a couple of the variations I’ve tried:

```
response=$(curl https://api.zoom.us/v2/users/$host_id/recordings \
    -X GET \
    -d alg='HS256' \
    -d typ='JWT' \
    -H "$authstring" \
     --header 'content-type: application/json' \
     --data '{"from":"2020-01-01","to":"2020-01-20"}'
)

response=$(curl https://api.zoom.us/v2/users/$host_id/recordings \
    -X GET \
    -d alg='HS256' \
    -d typ='JWT' \
    -d from='2020-01-01' \
    -d to='2020-01-20' \
    -H "$authstring")

```

It’s Feb 3rd 2021 today - both of those return $response of  
`{"from":"2021-02-02","to":"2021-02-03","page_count":0,"page_size":0,"total_records":0,"next_page_token":"","meetings":[]}`

> **[List All Recordings - Cloud Recording - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingslist)**
>
> When a user records a meeting or a webinar by choosing the Record to the Cloud option, the video, audio, and chat text are recorded in the Zoom cloud. 
> ...

Thanks

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [February 4, 2021, 3:07pm UTC](https://devforum.zoom.us/t/cant-get-recordings-api-to-honor-date-params/42465/2 "2021-02-04T15:07:07Z")

</div>

Hey @ChrisPleasant,

Thanks for reaching out about this, and happy to help.

To clarify, `?to=2021-02-03&from=2021-02-02` is a valid set of params and should work. Can you confirm the User ID you’re passing in your request URL so that I can take a closer look? I will private message you so you can share that detail with me directly instead of here.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [February 5, 2021, 7:25pm UTC](https://devforum.zoom.us/t/cant-get-recordings-api-to-honor-date-params/42465/3 "2021-02-05T19:25:19Z")

</div>

Thanks for sharing those details, @ChrisPleasant !

So far, I’ve been able to set the params for these requests OK. Can you try the following cURL command and let me know if you have any better luck? For example:

```auto
curl --location --request GET 'https://api.zoom.us/v2/users/userId/recordings?from=2021-01-01&to=2021-01-18' \
--header 'Authorization: Bearer {token}'

```

This is what I get in Postman:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/7/07d093e5f201048ff33fffb86b9fd489e2757712.png)

Thanks!  
Will

---

<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 8, 2021, 5:26am UTC](https://devforum.zoom.us/t/cant-get-recordings-api-to-honor-date-params/42465/4 "2021-03-08T05:26:01Z")

</div>

Closed on March 8, 2021, 5:26am UTC

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