# /phone/common\_areas - Does not return 'total\_records' in response header

**URL:** <https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182>\
**Category:** Phone\
**Created:** [August 13, 2022, 8:46pm UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182 "2022-08-13T20:46:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dupination](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dupination/32/35614_2.png) [@dupination](https://devforum.zoom.us/u/dupination)\
**Post date:** [August 13, 2022, 8:46pm UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182/1 "2022-08-13T20:46:28Z")

</div>

\_\_

> **[Zoom Phone API](https://marketplace.zoom.us/docs/api-reference/phone/methods/#operation/listCommonAreas)**
>
> API Reference for /api-reference/phone/methods

**Description**  
The responses I get from the Zoom API have the number of records that will be returned in the response header. For /phone/common\_areas no total records field is declared in the header. Is this expected?

**Error?**

```auto
{
    "next_page_token": "",
    "page_size": 300,
    "common_areas": [
        {

```

vs

```auto
{
    "next_page_token": "",
    "page_size": 300,
    **"total_records": 65** ,
    "devices": [
        {

```

---

<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:** [August 16, 2022, 7:25pm UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182/2 "2022-08-16T19:25:44Z")

</div>

Hi @dupination ,

Yes this is expected API behavior. Thanks for clarifying!

Gianni

---

<div class="post-metadata">

**Author:** ![dupination](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dupination/32/35614_2.png) [@dupination](https://devforum.zoom.us/u/dupination)\
**Post date:** [August 17, 2022, 1:07pm UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182/3 "2022-08-17T13:07:47Z")

</div>

Hey @gianni.zoom

Thanks for the reply. Do you know why this response is not consistent with other API calls?  
Is this something that could be added on your end?

Thanks!

---

<div class="post-metadata">

**Author:** ![dennis.raulien](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dennis.raulien/32/36780_2.png) [@dennis.raulien](https://devforum.zoom.us/u/dennis.raulien)\
**Post date:** [September 13, 2023, 10:23am UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182/4 "2023-09-13T10:23:49Z")

</div>

Can you explain, why this is the expected API behaviour? This is not consistent to all of your other API calls and I’d like if you can deliver consistent API behaviors.  
For many scripting tasks this is a very important information, basically when you work with the default **page\_size** and **next\_page\_tokens**

---

<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:** [September 15, 2023, 12:44pm UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182/5 "2023-09-15T12:44:14Z")

</div>

Hi @dennis.raulien ,

I cannot recall the original context and cannot confirm if this is still expected. Can you please send an updated example? Thanks!

---

<div class="post-metadata">

**Author:** ![dennis.raulien](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dennis.raulien/32/36780_2.png) [@dennis.raulien](https://devforum.zoom.us/u/dennis.raulien)\
**Post date:** [September 15, 2023, 1:18pm UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182/7 "2023-09-15T13:18:14Z")

</div>

Hi Gianni.

The context is, that the API GET /phone/common\_areas ( documented here [listCommonAreas](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/listCommonAreas))  
don’t return the value **total\_records** like all the other APIs does. And the question is, why is that expected?  
Every other API call which “list” basic information like [listPhoneDevices](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/listPhoneDevices) or [listPhoneUsers](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/listPhoneUsers) returns the key values **total\_records** , **page\_size** and **next\_page\_token** (and of course the real needed information.

---

<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:** [September 21, 2023, 8:11pm UTC](https://devforum.zoom.us/t/phone-common-areas-does-not-return-total-records-in-response-header/74182/8 "2023-09-21T20:11:36Z")

</div>

Hi @dennis.raulien ,

I will look into this again. I may have overlooked this and should have inquired further. Thanks for your patience!
