# Zoom API to get the countdown

**URL:** <https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850>\
**Category:** API and Webhooks\
**Created:** [March 16, 2021, 7:56pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850 "2021-03-16T19:56:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasprem95](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thomasprem95/32/22514_2.png) [@thomasprem95](https://devforum.zoom.us/u/thomasprem95)\
**Post date:** [March 16, 2021, 7:56pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/1 "2021-03-16T19:56:40Z")

</div>

Hi,  
I am developing a website and need a “ **COUNTDOWN TO SHOW IN THE HOMEPAGE** ”. What is the best API to use for that?

For example “If I have 10 different events I wants to know the latest event and also give a countdown for it” - What is the best API to use for that?

---

<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:** [March 16, 2021, 10:46pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/2 "2021-03-16T22:46:19Z")

</div>

Hey @thomasprem95,

Thank you for reaching out to the Zoom Developer Forum. If you want a countdown to your next meeting, you can use the `start_time` property that is returned from the [Get a Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting):

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/4/d44d3ff401b1d419f038e3a3deeb0a33e86e02ce.png)

You can then create a countdown from the current time until the `start_time`.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![thomasprem95](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thomasprem95/32/22514_2.png) [@thomasprem95](https://devforum.zoom.us/u/thomasprem95)\
**Post date:** [March 16, 2021, 11:21pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/3 "2021-03-16T23:21:05Z")

</div>

Will Get a Meetings API return all the Meetings created? Can you please show me an example to use the API and in some of your APIs I find “userID” - Where do I find that?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 17, 2021, 8:21pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/4 "2021-03-17T20:21:09Z")

</div>

Hi @thomasprem95,

If you want to list all of your created meetings for a user, you can leverage our **list meetings** API :

> **[List Meetings - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings)**
>
> List all the meetings that were scheduled for a user (meeting host). This API only supports scheduled meetings and thus, details on instant meetings are...

To test, at the bottom of the screen you will find a **Send a Test Request** , which can use to generate an example request. I’ve included a screenshot of our tool below for your reference:

 ![Screen Shot 2021-03-17 at 4.10.51 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/2/f2df6aa11299f5918e165c69b4d2aeaf5555f740.png)

Additionally, to get a user’s id you can use our **Get a User** API.

> **[Get a User - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)**
>
> A Zoom account can have one or more users. Use this API to view information of a specific user on a Zoom account.
> Scopes: user:read:admin user:read
> 
> Ra...

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![thomasprem95](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thomasprem95/32/22514_2.png) [@thomasprem95](https://devforum.zoom.us/u/thomasprem95)\
**Post date:** [March 19, 2021, 1:59pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/5 "2021-03-19T13:59:08Z")

</div>

Whenever I give a Client ID and Client Secret it goes to a page which says “**Invalid redirect: [https://marketplace.zoom.us/docs/oauth/callback/success](https://marketplace.zoom.us/docs/oauth/callback/success) (4,700)**”…SO can you please help me how to get that correct…My zoom email id is [REDACTED]…I need to list all the meeting before that I need to get the userId…

---

<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:** [March 19, 2021, 11:35pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/6 "2021-03-19T23:35:32Z")

</div>

Hey @thomasprem95,

Please make sure that you are following our guide on setting and whitelisting a redirect URL. Also, ensure that the redirect URL that you’re using is for your app so that you complete the OAuth flow.

More information can be found in our guide:

> **[OAuth - Build an App - Documentation](https://marketplace.zoom.us/docs/guides/build/oauth-app#app-credential)**
>
> Create an OAuth App
> 
> OAuth 2.0 is the industry-standard authorization protocol that allows applications to obtain requested access to user accounts over...

I hope that helps! Let me know if you have any questions 🙂

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![thomasprem95](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thomasprem95/32/22514_2.png) [@thomasprem95](https://devforum.zoom.us/u/thomasprem95)\
**Post date:** [March 24, 2021, 4:14pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/7 "2021-03-24T16:14:41Z")

</div>

So I just need to show a Countdown of my latest meeting in this website home page [https://wordpress-511310-1708141.cloudwaysapps.com/media/..So](https://wordpress-511310-1708141.cloudwaysapps.com/media/..So) I will use the meeting api to get the meeting but how to view all the meeting…What should be the redirect URL be? And I am planning to do it in PHP(Wordpress)…Please give me some example

---

<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:** [March 25, 2021, 10:02pm UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/8 "2021-03-25T22:02:10Z")

</div>

Hey @thomasprem95,

If you want to see all the meetings that you’ve scheduled, you can use the [List Meetings API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings). When it comes to starting or joining a meeting, you can use the `start_url`.

> [@thomasprem95](#):
>
> What should be the redirect URL be?

What redirect URL are you referring to? Do you mean the OAuth Redirect URL? If so, this should be a URL that your app handles so that you are able to receive the code and complete the OAuth flow.

> [@thomasprem95](#):
>
> And I am planning to do it in PHP(Wordpress)…Please give me some example

We don’t have an example of creating a countdown or any other PHP examples that would be helpful here. However, this example on consuming REST APIs with PHP might be helpful:

> <https://stackoverflow.com/questions/9802788/call-a-rest-api-in-php>

Let me know if you have any questions.

Thanks,  
Max

---

<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:** [April 25, 2021, 8:02am UTC](https://devforum.zoom.us/t/zoom-api-to-get-the-countdown/45850/9 "2021-04-25T08:02:34Z")

</div>

Closed on April 25, 2021, 8:02am UTC

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