> 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-zhua-qu-jie-guo-wen-jian-shuo-ming.md).

# 获取抓取結果文件說明

### 基礎信息

**接口說明：**&#x901A;過接口獲取 Thordata Web Scraper API 的任務抓取結果文件（通過 JSON / CSV / 壓縮包方式）

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

**請求方式：**<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>

**Body:**

<table><thead><tr><th width="111">參數名稱</th><th width="92">參數类型</th><th width="87">是否必須</th><th width="458.36328125">描述</th></tr></thead><tbody><tr><td><code>tasks_id</code></td><td>string</td><td>必須</td><td>任務id</td></tr><tr><td><code>type</code></td><td>text</td><td>必須</td><td>结果文件类型：<code>json</code> <code>csv</code> <code>video</code> <code>subtitle</code> <code>audio</code></td></tr></tbody></table>

### 響應示例

```json
{
    "code": 200,
    "data": {
        "download": "https://www.thordata.com/scrapers/thordata/2025/06/03/449ffed4917a41389f7e21c6b8be6a95.json",
        "tasks_ids": "449ffed4917a41389f7e21c6b8be6a95"
    },
    "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</td><td>number</td><td>否</td><td></td></tr><tr><td>data</td><td>object</td><td>否</td><td></td></tr><tr><td>    download</td><td>string</td><td>否</td><td></td></tr><tr><td>    tasks_ids</td><td>string</td><td>否</td><td></td></tr><tr><td>msg</td><td>string</td><td>否</td><td></td></tr></tbody></table>
