# v2 issues with meetings endpoint

**URL:** <https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807>\
**Category:** API and Webhooks\
**Created:** [December 1, 2017, 6:47pm UTC](https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807 "2017-12-01T18:47:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Rogers](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matt_rogers/32/189_2.png) [@Matt\_Rogers](https://devforum.zoom.us/u/Matt_Rogers)\
**Post date:** [December 1, 2017, 6:47pm UTC](https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807/1 "2017-12-01T18:47:07Z")

</div>

Is anyone else having issues pulling meeting lists with the new v2 API?&nbsp;

I had it working last week, and now it’s only returning live meetings even though i’ve set type to past; the next\_page\_token also only returns the first page of results.&nbsp;

The concept is fairly straight forward so I am having a hard time believeing my code is wrong,&nbsp;the docs aren’t explicit so there could be an issue with the library I am using to generate my token.

the JWT token is being genreate as follows:

```
def generate\_jwt(ttl):
 # jwt payload
 jwt\_payload = {
 'iss': cfg['zoom']['api\_key'],
 'exp': datetime.utcnow() + timedelta(seconds=ttl)
 }

 # Encode signature and spit out a utf-8 string
 signature = str(jwt.encode(jwt\_payload, cfg['zoom']['api\_secret'], algorithm='HS256'), 'utf-8')

 return signature

```

and meeting list is being pull like this:

```
def get\_meeting\_list\_single\_page(token, page\_size, type, get\_from, get\_to, next\_page\_token):
 # GET meetings API endpoint
 r = s.get('%s/metrics/meetings' % base\_url, headers={'Authorization': 'Bearer %s' % token},
 data={'type': type, 'from': get\_from, 'to': get\_to, 'next\_page\_token': next\_page\_token},
 verify=False)

```

&nbsp;

FWIW, I also tried entering jibberish in&nbsp;some of the data fields and the request completes, returning page one of live meetings.&nbsp; &nbsp;Must be a default when the call isn’t “complete”?&nbsp;

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [December 1, 2017, 8:14pm UTC](https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807/2 "2017-12-01T20:14:18Z")

</div>

If your not getting a “invalid token” message your token generation should be fine.

&nbsp;

Please verify that you are not running into a rate limit&nbsp;[https://zoom.github.io/api/#rate-limits](https://zoom.github.io/api/#rate-limits) /metrics/meetings has max of 1 request per minute

---

<div class="post-metadata">

**Author:** ![Matt\_Rogers](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matt_rogers/32/189_2.png) [@Matt\_Rogers](https://devforum.zoom.us/u/Matt_Rogers)\
**Post date:** [December 1, 2017, 9:44pm UTC](https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807/3 "2017-12-01T21:44:10Z")

</div>

Very strange,&nbsp;it’s like the first call I make gets stuck. Let me fiddle around and get back to you.&nbsp; It’s definietely not a rate limit as i’d get a 429 back instead of a 200 (and presumably no data).

---

<div class="post-metadata">

**Author:** ![Matt\_Rogers](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matt_rogers/32/189_2.png) [@Matt\_Rogers](https://devforum.zoom.us/u/Matt_Rogers)\
**Post date:** [December 2, 2017, 1:10am UTC](https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807/4 "2017-12-02T01:10:52Z")

</div>

I figured it out.&nbsp; Apparently, you can no longer include a payload as data in a request.&nbsp; you have to include your payload as a query in&nbsp;the endpoint url.&nbsp;&nbsp;

so my original r = s.get line should now show as:&nbsp;

```
r = s.get('%s/metrics/meetings/?type=%s&from=%s&to=%s' % (base\_url, type, get\_from, get\_to),
 headers={'Authorization': 'Bearer %s' % token}, verify=False)

```

That works as expected.&nbsp;&nbsp;

This also&nbsp;explains why the original code was always returning live meetings; it’s the&nbsp;default when&nbsp;you don’t provide any query paremeters since they are all optional

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [December 5, 2017, 5:48pm UTC](https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807/5 "2017-12-05T17:48:03Z")

</div>

HI Matt,

&nbsp;

Correct, for this endpoint the parameters you are trying to pass are “Query Arguments” not “Body Arguments”

---

<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, 5:21pm UTC](https://devforum.zoom.us/t/v2-issues-with-meetings-endpoint/807/6 "2020-08-21T17:21:46Z")

</div>

Closed on August 21, 2020, 5:21pm UTC


