# Postman Cheerio Question

**URL:** <https://community.postman.com/t/postman-cheerio-question/18565>\
**Category:** Help Hub\
**Created:** [December 18, 2020, 2:14pm UTC](https://community.postman.com/t/postman-cheerio-question/18565 "2020-12-18T14:14:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![postnewbie2020](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@postnewbie2020](https://community.postman.com/u/postnewbie2020)\
**Post date:** [December 18, 2020, 2:14pm UTC](https://community.postman.com/t/postman-cheerio-question/18565/1 "2020-12-18T14:14:55Z")

</div>

Hi,

I am fairly new to Postman and Cheerio. I have an issue where after an API request has been sent, the response body is in HTML.

I have no control over the response body, and it has been written by a 3rd party who have not given it id’s or labels.

a table is returned in the HTML (which i cannot provide due to it holding sensitive data).

The table has the following mark-up 70 times:

`class="data"`

example:

`<td width="30%" class="data">Beans</td>`

When i do the following:

` let information= $( "td[class='data']").text();`

I get all the data back in a huge block.

Is there a way to get the data to return as an array and pass in the index?

for example:

` let information= $( "td[class='data']"[0]).text();`

---

<div class="post-metadata">

**Author:** ![postnewbie2020](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@postnewbie2020](https://community.postman.com/u/postnewbie2020)\
**Post date:** [December 18, 2020, 2:33pm UTC](https://community.postman.com/t/postman-cheerio-question/18565/2 "2020-12-18T14:33:41Z")

</div>

If it helps, this would be the direct XPath

`//*[@id="panelBody"]/form/table[1]/tbody/tr[1]/td[4]`

---

<div class="post-metadata">

**Author:** ![postnewbie2020](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@postnewbie2020](https://community.postman.com/u/postnewbie2020)\
**Post date:** [December 18, 2020, 2:42pm UTC](https://community.postman.com/t/postman-cheerio-question/18565/3 "2020-12-18T14:42:55Z")

</div>

```
let arr = $("td[class='data']").toArray();
let hmm= arr[0].children[0].data;
```
