# Next\_page\_token not changing in /v2/metrics/meetings

**URL:** <https://devforum.zoom.us/t/next-page-token-not-changing-in-v2-metrics-meetings/22352>\
**Category:** API and Webhooks\
**Created:** [June 25, 2020, 1:57pm UTC](https://devforum.zoom.us/t/next-page-token-not-changing-in-v2-metrics-meetings/22352 "2020-06-25T13:57:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwc3f](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jwc3f/32/10914_2.png) [@jwc3f](https://devforum.zoom.us/u/jwc3f)\
**Post date:** [June 25, 2020, 1:57pm UTC](https://devforum.zoom.us/t/next-page-token-not-changing-in-v2-metrics-meetings/22352/1 "2020-06-25T13:57:11Z")

</div>

**Description**

I’m having a problem with the next\_page\_token not updating on calls to list meetings.  
Using the python zoomus library, but I’m to the point where I’m logging the http requests and checking the returned JSON.

Basically I see the initial call to list meetings, then I dump out the data returned. I call for the next page using the next\_page\_token and all I get back is the first page again.

```auto
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.zoom.us:443
DEBUG:urllib3.connectionpool:https://api.zoom.us:443 "GET /v2/metrics/meetings HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.zoom.us:443
DEBUG:urllib3.connectionpool:https://api.zoom.us:443 "GET /v2/metrics/meetings?next_page_token=T4e2Ciw7eyOKnpqDm0ZpRid5pIZ8F21d0J2 HTTP/1.1" 200 None

```

When I dump out the returned JSON the next page token from the first call is the same as that of the second call with next\_page\_token set. I think the behavior should be to return a new next\_page\_token

‘—Call with no token—’  
‘next\_page\_token’: ‘T4e2Ciw7eyOKnpqDm0ZpRid5pIZ8F21d0J2’,  
‘—Call with no token—’  
‘—Call with token—’  
‘next\_page\_token’: ‘T4e2Ciw7eyOKnpqDm0ZpRid5pIZ8F21d0J2’,  
‘—Call with token—’

**Code snip**

```auto
# get list of current meetings
meetings_resp = client.metric.list_meetings()
meetings_json = json.loads(meetings_resp.content)
page_count = meetings_json['page_count']
next_page_token=meetings_json['next_page_token']
meeting_list = []
pprint("---Call with no token---")
pprint(meetings_json)
pprint("---Call with no token---")

for i in range(1,page_count):
    for meeting in meetings_json['meetings']:
        meeting_list.append(str(meeting['id']))
    meetings_resp = client.metric.list_meetings(next_page_token=next_page_token)
    meeting_json = json.loads(meetings_resp.content)
    pprint("---Call with token---")
    pprint(meetings_json)
    pprint("---Call with token---")
    exit()

```

I exit out of the loop early so I don’t make a bunch of call that al return the same data, we have alot of meetings.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT/python library

**Which Endpoint/s?**  
/metrics/meeting

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Install zoomus library from github (the latest has metrics support)
2. call to list meetings
3. try to iterate with next\_page\_token
4. fail - bang head

**Additional context**  
Hoping there is just something easy I have overlooked.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 26, 2020, 11:22pm UTC](https://devforum.zoom.us/t/next-page-token-not-changing-in-v2-metrics-meetings/22352/2 "2020-06-26T23:22:06Z")

</div>

Hey @jwc3f,

I am not able to reproduce this issue.

Are you able to see this issue when testing in postman?

Can you share all the query params you are setting so I can try to reproduce?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:28pm UTC](https://devforum.zoom.us/t/next-page-token-not-changing-in-v2-metrics-meetings/22352/3 "2020-08-21T22:28:48Z")

</div>

Closed on August 21, 2020, 10:28pm UTC


