> For the complete documentation index, see [llms.txt](https://doc.thordata.com/interface-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/interface-documentation/zh-hk/web-scraper-api/ren-wu-yun-xing-zhuang-tai-shuo-ming.md).

# 任務運行狀態說明

### 基礎信息

**接口說明：**&#x901A;過接口獲取 Thordata Web Scraper API 單個或多個任務的運行狀態

**請求地址：**[**https://openapi.thordata.com/api/web-scraper-api/tasks-status**](https://openapi.thordata.com/api/web-scraper-api/tasks-status)

**請求方式：**<mark style="color:orange;">POST</mark>

### 請求參數

**Headers：**

<table><thead><tr><th width="108">參數名稱</th><th width="94">參數类型</th><th width="91">是否必須</th><th>描述</th></tr></thead><tbody><tr><td><code>token</code></td><td>string</td><td>必須</td><td>請登入<a href="https://dashboard.thordata.com/account-settings"><strong>儀表板 >> 菜單 >> 我的賬戶</strong></a>查看您的token參數值</td></tr></tbody></table>

**Body:**

<table><thead><tr><th width="105">參數名稱</th><th width="94">參數类型</th><th width="97">是否必須</th><th width="449.36328125">描述</th></tr></thead><tbody><tr><td><code>tasks_ids</code></td><td>string</td><td>必須</td><td>任務id（多個用逗號隔開）例如：123ffed4917a41389f7e21c6b8be6a95,c59d9325e9fe4e149c6a59cbd6e3a954</td></tr></tbody></table>

### 響應示例

```json
{
    "code": 200,
    "data": [
        {
            "task_id": "449ffed4917a41389f7e21c6b8be6a95",
            "status": "Ready"
        },
        {
            "task_id": "c59d9325e9fe4e149c6a59cbd6e3a5e4",
            "status": "Ready"
        }
    ],
    "msg": "ok"
}
```

{% hint style="info" %}
若返回的code值非200，請查閱[**錯誤碼說明**](/interface-documentation/zh-hk/cuo-wu-ma/cuo-wu-ma-shuo-ming.md)列表並進行修改
{% endhint %}

<table><thead><tr><th width="117">參數名稱</th><th width="102">參數类型</th><th width="100">是否必須</th><th width="425.36328125">描述</th></tr></thead><tbody><tr><td>code</td><td>number</td><td>否</td><td></td></tr><tr><td>data</td><td>object</td><td>否</td><td>item 類型: object</td></tr><tr><td>    task_id</td><td>string</td><td>必須</td><td></td></tr><tr><td>    status</td><td>string</td><td>必須</td><td> 状态值：<code>Running</code>，<code>Failed</code>，<code>Ready</code> </td></tr><tr><td>msg</td><td>string</td><td>否</td><td></td></tr></tbody></table>
