# Access the GET result of an API Request via Postman API

**URL:** <https://community.postman.com/t/access-the-get-result-of-an-api-request-via-postman-api/51653>\
**Category:** Help Hub\
**Tags:** collections, postman-api\
**Created:** [September 12, 2023, 10:53am UTC](https://community.postman.com/t/access-the-get-result-of-an-api-request-via-postman-api/51653 "2023-09-12T10:53:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cryosat-geoscienti24](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/cryosat-geoscienti24/32/25700_2.png) [@cryosat-geoscienti24](https://community.postman.com/u/cryosat-geoscienti24)\
**Post date:** [September 12, 2023, 10:53am UTC](https://community.postman.com/t/access-the-get-result-of-an-api-request-via-postman-api/51653/1 "2023-09-12T10:53:01Z")

</div>

Hello,

I’m hoping I phrased my question clearly but if not, here’s my situation:  
I was able to add a Microsoft Graph collection and successfully send GET requests. I am hoping to view the result of the request in Power BI without having to download each request as a JSON file.

So i thought I’d share the collection via API. I viewed the JSON returned from the API URL but cannot find anything that is the content of any of my requests. For example, one of my GET requests returns a list of users from a specific tenant but this I cannot find from the JSON returned by Postman.

Please see image below

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/b/8b6fd57617b3d5b6aa7af189e5d60d989399fad2.png)

---

<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:** [September 12, 2023, 11:03am UTC](https://community.postman.com/t/access-the-get-result-of-an-api-request-via-postman-api/51653/2 "2023-09-12T11:03:33Z")

</div>

Hey @cryosat-geoscienti24 👋

Welcome to the Postman Community! :postman:

The Postman API `GET /collection/id` route would only be returning the Collection JSON in the response, similar to what you would see if you were to export that as a file.

These wouldn’t include the responses from any of the requests that you have made in Postman.

---

<div class="post-metadata">

**Author:** ![cryosat-geoscienti24](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/cryosat-geoscienti24/32/25700_2.png) [@cryosat-geoscienti24](https://community.postman.com/u/cryosat-geoscienti24)\
**Post date:** [September 12, 2023, 11:46am UTC](https://community.postman.com/t/access-the-get-result-of-an-api-request-via-postman-api/51653/3 "2023-09-12T11:46:01Z")

</div>

thank you for confirming. Any idea how to return the requests themselves instead of the items in a collection?

---

<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:** [September 12, 2023, 11:53am UTC](https://community.postman.com/t/access-the-get-result-of-an-api-request-via-postman-api/51653/4 "2023-09-12T11:53:25Z")

</div>

Not sure I understand the question. Do you mean the responses, for the requests that you have inside the Collection?

You’d only get the responses by using the Collection in Postman, to make those requests to those endpoint.

Alternatively, you could us Newman to run the Collection and write the responses to a files.

For example:

> [@How to Save Get response to local file?](https://community.postman.com/t/how-to-save-get-response-to-local-file/17942/2):
>
> Hey @bukhari.adac This is a very common question and doing a quick search in the forum would have returned a few different ways of writing those to file. grin Using Newman as a library and paring that with the Node fs module you can save the responses to a file like this: const newman = require('newman'), fs = require('fs'); newman.run({ collection: '\<Postman Collection\>' }).on('request', (err, args) =\> { fs.writeFile(`./results/${args.item.name}.json`, args.response.stream, (err…

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 27, 2023, 11:53am UTC](https://community.postman.com/t/access-the-get-result-of-an-api-request-via-postman-api/51653/5 "2023-10-27T11:53:52Z")

</div>

Closed on October 27, 2023, 11:53am UTC

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