# How to extract response body elements full branch and verify same data displays in another api (GET)

**URL:** <https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [August 6, 2020, 4:35pm UTC](https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788 "2020-08-06T16:35:30Z")\
**Posts on this page:** 1\
**Showing post:** 37

<div class="post-metadata">

**Author:** ![shahbaz.shiekhqa](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shahbaz.shiekhqa](https://community.postman.com/u/shahbaz.shiekhqa)\
**Post date:** [September 10, 2020, 10:13pm UTC](https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788/37 "2020-09-10T22:13:10Z")

</div>

Allen, sir you are awesome, that worked perfectly  
so all we had to do was get rid of the loop … but than how do we know if its an object or array ?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/5/c5c1ad78580e91353909146aa28083c11f209340.png)

Also have another question, man so much testing to do – with APIs

> [@How to click on response body link (that keeps changing) and verify that Id = Global Admin exists within the link?](https://community.postman.com/t/how-to-click-on-response-body-link-that-keeps-changing-and-verify-that-id-global-admin-exists-within-the-link/15773):
>
> Hi, I have the following url below, but for my test i want to click on it and check if the url has Global Admin as a User Role. API1 = Click on the link (which is always changing after every send) and verify once you send the url - User Role = Global Admin … I want to be able to do this in the test scripts of the first api call … is this possible? I am already sending the request for that url and it is coming up as pass, but what would be next… postman.setEnvironmentVariable("U…

---

_[View the full topic](https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788)._
