---
type: api
title: Get data frame analytics jobs
description: **All methods and paths for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-cat-ml-data-frame-analytics
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-cat-ml-data-frame-analytics
products:
  - Elasticsearch
---

# Get data frame analytics jobs


Availability: 7.7+

## Paths

- `GET` `/_cat/ml/data_frame/analytics/{id}`
- `GET` `/_cat/ml/data_frame/analytics`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#bearerauth)

#### Path Parameters

- `id` (string Id) — optional, leave it out to use `/_cat/ml/data_frame/analytics`
  The ID of the data frame analytics to fetch

## Description

Get configuration and usage information about data frame analytics jobs.

IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
console or command line. They are not intended for use by applications. For
application consumption, use the get data frame analytics jobs statistics API.

## Required authorization

* Cluster privileges: `monitor_ml`

## Query String Parameters

- `allow_no_match` (boolean · default: false)
  Whether to ignore if a wildcard expression matches no configs.
(This includes `_all` string or when no configs have been specified.)
- `h` (CatDfaColumns · default: create_time,id,state,type)
  Comma-separated list of column names to display.

Supported values include:
  - `assignment_explanation` (or `ae`): Contains messages relating to the selection of a node.
  - `create_time` (or `ct`, `createTime`): The time when the data frame analytics job was created.
  - `description` (or `d`): A description of a job.
  - `dest_index` (or `di`, `destIndex`): Name of the destination index.
  - `failure_reason` (or `fr`, `failureReason`): Contains messages about the reason why a data frame analytics job failed.
  - `id`: Identifier for the data frame analytics job.
  - `model_memory_limit` (or `mml`, `modelMemoryLimit`): The approximate maximum amount of memory resources that are permitted for
the data frame analytics job.
  - `node.address` (or `na`, `nodeAddress`): The network address of the node that the data frame analytics job is
assigned to.
  - `node.ephemeral_id` (or `ne`, `nodeEphemeralId`): The ephemeral ID of the node that the data frame analytics job is assigned
to.
  - `node.id` (or `ni`, `nodeId`): The unique identifier of the node that the data frame analytics job is
assigned to.
  - `node.name` (or `nn`, `nodeName`): The name of the node that the data frame analytics job is assigned to.
  - `progress` (or `p`): The progress report of the data frame analytics job by phase.
  - `source_index` (or `si`, `sourceIndex`): Name of the source index.
  - `state` (or `s`): Current state of the data frame analytics job.
  - `type` (or `t`): The type of analysis that the data frame analytics job performs.
  - `version` (or `v`): The Elasticsearch version number in which the data frame analytics job was
created.
- `s` (union CatDfaColumns)
  Comma-separated list of column names or column aliases used to sort the
response.

Supported values include:
  - `assignment_explanation` (or `ae`): Contains messages relating to the selection of a node.
  - `create_time` (or `ct`, `createTime`): The time when the data frame analytics job was created.
  - `description` (or `d`): A description of a job.
  - `dest_index` (or `di`, `destIndex`): Name of the destination index.
  - `failure_reason` (or `fr`, `failureReason`): Contains messages about the reason why a data frame analytics job failed.
  - `id`: Identifier for the data frame analytics job.
  - `model_memory_limit` (or `mml`, `modelMemoryLimit`): The approximate maximum amount of memory resources that are permitted for
the data frame analytics job.
  - `node.address` (or `na`, `nodeAddress`): The network address of the node that the data frame analytics job is
assigned to.
  - `node.ephemeral_id` (or `ne`, `nodeEphemeralId`): The ephemeral ID of the node that the data frame analytics job is assigned
to.
  - `node.id` (or `ni`, `nodeId`): The unique identifier of the node that the data frame analytics job is
assigned to.
  - `node.name` (or `nn`, `nodeName`): The name of the node that the data frame analytics job is assigned to.
  - `progress` (or `p`): The progress report of the data frame analytics job by phase.
  - `source_index` (or `si`, `sourceIndex`): Name of the source index.
  - `state` (or `s`): Current state of the data frame analytics job.
  - `type` (or `t`): The type of analysis that the data frame analytics job performs.
  - `version` (or `v`): The Elasticsearch version number in which the data frame analytics job was
created.
  One of: `CatDfaColumn` or `CatDfaColumn[]`

## Response

`application/json`

Type: `[] DataFrameAnalyticsRecord`

- `id` (string Id)
  The identifier for the job.
- `type` (string)
  The type of analysis that the job performs.
- `create_time` (string)
  The time when the job was created.
- `version` (string)
  The version of Elasticsearch when the job was created.
- `source_index` (string IndexName)
  The name of the source index.
- `dest_index` (string IndexName)
  The name of the destination index.
- `description` (string)
  A description of the job.
- `model_memory_limit` (string)
  The approximate maximum amount of memory resources that are permitted for the job.
- `state` (string)
  The current status of the job.
- `failure_reason` (string)
  Messages about the reason why the job failed.
- `progress` (string)
  The progress report for the job by phase.
- `assignment_explanation` (string)
  Messages related to the selection of a node.
- `node.id` (string Id)
  The unique identifier of the assigned node.
- `node.name` (string Name)
  The name of the assigned node.
- `node.ephemeral_id` (string Id)
  The ephemeral identifier of the assigned node.
- `node.address` (string)
  The network address of the assigned node.
## Code Examples

#### Console

```console
GET _cat/ml/data_frame/analytics?v=true&format=json
```

#### JavaScript

```javascript
const response = await client.cat.mlDataFrameAnalytics({
  v: "true",
  format: "json",
});
```

#### Python

```python
resp = client.cat.ml_data_frame_analytics(
    v=True,
    format="json",
)
```

#### curl

```curl
curl -X GET "$ELASTICSEARCH_URL/_cat/ml/data_frame/analytics?v=true&format=json" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.cat().mlDataFrameAnalytics(m -> m);
```

#### PHP

```php
$resp = $client->cat()->mlDataFrameAnalytics([
    "v" => "true",
    "format" => "json",
]);
```

#### Ruby

```ruby
response = client.cat.ml_data_frame_analytics(
  v: "true",
  format: "json"
)
```

## Response Examples

#### Cat dataframeanalytics response example1

A successful response from `GET _cat/ml/data_frame/analytics?v=true&format=json`.

```json
[
  {
    "id": "classifier_job_1",
    "type": "classification",
    "create_time": "2020-02-12T11:49:09.594Z",
    "state": "stopped"
  },
    {
    "id": "classifier_job_2",
    "type": "classification",
    "create_time": "2020-02-12T11:49:14.479Z",
    "state": "stopped"
  },
  {
    "id": "classifier_job_3",
    "type": "classification",
    "create_time": "2020-02-12T11:49:16.928Z",
    "state": "stopped"
  },
  {
    "id": "classifier_job_4",
    "type": "classification",
    "create_time": "2020-02-12T11:49:19.127Z",
    "state": "stopped"
  },
  {
    "id": "classifier_job_5",
    "type": "classification",
    "create_time": "2020-02-12T11:49:21.349Z",
    "state": "stopped"
  }
]
```

