# Grabbing the OAuth Authorization Code

**URL:** <https://devforum.zoom.us/t/grabbing-the-oauth-authorization-code/25046>\
**Category:** API and Webhooks\
**Created:** [July 24, 2020, 5:28am UTC](https://devforum.zoom.us/t/grabbing-the-oauth-authorization-code/25046 "2020-07-24T05:28:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WeJamUS](https://avatars.discourse-cdn.com/v4/letter/w/6de8d8/32.png) [@WeJamUS](https://devforum.zoom.us/u/WeJamUS)\
**Post date:** [July 24, 2020, 5:28am UTC](https://devforum.zoom.us/t/grabbing-the-oauth-authorization-code/25046/1 "2020-07-24T05:28:31Z")

</div>

**Description**  
I’m making a fetch request with the required query parameters to the authorization code endpoint in the zoom API, but I can’t seem to figure out how to actually access the authorization code returned by zoom so that I can use it to get an access token since it is given as a query parameter in the redirect uri.  
Sorry if this is a bit of a newbie question.  
Any help is greatly appreciated!

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

**Which Endpoint/s?**  
[https://zoom.us/oauth/authorize](https://zoom.us/oauth/authorize)

---

<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:** [July 27, 2020, 8:55pm UTC](https://devforum.zoom.us/t/grabbing-the-oauth-authorization-code/25046/3 "2020-07-27T20:55:43Z")

</div>

Hey @WeJamUS,

You can google “how to get query param value in url with {insert coding language you are using}”.

For example in vanilla JavaScript you can use the following:

> <https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript>

Thanks,  
Tommy

---

<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:** [August 3, 2020, 8:55pm UTC](https://devforum.zoom.us/t/grabbing-the-oauth-authorization-code/25046/4 "2020-08-03T20:55:50Z")

</div>

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