# /phone/call\_logs endpoint returns only 1 month of data

**URL:** <https://devforum.zoom.us/t/phone-call-logs-endpoint-returns-only-1-month-of-data/42360>\
**Category:** API and Webhooks\
**Created:** [February 2, 2021, 9:16pm UTC](https://devforum.zoom.us/t/phone-call-logs-endpoint-returns-only-1-month-of-data/42360 "2021-02-02T21:16:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhbaggs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jhbaggs/32/22543_2.png) [@jhbaggs](https://devforum.zoom.us/u/jhbaggs)\
**Post date:** [February 2, 2021, 9:16pm UTC](https://devforum.zoom.us/t/phone-call-logs-endpoint-returns-only-1-month-of-data/42360/1 "2021-02-02T21:16:41Z")

</div>

**Description**  
When querying the API endpoint below, data returned is only for 1 month instead of the requested 6 months.

> **[Get Account's Call Logs - Phone - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/phone/accountcalllogs)**
>
> Retrieve call logs for an account. 
> 
> Scopes: phone:read:admin
> Rate Limit Label: Heavy
> Prerequisite:
> 1\\. Business or Enterprise account
> 2\\. A Zoom Phone...

Unlike the “User call logs endpoint”, which mentions that you must query in 1 month increments, this endpoint does not mention this limitation.

The request made on Feb 1st was:  
GET [https://api.zoom.us/v2/phone/call\_logs?from=2020-08-01&to=2021-02-01](https://api.zoom.us/v2/phone/call_logs?from=2020-08-01&to=2021-02-01)  
The response data appears like the following, and indicates that it’s only retrieving data from 2021-01-01 to 2021-02-01:  
{“next\_page\_token”:"\*\*\*\*\*\*\*",“page\_size”:30,“total\_records”:4932,“from”:“2021-01-01”,“to”:“2021-02-01”,“call\_logs”:[{“id”: … records listed here …}]}

Is there something I’m doing wrong here? Perhaps we’re requesting data too close to the 6 month mark, or perhaps the data must be requested sections of 1 month at a time?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 3, 2021, 7:35pm UTC](https://devforum.zoom.us/t/phone-call-logs-endpoint-returns-only-1-month-of-data/42360/2 "2021-02-03T19:35:04Z")

</div>

Hey @jhbaggs,

Thank you for reaching out to the Zoom Developer Forum. When it comes to this API, it looks like `from` and `to` date will need to be within one month of each other so that the request is retrieving data in one-month increments.

@shrijana.g Can we update the [Get Account’s Call Logs API](https://marketplace.zoom.us/docs/api-reference/zoom-api/phone/accountcalllogs) documentation to reflect that the `to` and `from` fields need to be in one-month increments?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![shrijana.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shrijana.g/32/605_2.png) [@shrijana.g](https://devforum.zoom.us/u/shrijana.g)\
**Post date:** [February 11, 2021, 6:00pm UTC](https://devforum.zoom.us/t/phone-call-logs-endpoint-returns-only-1-month-of-data/42360/3 "2021-02-11T18:00:30Z")

</div>

@MaxM @jhbaggs Thanks for flagging this. The query param description in the reference doc has been updated with this information.

Thanks,  
Shrijana

---

<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 14, 2021, 4:01am UTC](https://devforum.zoom.us/t/phone-call-logs-endpoint-returns-only-1-month-of-data/42360/4 "2021-03-14T04:01:04Z")

</div>

Closed on March 14, 2021, 4:01am UTC

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