# How to get the url of global variables with uid?

**URL:** <https://community.postman.com/t/how-to-get-the-url-of-global-variables-with-uid/8755>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [November 2, 2019, 2:34pm UTC](https://community.postman.com/t/how-to-get-the-url-of-global-variables-with-uid/8755 "2019-11-02T14:34:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhh3h](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hhh3h](https://community.postman.com/u/hhh3h)\
**Post date:** [November 2, 2019, 2:34pm UTC](https://community.postman.com/t/how-to-get-the-url-of-global-variables-with-uid/8755/1 "2019-11-02T14:34:33Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi,  
Is there any way to get the url of global variables with uid?  
I want to run it by newman with urls.

Please let me know the way.  
Thanks.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 3, 2019, 12:36pm UTC](https://community.postman.com/t/how-to-get-the-url-of-global-variables-with-uid/8755/2 "2019-11-03T12:36:00Z")

</div>

Hey @hhh3h

Welcome to the community!! 🏆

Do you mean a URL to access the global variables, from the Postman API?

[https://docs.api.getpostman.com/?version=latest](https://docs.api.getpostman.com/?version=latest)

That’s not an endpoint that’s currently available over the API.

---

<div class="post-metadata">

**Author:** ![hhh3h](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hhh3h](https://community.postman.com/u/hhh3h)\
**Post date:** [November 3, 2019, 1:31pm UTC](https://community.postman.com/t/how-to-get-the-url-of-global-variables-with-uid/8755/3 "2019-11-03T13:31:37Z")

</div>

Hi~ @danny-dainton.  
I can’t find out the way how to get the URL to access the global variables from your post.  
Please let me know it.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 3, 2019, 1:37pm UTC](https://community.postman.com/t/how-to-get-the-url-of-global-variables-with-uid/8755/4 "2019-11-03T13:37:54Z")

</div>

That’s not an endpoint that’s currently available over the API.

You would either need to export the JSON file and reference that in the command or use this Newman CLI flag:

`--global-var "<global-variable-name>=<global-variable-value>"`

---

<div class="post-metadata">

**Author:** ![hhh3h](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hhh3h](https://community.postman.com/u/hhh3h)\
**Post date:** [November 3, 2019, 2:03pm UTC](https://community.postman.com/t/how-to-get-the-url-of-global-variables-with-uid/8755/5 "2019-11-03T14:03:57Z")

</div>

Okay, thanks for your reply. 😀
