> 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/huo-qu-zui-hou-yi-ge-ren-wu-zhuang-tai-shuo-ming.md).

# 获取最後一個任務狀態说明

### 基礎信息

**接口說明：**&#x900F;過接口取得指定帳號最後一個任務的狀態。

**請求地址：**[**https://openapi.thordata.com/api/web\_scraper\_api/get\_latest\_task\_status**](https://openapi.thordata.com/api/web_scraper_api/get_latest_task_status)

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

### 請求參數

**Headers：**

<table><thead><tr><th width="109">參數名稱</th><th width="90">參數类型</th><th width="81">是否必須</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>

### 響應示例

```json
{
    "code": 200,
    "data": {
        "api_code": 200,
        "api_error_msg": ""
    },
    "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="181">參數名稱</th><th>參數类型</th><th>是否必須</th><th width="310.36328125">描述</th></tr></thead><tbody><tr><td><code>code</code></td><td>number</td><td>否</td><td>200=成功</td></tr><tr><td><code>data</code></td><td>object</td><td>否</td><td>任務信息</td></tr><tr><td>    <code>download</code></td><td>string</td><td>否</td><td>200=成功，400=失敗</td></tr><tr><td>    <code>tasks_ids</code></td><td>string</td><td>否</td><td>錯誤信息</td></tr><tr><td><code>msg</code></td><td>string</td><td>否</td><td></td></tr></tbody></table>
