**Version: 202201**

# Data Query Task Details

**GET** `/openapi/2022-01/data/task`

## Request

**Query Parameters**

- `id` string (required)

  Event ID to query, will query the last record if id is null

## Responses

**200 | 404**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `query_id` string

  **Example:** `2f966f9a-4640-411d-9753-eb2cc9dc9882`
- `query_status` integer

  **Default value:** `0`

  **Example:** `2`
- `query` object

  - `url` string

    **Example:** `https://shoplazza.oss-cn-shenzhen.aliyuncs.com/0ab9e5f5-b741-4e5b-b3d4-da2874c3d70d.csv`

```json
{
  "query_id": "2f966f9a-4640-411d-9753-eb2cc9dc9882",
  "query_status": 2,
  "query": {
    "url": "https://shoplazza.oss-cn-shenzhen.aliyuncs.com/0ab9e5f5-b741-4e5b-b3d4-da2874c3d70d.csv"
  }
}
```

```json
{
  "query_id": "2f966f9a-4640-411d-9753-eb2cc9dc9882",
  "query_status": 2,
  "query": {
    "url": "https://shoplazza.oss-cn-shenzhen.aliyuncs.com/0ab9e5f5-b741-4e5b-b3d4-da2874c3d70d.csv"
  }
}
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "no result"
  ]
}
```

```json
{
  "errors": [
    "no result"
  ]
}
```
