# Get data stream stats **GET /_data_stream/{name}/_stats** **All methods and paths for this operation:**
GET /_data_stream/_stats
GET /_data_stream/{name}/_stats
Get statistics for one or more data streams. ## Required authorization * Index privileges: `monitor` ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **name** (string | array[string]) Comma-separated list of data streams used to limit the request. Wildcard expressions (`*`) are supported. To target all data streams in a cluster, omit this parameter or use `*`. ### Query parameters - **expand_wildcards** (string | array[string]) Type of data stream that wildcard patterns can match. Supports comma-separated values, such as `open,hidden`. Supported values include: - `all`: Match any data stream or index, including hidden ones. - `open`: Match open, non-hidden indices. Also matches any non-hidden data stream. - `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or `both`. - `none`: Wildcard expressions are not accepted. ## Responses ### 200 #### Body: application/json (object) - **_shards** (object) Contains information about shards that attempted to execute the request. - **backing_indices** (number) Total number of backing indices for the selected data streams. - **data_stream_count** (number) Total number of selected data streams. - **data_streams** (array[object]) Contains statistics for the selected data streams. - **total_store_sizes** (number | string) Total size of all shards for the selected data streams. This property is included only if the `human` query parameter is `true` - **total_store_size_bytes** (number) Total size, in bytes, of all shards for the selected data streams. [Powered by Bump.sh](https://bump.sh)