# Executing kibana saved searches programatically?

**URL:** https://discuss.elastic.co/t/executing-kibana-saved-searches-programatically/52410
**Category:** Kibana
**Created:** [June 10, 2016, 6:33am UTC](https://discuss.elastic.co/t/executing-kibana-saved-searches-programatically/52410 "2016-06-10T06:33:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Shrikanth\_N\_C](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Shrikanth\_N\_C](https://discuss.elastic.co/u/Shrikanth_N_C)
#### Post date: [June 10, 2016, 6:33am UTC](https://discuss.elastic.co/t/executing-kibana-saved-searches-programatically/52410/1 "2016-06-10T06:33:35Z")

</div>

Will be happy to know if there are any direct ways or workarounds to make a REST call programatically to fetch the list of saved searches in kibana and to execute them as well ?

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [June 10, 2016, 6:40am UTC](https://discuss.elastic.co/t/executing-kibana-saved-searches-programatically/52410/2 "2016-06-10T06:40:10Z")

</div>

All data for Kibana is stored in the Elasticsearch `.kibana` index. You can use the Elasticsearch API to fetch the data. For example: `http://localhost:9200/.kibana/search/_search?pretty=true&q=*` will display all saved searches.

Within the response, `searchSourceJSON` is a JSON encoded object from which you can use the `index` and `query` to then query Elasticsearch directly.

---

<div class="post-metadata">

### Author: ![Shrikanth\_N\_C](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Shrikanth\_N\_C](https://discuss.elastic.co/u/Shrikanth_N_C)
#### Post date: [June 10, 2016, 6:47am UTC](https://discuss.elastic.co/t/executing-kibana-saved-searches-programatically/52410/3 "2016-06-10T06:47:54Z")

</div>

> [@tsmalley](#):
>
> searchSourceJSON

Thank you for the spontaneous reply, very helpful.

Just wanted to know more clarity on the executing part.

Is there any way to execute a particular saved search through a GET rest call by passing the saved search title ?

If not can you comment on how do I frame a POST request that can be sent to ES for a json response ?

---

<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: [July 6, 2017, 1:50pm UTC](https://discuss.elastic.co/t/executing-kibana-saved-searches-programatically/52410/4 "2017-07-06T13:50:51Z")

</div>


