# Trying to get /report/ logs using curl

**URL:** <https://devforum.zoom.us/t/trying-to-get-report-logs-using-curl/100545>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [December 21, 2023, 8:51am UTC](https://devforum.zoom.us/t/trying-to-get-report-logs-using-curl/100545 "2023-12-21T08:51:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![roshan.jangid](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@roshan.jangid](https://devforum.zoom.us/u/roshan.jangid)\
**Post date:** [December 21, 2023, 8:51am UTC](https://devforum.zoom.us/t/trying-to-get-report-logs-using-curl/100545/1 "2023-12-21T08:51:46Z")

</div>

i am using the below curl method to get the logs for specific date range

curl -X GET “[https://api.zoom.us/v2/report/operationlogs](https://api.zoom.us/v2/report/operationlogs)” -H “Authorization: Bearer Token” -H “Content-Type: application/json” -d “{“from”: “23-12-05”, “to”: “2023-12-06”}”

below output is what i am receiving  
{“from”:“2023-12-20”,“to”:“2023-12-21”,“page\_size”:30,“next\_page\_token”:“”,“operation\_logs”:}  
So, problem is with output data what i am receiving is different data according the date parameters i have passed in the method.  
with above curl method i am getting recent generate logs only instead of the date parameter i have passed method

---

<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:** [December 28, 2023, 4:44pm UTC](https://devforum.zoom.us/t/trying-to-get-report-logs-using-curl/100545/2 "2023-12-28T16:44:59Z")

</div>

Hi @roshan.jangid

> [@roshan.jangid](#):
>
> curl -X GET “[https://api.zoom.us/v2/report/operationlogs”](https://api.zoom.us/v2/report/operationlogs%E2%80%9D) -H “Authorization: Bearer Token” -H “Content-Type: application/json” -d “{“from”: “23-12-05”, “to”: “2023-12-06”}”

Change to four year date for your “from” parameter. It has to be in ‘yyyy-mm-dd’ format otherwise it will overwrite your inputs.

---

<div class="post-metadata">

**Author:** ![roshan.jangid](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@roshan.jangid](https://devforum.zoom.us/u/roshan.jangid)\
**Post date:** [December 28, 2023, 5:08pm UTC](https://devforum.zoom.us/t/trying-to-get-report-logs-using-curl/100545/4 "2023-12-28T17:08:17Z")

</div>

HI @gianni.zoom  
Sorry that’s a typo error only in the description. the problem is same with ‘yyyy-mm-dd’ format

---

<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:** [December 28, 2023, 5:50pm UTC](https://devforum.zoom.us/t/trying-to-get-report-logs-using-curl/100545/5 "2023-12-28T17:50:49Z")

</div>

Hi @roshan.jangid ,

Okay I noticed something else.

> [@roshan.jangid](#):
>
> curl -X GET “[https://api.zoom.us/v2/report/operationlogs”](https://api.zoom.us/v2/report/operationlogs%E2%80%9D) -H “Authorization: Bearer Token” -H “Content-Type: application/json” -d “{“from”: “23-12-05”, “to”: “2023-12-06”}”

I’m not a bash scripting expert, but it may be how the query parameters are in the request. From further research, if using -d, for GET requests, it’s recommended to put each parameter as a separate -d instance:

- [How to Send GET Requests With cURL](https://oxylabs.io/blog/curl-get-requests)
- [How to include an '&' character in a bash curl statement - Stack Overflow](https://stackoverflow.com/questions/13339469/how-to-include-an-character-in-a-bash-curl-statement)

Alternatively, try this with the query parameters appended to the url:

`curl -X GET "https://api.zoom.us/v2/report/operationlogs?from=2023-12-05&to=2023-12-06" -H "Authorization: Bearer <<YOUR TOKEN>>" -H "Accept: application/json"`

---

<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:** [January 2, 2024, 8:59am UTC](https://devforum.zoom.us/t/trying-to-get-report-logs-using-curl/100545/6 "2024-01-02T08:59:28Z")

</div>

Closed on January 2, 2024, 8:59am UTC

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