# Get saved object id through Search API of Kibana

**URL:** https://discuss.elastic.co/t/get-saved-object-id-through-search-api-of-kibana/239424
**Category:** Kibana
**Created:** [July 1, 2020, 7:32am UTC](https://discuss.elastic.co/t/get-saved-object-id-through-search-api-of-kibana/239424 "2020-07-01T07:32:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Voula\_Mikr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voula_mikr/32/58451_2.png) [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)
#### Post date: [July 1, 2020, 7:32am UTC](https://discuss.elastic.co/t/get-saved-object-id-through-search-api-of-kibana/239424/1 "2020-07-01T07:32:46Z")

</div>

Hi!

Is there any query I can make in console of Kibana that I can get the id of a specific Dashboard, visualization, index-pattern and search?

For example with :  
GET .kibana/\_search  
{  
"\_source": ["dashboard.title"],  
"query": {  
"term": {  
"type": "dashboard"  
}  
}  
}

I can get alls the dashboards I have in the below format:

"hits" : [  
{  
"\_index" : ".kibana\_1",  
"\_type" : "\_doc",  
"\_id" : "dashboard:40284570-3dfe-11ea-ad1f-5b09c073c7d3",  
"\_score" : 1.2321436,  
"\_source" : {  
"dashboard" : {  
"title" : "Logs Dashboard"  
}  
}  
},...  
Is there any way to "extract" from that JSON only 40284570-3dfe-11ea-ad1f-5b09c073c7d3 when "title" is "Logs Dashboard" ?

Thank you in advance!

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [July 7, 2020, 8:17am UTC](https://discuss.elastic.co/t/get-saved-object-id-through-search-api-of-kibana/239424/2 "2020-07-07T08:17:44Z")

</div>

Hi

I'm not sure what you mean by "extracting" from that JSON? if you want to find "Logs Dashboard", you should execute the following:

```
GET .kibana/_search
{
  "_source": [
    "dashboard.title"
  ],
  "query": {
    "term": {
      "dashboard.title": "Logs Dashboard"
    }
  }
}

```

Best,  
Matthias

---

<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: [August 4, 2020, 8:17am UTC](https://discuss.elastic.co/t/get-saved-object-id-through-search-api-of-kibana/239424/3 "2020-08-04T08:17:49Z")

</div>

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