Can't get recordings API to honor date params

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":[]}

Thanks

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

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:

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:

Thanks!
Will

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