# Using Fetch in postman

**URL:** <https://community.postman.com/t/using-fetch-in-postman/26372>\
**Category:** Help Hub\
**Created:** [August 2, 2021, 9:11pm UTC](https://community.postman.com/t/using-fetch-in-postman/26372 "2021-08-02T21:11:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apinoob123](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@apinoob123](https://community.postman.com/u/apinoob123)\
**Post date:** [August 2, 2021, 9:11pm UTC](https://community.postman.com/t/using-fetch-in-postman/26372/1 "2021-08-02T21:11:32Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_How can one use fetch in Postman? I’ve tried importing it as well as creating a environment variable as [https://cdnjs.cloudflare.com/ajax/libs/fetch/3.6.2/fetch.min.js](https://cdnjs.cloudflare.com/ajax/libs/fetch/3.6.2/fetch.min.js) and getting that variable in my tests. I keep getting Fetch is not a function or it’s not defined_:

_Details (like screenshots)_:

_How I found the problem_:

_I’ve already tried_:

---

<div class="post-metadata">

**Author:** ![jency.stella19](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jency.stella19/32/16633_2.png) [@jency.stella19](https://community.postman.com/u/jency.stella19)\
**Post date:** [August 3, 2021, 5:24am UTC](https://community.postman.com/t/using-fetch-in-postman/26372/2 "2021-08-03T05:24:08Z")

</div>

Hi @apinoob123

Welcome to the Community 🎉

The query raised by you here is not clear, it’s incomplete too, can you please provide correct and complete information here for assisting you.

---

<div class="post-metadata">

**Author:** ![kevin.swiber](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevin.swiber/32/3820_2.png) [@kevin.swiber](https://community.postman.com/u/kevin.swiber)\
**Post date:** [August 13, 2021, 9:26pm UTC](https://community.postman.com/t/using-fetch-in-postman/26372/3 "2021-08-13T21:26:39Z")

</div>

Hey @apinoob123,

An alternative to trying to import `fetch` is to use the [built-in `pm.sendRequest` function](https://learning.postman.com/docs/writing-scripts/script-references/postman-sandbox-api-reference/#sending-requests-from-scripts).

HTH!
