---
type: api
title: List data streams
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-data-streams-list
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-data-streams-list
products:
  - Kibana
---

# List data streams

Authentication: required

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/fleet/data_streams`
- `GET` `/s/{space_id}/api/fleet/data_streams`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Responses

#### `200`

OK

`application/json`

- `data_streams` (object[])
  - `dashboard` (object[])
    - `id` (string)
    - `title` (string)
  - `dataset` (string)
  - `index` (string)
  - `last_activity_ms` (number)
  - `namespace` (string)
  - `package` (string)
  - `package_version` (string)
  - `size_in_bytes` (number)
  - `size_in_bytes_formatted` (string)
  - `type` (string)
#### `400`

Generic Error

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
GET kbn:/api/fleet/data_streams
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/data_streams" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "data_streams": [
    {
      "dashboard": [
        {
          "id": "string",
          "title": "string"
        }
      ],
      "dataset": "string",
      "index": "string",
      "last_activity_ms": 0,
      "namespace": "string",
      "package": "string",
      "package_version": "string",
      "size_in_bytes": 0,
      "size_in_bytes_formatted": "string",
      "type": "string"
    }
  ]
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

