# API call to fetch kibana dashboard along with data in json format

**URL:** <https://discuss.elastic.co/t/api-call-to-fetch-kibana-dashboard-along-with-data-in-json-format/335940>\
**Category:** Kibana\
**Created:** [June 14, 2023, 7:52am UTC](https://discuss.elastic.co/t/api-call-to-fetch-kibana-dashboard-along-with-data-in-json-format/335940 "2023-06-14T07:52:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [June 14, 2023, 7:52am UTC](https://discuss.elastic.co/t/api-call-to-fetch-kibana-dashboard-along-with-data-in-json-format/335940/1 "2023-06-14T07:52:08Z")

</div>

Hi,  
I am trying to generate the json file for kibana dashboard. I am trying this command but this gives me only the dashboard of the design. How can i get the data?

```auto
curl -X GET 'http://demo.icebreaker.minutuscloud.com/kibana/api/saved_objects/dashboard/e39bd850-fe00-11ed-8409-8541bc1e01bc' -H 'kbn-xsrf: true' -u elastic:password

```

I will be using this json in zabbix. So i want it along with data.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [June 15, 2023, 10:20pm UTC](https://discuss.elastic.co/t/api-call-to-fetch-kibana-dashboard-along-with-data-in-json-format/335940/2 "2023-06-15T22:20:59Z")

</div>

The dashboard itself is not tied to the data, since the data can change from time to time. To get the actual data, you'll have to inspect each element in your dashboard, copy the request it is making, and make each of these requests manually to Elasticsearch.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/2/22becc63967baa2fe485a19ccf058c4b556d37ec.png)

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [June 21, 2023, 7:15am UTC](https://discuss.elastic.co/t/api-call-to-fetch-kibana-dashboard-along-with-data-in-json-format/335940/3 "2023-06-21T07:15:17Z")

</div>

It worked!! Thank you so much 👍

I went to the inspect tab and fetched the request data

---

<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 19, 2023, 7:15am UTC](https://discuss.elastic.co/t/api-call-to-fetch-kibana-dashboard-along-with-data-in-json-format/335940/4 "2023-07-19T07:15:57Z")

</div>

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