# Retrieving DataStream list in Elasticsearch using python API

**URL:** https://discuss.elastic.co/t/retrieving-datastream-list-in-elasticsearch-using-python-api/303705
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [May 2, 2022, 6:01am UTC](https://discuss.elastic.co/t/retrieving-datastream-list-in-elasticsearch-using-python-api/303705 "2022-05-02T06:01:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![curious\_ands](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@curious\_ands](https://discuss.elastic.co/u/curious_ands)
#### Post date: [May 2, 2022, 6:01am UTC](https://discuss.elastic.co/t/retrieving-datastream-list-in-elasticsearch-using-python-api/303705/1 "2022-05-02T06:01:25Z")

</div>

In Kibana dev tools, When I am using the API call `GET /_data_stream/` I am getting the list of DataStream. In similar way I want to retrieve it using the Elasticsearch Python API, I am not able to find the way. Can anyone please help me?

---

<div class="post-metadata">

### Author: ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)
#### Post date: [May 2, 2022, 7:36pm UTC](https://discuss.elastic.co/t/retrieving-datastream-list-in-elasticsearch-using-python-api/303705/2 "2022-05-02T19:36:17Z")

</div>

Hi ,

take a look a this [Link](https://elasticsearch-py.readthedocs.io/en/stable/api.html#elasticsearch.client.IndicesClient.get_data_stream)

---

<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: [May 30, 2022, 7:36pm UTC](https://discuss.elastic.co/t/retrieving-datastream-list-in-elasticsearch-using-python-api/303705/3 "2022-05-30T19:36:42Z")

</div>

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