# Capture the response body values as variables

**URL:** <https://community.postman.com/t/capture-the-response-body-values-as-variables/51667>\
**Category:** Help Hub\
**Tags:** monitors, tests, variables, collections, api\
**Created:** [September 12, 2023, 2:23pm UTC](https://community.postman.com/t/capture-the-response-body-values-as-variables/51667 "2023-09-12T14:23:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 13, 2023, 10:24am UTC](https://community.postman.com/t/capture-the-response-body-values-as-variables/51667/6 "2023-09-13T10:24:26Z")

</div>

This was something I wrote on the forum a couple of years ago to try and help explain how to extract different pieces of data from a response.

The UI has slightly changed but it should all still work the same.

> [@Sharing tips and tricks with others in the Postman community](https://community.postman.com/t/sharing-tips-and-tricks-with-others-in-the-postman-community/5123/5):
>
> Extracting values from a JSON response I notice lots of questions from the community which all have a similar flavour - Users are having trouble extracting data from a JSON response body when the value is within an array. These are normally JavaScript related questions, more than specific Postman questions but I want to use this thread to offer more support around this problem. For these examples I’ll be using the [https://randomuser.me](https://randomuser.me) API, this returns lots of random user data, in a JSON form…

---

_[View the full topic](https://community.postman.com/t/capture-the-response-body-values-as-variables/51667)._
