# How to get data or request query from Kibana Dashboard card

**URL:** <https://discuss.elastic.co/t/how-to-get-data-or-request-query-from-kibana-dashboard-card/199538>\
**Category:** Kibana\
**Created:** [September 15, 2019, 3:09pm UTC](https://discuss.elastic.co/t/how-to-get-data-or-request-query-from-kibana-dashboard-card/199538 "2019-09-15T15:09:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111208](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111208/32/53970_2.png) [@111208](https://discuss.elastic.co/u/111208)\
**Post date:** [September 15, 2019, 3:09pm UTC](https://discuss.elastic.co/t/how-to-get-data-or-request-query-from-kibana-dashboard-card/199538/1 "2019-09-15T15:09:13Z")

</div>

I search Kibana REST API.  
In saved\_objects API, there is no data or query information just VIZ params.

I'm testing with "kibana\_sample\_data\_flights" sample data.  
In Kibana Dashboard, I can get Request Parameters through card inspector tab.

> {  
> "aggs": {  
> "2": {  
> "terms": {  
> "field": "Carrier",  
> "order": {  
> "\_count": "desc"  
> },  
> "size": 5  
> }  
> }  
> },  
> "size": 0,  
> "\_source": {  
> "excludes":   
> },  
> "stored\_fields": [  
> "\*"  
> ],  
> "script\_fields": {  
> "hour\_of\_day": {  
> "script": {  
> "source": "doc['timestamp'].value.hourOfDay",  
> "lang": "painless"  
> }  
> }  
> },  
> "docvalue\_fields": [  
> {  
> "field": "timestamp",  
> "format": "date\_time"  
> }  
> ],  
> "query": {  
> "bool": {  
> "must": [  
> {  
> "range": {  
> "timestamp": {  
> "format": "strict\_date\_optional\_time",  
> "gte": "2019-09-14T15:48:04.875Z",  
> "lte": "2019-09-15T15:48:04.875Z"  
> }  
> }  
> }  
> ],  
> "filter": [  
> {  
> "match\_all": {}  
> },  
> {  
> "match\_all": {}  
> }  
> ],  
> "should": ,  
> "must\_not":   
> }  
> }  
> }

 ![request](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2dd4ce4f0454f80467863e465a0e6b21278926af.png)

How can I this information from Kibana REST API?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [September 16, 2019, 3:31pm UTC](https://discuss.elastic.co/t/how-to-get-data-or-request-query-from-kibana-dashboard-card/199538/2 "2019-09-16T15:31:01Z")

</div>

Hey @111208, this information is not available from an API. Each visualization, saved-search, etc. builds it's query against Elasticsearch in the browser at the moment, and it's not currently possible to use an API for this.

---

<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:** [October 14, 2019, 3:31pm UTC](https://discuss.elastic.co/t/how-to-get-data-or-request-query-from-kibana-dashboard-card/199538/3 "2019-10-14T15:31:10Z")

</div>

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