# Csv response from Dev tool search query

**URL:** <https://discuss.elastic.co/t/csv-response-from-dev-tool-search-query/254744>\
**Category:** Elasticsearch\
**Created:** [November 9, 2020, 11:41am UTC](https://discuss.elastic.co/t/csv-response-from-dev-tool-search-query/254744 "2020-11-09T11:41:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitarorait82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohitarorait82/32/82981_2.png) [@rohitarorait82](https://discuss.elastic.co/u/rohitarorait82)\
**Post date:** [November 9, 2020, 11:41am UTC](https://discuss.elastic.co/t/csv-response-from-dev-tool-search-query/254744/1 "2020-11-09T11:41:45Z")

</div>

Hi All,

Is there a way to get csv response from Get Search call. We are able to get json response, However our requirement is to get response in csv format.

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [November 9, 2020, 12:30pm UTC](https://discuss.elastic.co/t/csv-response-from-dev-tool-search-query/254744/2 "2020-11-09T12:30:45Z")

</div>

You can use SQL like this

```auto
POST _sql?format=csv
{
    "query": "SELECT * FROM index_name WHERE .... "
}

```

---

<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:** [December 7, 2020, 12:30pm UTC](https://discuss.elastic.co/t/csv-response-from-dev-tool-search-query/254744/3 "2020-12-07T12:30:51Z")

</div>

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