# How to use Javascript to get Response data on the Kibana Discover page?

**URL:** <https://discuss.elastic.co/t/how-to-use-javascript-to-get-response-data-on-the-kibana-discover-page/245860>\
**Category:** Kibana\
**Created:** [August 21, 2020, 6:11am UTC](https://discuss.elastic.co/t/how-to-use-javascript-to-get-response-data-on-the-kibana-discover-page/245860 "2020-08-21T06:11:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neargle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neargle/32/74288_2.png) [@neargle](https://discuss.elastic.co/u/neargle)\
**Post date:** [August 21, 2020, 6:11am UTC](https://discuss.elastic.co/t/how-to-use-javascript-to-get-response-data-on-the-kibana-discover-page/245860/1 "2020-08-21T06:11:23Z")

</div>

I hope that after searching in Discover, I can use JS or Chrome DevTools Console in the /app/kibana#/discover page to get the data returned by ES for further processing? How can I get the result of javascript object?

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [August 21, 2020, 7:51am UTC](https://discuss.elastic.co/t/how-to-use-javascript-to-get-response-data-on-the-kibana-discover-page/245860/2 "2020-08-21T07:51:53Z")

</div>

Hi @neargle,  
to get the data returned by ES, click on inspect button on the top-left menu. The response tab displays what ES returns.

---

<div class="post-metadata">

**Author:** ![neargle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neargle/32/74288_2.png) [@neargle](https://discuss.elastic.co/u/neargle)\
**Post date:** [August 21, 2020, 8:09am UTC](https://discuss.elastic.co/t/how-to-use-javascript-to-get-response-data-on-the-kibana-discover-page/245860/3 "2020-08-21T08:09:59Z")

</div>

@Marta_Bondyra Thx for reply, I know this feature is available before, but I want to get this data through **JavaScript** and use JS to process search result without opening inspect tab in the left.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/6/f6babf6fa0ff6a1997c357afc33c9fbfaa89ede5.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 18, 2020, 8:10am UTC](https://discuss.elastic.co/t/how-to-use-javascript-to-get-response-data-on-the-kibana-discover-page/245860/4 "2020-09-18T08:10:01Z")

</div>

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