# Filter JSON Get output within body?

**URL:** <https://community.postman.com/t/filter-json-get-output-within-body/7085>\
**Category:** Help Hub\
**Created:** [August 9, 2019, 6:36pm UTC](https://community.postman.com/t/filter-json-get-output-within-body/7085 "2019-08-09T18:36:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahmario](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/shahmario/32/2530_2.png) [@Shahmario](https://community.postman.com/u/Shahmario)\
**Post date:** [August 9, 2019, 6:36pm UTC](https://community.postman.com/t/filter-json-get-output-within-body/7085/1 "2019-08-09T18:36:49Z")

</div>

**Describe the bug**  
Hello, I have a question to ask as I’m rather new with using Postman. Is there a way to filter the sections (not sure if this is the right terminology) of a GET response? Currently I’m grabbing data in JSON format from a report and it’s presented in various sections. The data that I need however is only in one section, “pages”. What would be the best way to filter everything else out and only present the pages section in the body? Again, I apologize if I’m not using the correct terminology.

**Expected behavior**  
What I’m hoping to have is to only get the body to display the pages section of the report I’m grabbing with my GET request. I would like everything else to not be shown.

**Screenshot**

 ![Capture18](https://us1.discourse-cdn.com/getpostman/original/3X/3/3/33a04e29bb1476dfd176b8e753e8df37bb193b2b.png)  
Thanks for any assistance and sorry if this is a silly question to ask.

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [August 9, 2019, 7:57pm UTC](https://community.postman.com/t/filter-json-get-output-within-body/7085/2 "2019-08-09T19:57:55Z")

</div>

Are you calling an endpoint that you wrote?

If so, you’re going to have to change the code to do what you want. Maybe have a query parameter in there to specify what fields you want returned.

If you did not write the endpoint you’re calling, you’re out of luck. You could always grab the pages element and print it in the console, but beyond that, it’s not something you can do with postman.

---

<div class="post-metadata">

**Author:** ![jamie.mccallum](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jamie.mccallum](https://community.postman.com/u/jamie.mccallum)\
**Post date:** [August 5, 2020, 10:22pm UTC](https://community.postman.com/t/filter-json-get-output-within-body/7085/3 "2020-08-05T22:22:45Z")

</div>

I’m actually looking to do the same thing. It’s my companies API I’m working with, however not 100% if we have the query parameter.

How would I do this but to only give me the needed information in the console?

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [August 6, 2020, 11:48am UTC](https://community.postman.com/t/filter-json-get-output-within-body/7085/4 "2020-08-06T11:48:28Z")

</div>

Hey @jamie.mccallum 👋

Do you have access to the source code or documentation for the API?

All Postman does is call APIs, you can’t manipulate the data that is returned in the response. That’s the responsibility of the API.

I would start with looking at the documentation and seeing what query parameters it supports.
