# Inspect =\> Download CSV =\> Formatted CSV, download file using Python

**URL:** <https://discuss.elastic.co/t/inspect-download-csv-formatted-csv-download-file-using-python/248508>\
**Category:** Kibana\
**Created:** [September 14, 2020, 10:28am UTC](https://discuss.elastic.co/t/inspect-download-csv-formatted-csv-download-file-using-python/248508 "2020-09-14T10:28:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![balajipothula](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@balajipothula](https://discuss.elastic.co/u/balajipothula)\
**Post date:** [September 14, 2020, 10:28am UTC](https://discuss.elastic.co/t/inspect-download-csv-formatted-csv-download-file-using-python/248508/1 "2020-09-14T10:28:03Z")

</div>

HI Team,

I had Kibana version 7.4

Inspect =\> Download CSV =\> Formatted CSV

Can I download table visualization Formatted data by using Python code or CURL

Thanks and regards,  
BALAJI

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [September 14, 2020, 10:42am UTC](https://discuss.elastic.co/t/inspect-download-csv-formatted-csv-download-file-using-python/248508/2 "2020-09-14T10:42:05Z")

</div>

This information is not available by a simple http request because a lot of the logic for the chart and data transformation is happening on the client. You need to actually load the Kibana frontend to do that.

---

<div class="post-metadata">

**Author:** ![balajipothula](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@balajipothula](https://discuss.elastic.co/u/balajipothula)\
**Post date:** [September 14, 2020, 12:06pm UTC](https://discuss.elastic.co/t/inspect-download-csv-formatted-csv-download-file-using-python/248508/3 "2020-09-14T12:06:45Z")

</div>

So, can I use Kibana URL to download the CSV.

In my case, If I use Elasticsearch query it will return 1700+ lines of JSON response,  
In CSV it shrieked to 80+ lines.

is there any to achieve my goal of download CSV?

Not only me, many of them interested to download CSV programmatically.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [September 14, 2020, 2:41pm UTC](https://discuss.elastic.co/t/inspect-download-csv-formatted-csv-download-file-using-python/248508/4 "2020-09-14T14:41:50Z")

</div>

If you are after simple documents without aggregation, you can use the CSV export in Discover which is also available via http request: [https://www.elastic.co/guide/en/kibana/current/discover.html#\_save\_and\_share\_your\_search](https://www.elastic.co/guide/en/kibana/current/discover.html#_save_and_share_your_search)

However for the data table visualizations and aggregated data this is not possible.

---

<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:** [October 12, 2020, 2:42pm UTC](https://discuss.elastic.co/t/inspect-download-csv-formatted-csv-download-file-using-python/248508/5 "2020-10-12T14:42:15Z")

</div>

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