How to get data or request query from Kibana Dashboard card

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":
}
}
}

How can I this information from Kibana REST API?

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.

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