# Sense JSON to fetch share url for a dashboard

**URL:** <https://discuss.elastic.co/t/sense-json-to-fetch-share-url-for-a-dashboard/50332>\
**Category:** Elasticsearch\
**Created:** [May 18, 2016, 12:10pm UTC](https://discuss.elastic.co/t/sense-json-to-fetch-share-url-for-a-dashboard/50332 "2016-05-18T12:10:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Colton](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@Jeremy\_Colton](https://discuss.elastic.co/u/Jeremy_Colton)\
**Post date:** [May 18, 2016, 12:10pm UTC](https://discuss.elastic.co/t/sense-json-to-fetch-share-url-for-a-dashboard/50332/1 "2016-05-18T12:10:47Z")

</div>

Hi,

In Kibana I have created 5 dashboards. I want to get their 'Embed this dashboard' iframe url.

I tried querying via the Sense plugin and have the following JSON:

```
GET /.kibana/_search
{
  "query": {
    "match": {
      "_type": "url"
    }
  }
}

```

This returns only 1 url for a single dashboard which I deleted from my index:

```
{
  "took": 1,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 1,
    "hits": [
      {
        "_index": ".kibana",
        "_type": "url",
        "_id": "09dd62a2c2e9fd7f27600d8a29603663",
        "_score": 1,
        "_source": {
          "url": "/app/kibana#/dashboard/Dashboard-for-DigitalYYYY?embed=true&_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now%2FM,mode:quick,to:now%2FM))&_a=(filters:!(),options:(darkTheme:!f),panels:!((col:1,id:Data-Table-for-Publisher-DigitalSpy,panelIndex:1,row:1,size_x:3,size_y:2,type:visualization),(col:4,id:Histogram-for-Publisher-DigitalSpy,panelIndex:2,row:1,size_x:3,size_y:2,type:visualization)),query:(query_string:(analyze_wildcard:!t,query:'*')),title:'DigitalSpy%20Dashboard',uiState:())",
          "accessCount": 0,
          "createDate": "2016-03-24T09:53:43.865Z",
          "accessDate": "2016-03-24T09:53:43.865Z"
        }
      }
    ]
  }
}

```

Is this JSON limited to a single record? How can I improve my Sense JSON to fetch ALL of the 'Embed this dashboard' urls for ALL of my existing dashboards?

Many thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 18, 2016, 1:31pm UTC](https://discuss.elastic.co/t/sense-json-to-fetch-share-url-for-a-dashboard/50332/2 "2016-05-18T13:31:03Z")

</div>

You need to generate a short URL for it to save a document in the index.

---

<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 5, 2017, 10:50pm UTC](https://discuss.elastic.co/t/sense-json-to-fetch-share-url-for-a-dashboard/50332/3 "2017-07-05T22:50:39Z")

</div>


