# Export visualization datawith Kiabana API (data table)

**URL:** https://discuss.elastic.co/t/export-visualization-datawith-kiabana-api-data-table/264451
**Category:** Kibana
**Created:** [February 16, 2021, 3:10pm UTC](https://discuss.elastic.co/t/export-visualization-datawith-kiabana-api-data-table/264451 "2021-02-16T15:10:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kibana069](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kibana069](https://discuss.elastic.co/u/kibana069)
#### Post date: [February 16, 2021, 3:10pm UTC](https://discuss.elastic.co/t/export-visualization-datawith-kiabana-api-data-table/264451/1 "2021-02-16T15:10:31Z")

</div>

Hi,  
is it possible to export the results of a visualization with the Kibana API? I tried to use the saved objects API, but this only exports the visualization itself, but not the data of the visualization.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![brianseeders](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brianseeders/32/84831_2.png) [@brianseeders](https://discuss.elastic.co/u/brianseeders)
#### Post date: [March 2, 2021, 10:24pm UTC](https://discuss.elastic.co/t/export-visualization-datawith-kiabana-api-data-table/264451/2 "2021-03-02T22:24:40Z")

</div>

Hey @kibana069,

I don't believe it's possible to export the records related to a visualization using the API. You can generate a CSV under the `Inspect` menu using the UI.

Do you have access to query the Elasticsearch API as well? It's more involved, but you may be able to use the Saved Objects API to grab the visualization from Kibana, parse the `searchSourceJSON` field, and then query Elasticsearch using the same parameters.

Let me know if that helps.

Brian

---

<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: [March 30, 2021, 10:24pm UTC](https://discuss.elastic.co/t/export-visualization-datawith-kiabana-api-data-table/264451/3 "2021-03-30T22:24:44Z")

</div>

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