> For the complete documentation index, see [llms.txt](https://doc.thordata.com/doc/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/doc/zh-hk/web-scraper-api/zhua-qu-can-shu-shuo-ming/tiktok-zhua-qu-can-shu.md).

# TikTok 抓取參數

Web Scraper API TikTok 抓取參數

使用 Thordata 的 Web Scraper API 配置 TikTok 抓取參數，包括個人資料網址、貼文網址、搜尋網址、頁面跳轉網址、商店網址、關鍵字和其他參數。

**唯一标識：**

<details>

<summary><code>token</code> ，<strong>訪問令牌（必填）</strong></summary>

此參數用作 API 存取令牌，以確保抓取的合法性。

**請求範例：**

`Authorization: Bearer ********************`

```
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer ********************" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@fofimdmell\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**產品 - 抓取產品資訊：**

1\. TikTok  - 透過 URL 抓取個人資料訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_profiles_by-url`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@fofimdmell\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>url</code>，<strong>個人資料網址（必填）</strong></summary>

此參數用於指定要抓取的 TikTok 個人資料的 URL。

**請求範例：**

`"url": "https://www.tiktok.com/@fofimdmell"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@fofimdmell\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>country</code>，<strong>國家/地區（可選）</strong></summary>

此參數用於指定要搜尋的國家/地區。

**請求範例：**

`"country": "us"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@fofimdmell\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

2.TikTok  - 透過搜尋網址抓取個人資料訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_profiles_by-listurl`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-listurl" ^
  -d "spider_parameters=[{\"search_url\": \"https://www.tiktok.com/explore?lang=en\",\"country\": \"gb\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>search_url</code> ，<strong>搜尋網址（必填）</strong></summary>

此參數指定要抓取的搜尋網址。

**請求範例：**

`"search_url": "https://www.tiktok.com/explore?lang=en"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-listurl" ^
  -d "spider_parameters=[{\"search_url\": \"https://www.tiktok.com/explore?lang=en\",\"country\": \"gb\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>country</code>，<strong>國家/地區（可選）</strong></summary>

此參數用於指定要搜尋的國家/地區。

**請求範例：**

`"country": "us"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-listurl" ^
  -d "spider_parameters=[{\"search_url\": \"https://www.tiktok.com/explore?lang=en\",\"country\": \"us\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>page_turning</code> ，<strong>翻頁（可選）</strong></summary>

此參數指定抓取結果數量的限制。

**請求範例：**

`"page_turning": "1"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_profiles_by-listurl" ^
  -d "spider_parameters=[{\"search_url\": \"https://www.tiktok.com/explore?lang=en\",\"country\": \"gb\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

**產品 - 抓取貼文資訊：**

1.TikTok  - 透過 URL 抓取貼文訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_posts_by-url`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@heymrcat/video/7216019547806092550\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>url</code> ，<strong>貼文 URL（必填）</strong></summary>

此參數用於指定要抓取的特定 TikTok 貼文的 URL。

**請求範例：**

`"url": "https://www.tiktok.com/@heymrcat/video/7216019547806092550"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@heymrcat/video/7216019547806092550\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>country</code>，<strong>國家/地區（可選）</strong></summary>

此參數用於指定要搜尋的國家/地區。

**請求範例：**

`"country": "us"`

<pre class="language-sh"><code class="lang-sh">curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
<strong>  -H "Content-Type: application/x-www-form-urlencoded" ^
</strong>  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@heymrcat/video/7216019547806092550\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
</code></pre>

</details>

2.TikTok  - 透過關鍵字抓取貼文訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_posts_by-keywords`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-keywords" ^
  -d "spider_parameters=[{\"search_keyword\": \"music\",\"num_of_posts\": \"10\",\"posts_to_not_include\": \"7481392272483896583\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>search_keyword</code> ，<strong>搜尋關鍵字（必填）</strong></summary>

此參數用於指定要按特定關鍵字或標籤搜尋的貼文。

**請求範例：**

`"search_keyword": "music"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-keywords" ^
  -d "spider_parameters=[{\"search_keyword\": \"music\",\"num_of_posts\": \"10\",\"posts_to_not_include\": \"7481392272483896583\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>num_of_posts</code> ，<strong>貼文數（可選）</strong></summary>

此參數用於指定要收集的貼文數量。

**請求範例：**

`"num_of_posts": "10"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-keywords" ^
  -d "spider_parameters=[{\"search_keyword\": \"music\",\"num_of_posts\": \"10\",\"posts_to_not_include\": \"7481392272483896583\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>posts_to_not_include</code> ，<strong>未包含貼文（可選）</strong></summary>

此參數用於指定要從抓取結果中排除的貼文；請輸入貼文 ID。

**請求範例：**

`"posts_to_not_include": "7481392272483896583"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-keywords" ^
  -d "spider_parameters=[{\"search_keyword\": \"music\",\"num_of_posts\": \"10\",\"posts_to_not_include\": \"7481392272483896583\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

3.TikTok  - 透過個人資料 URL 抓取貼文訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_posts_by-profileurl`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-profileurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@babyariel\",\"start_date\": \"08-05-2025\",\"end_date\": \"08-30-2025\",\"num_of_posts\": \"1\",\"what_to_collect\": \"Posts\",\"post_type\": \"Video Posts\",\"posts_to_not_include\": \"\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>url</code>，<strong>個人資料 URL (必填)</strong></summary>

此參數用於指定要抓取的 TikTok 個人資料的 URL。

**請求範例：**

`"url": "https://www.tiktok.com/@babyariel"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-profileurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@babyariel\",\"start_date\": \"08-05-2025\",\"end_date\": \"08-30-2025\",\"num_of_posts\": \"1\",\"what_to_collect\": \"Posts\",\"post_type\": \"Video Posts\",\"posts_to_not_include\": \"\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>start_date</code>，<strong>開始日期（可選）</strong></summary>

此參數用於指定貼文的開始時間，格式為：mm-dd-yyyy，並且應該早於「end\_date」。

**請求範例：**

`"start_date": "08-05-2025"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-profileurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@babyariel\",\"start_date\": \"08-05-2025\",\"end_date\": \"08-30-2025\",\"num_of_posts\": \"1\",\"what_to_collect\": \"Posts\",\"post_type\": \"Video Posts\",\"posts_to_not_include\": \"\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>end_date</code>，<strong>結束日期（可選）</strong></summary>

此參數用於指定帖子的結束時間，格式為：mm-dd-yyyy，並且應該晚於“start\_date”。

**請求範例：**

`"end_date": "08-30-2025"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-profileurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@babyariel\",\"start_date\": \"08-05-2025\",\"end_date\": \"08-30-2025\",\"num_of_posts\": \"1\",\"what_to_collect\": \"Posts\",\"post_type\": \"Video Posts\",\"posts_to_not_include\": \"\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>what_to_collect</code>，<strong>待收集的內容（可選）</strong></summary>

此參數用於指定要收集的內容類型。

**請求範例：**

`"what_to_collect": "Posts"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-profileurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@babyariel\",\"start_date\": \"08-05-2025\",\"end_date\": \"08-30-2025\",\"num_of_posts\": \"1\",\"what_to_collect\": \"Posts\",\"post_type\": \"Video Posts\",\"posts_to_not_include\": \"\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>post_type</code>，<strong>貼文類型（可選）</strong></summary>

此參數用於指定要收集的貼文類型。

**請求範例：**

`"post_type": "Video Posts"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-profileurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@babyariel\",\"start_date\": \"08-05-2025\",\"end_date\": \"08-30-2025\",\"num_of_posts\": \"1\",\"what_to_collect\": \"Posts\",\"post_type\": \"Video Posts\",\"posts_to_not_include\": \"\",\"country\": \"us\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

4.TikTok  - 透過清單 URL 抓取貼文訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_posts_by-listurl`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-listurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/discover/dog\",\"num_of_posts\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> ， <strong>清單 URL（可選）</strong></summary>

此參數用於指定要取得的清單 URL。

**請求範例：**

`"url": "https://www.tiktok.com/discover/dog"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_posts_by-listurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/discover/dog\",\"num_of_posts\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**產品 - 抓取評論資訊：**

TikTok  - 透過貼文 URL 抓取評論訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_comment_by-url`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_comment_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@heymrcat/video/7216019547806092550\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>url</code> ，<strong>貼文 URL (必填)</strong></summary>

此參數用於指定要取得的貼文 URL。

**請求範例：**

`"url": "https://www.tiktok.com/@heymrcat/video/7216019547806092550"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_comment_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@heymrcat/video/7216019547806092550\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>page_turning</code> ，<strong>翻頁（可選）</strong></summary>

此參數指定抓取結果數量的限制。

**請求範例：**

`"page_turning": "1"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_comment_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/@heymrcat/video/7216019547806092550\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

**產品 - 抓取 TikTok 店鋪資訊：**

1.TikTok  - 透過 URL 抓取 TikTok 店鋪信息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_shop_by-url`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_shop_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/shop/pdp/long-sleeve-crew-neck-tee-3-pack-by-galaxy-by-harvic-cotton-blend/1729461570693075200\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>url</code> ， <strong>店舖URL（必填）</strong></summary>

此參數用於指定要取得的商店 URL。

**請求範例：**

`"url": "https://www.tiktok.com/shop/pdp/long-sleeve-crew-neck-tee-3-pack-by-galaxy-by-harvic-cotton-blend/1729461570693075200"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_shop_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.tiktok.com/shop/pdp/long-sleeve-crew-neck-tee-3-pack-by-galaxy-by-harvic-cotton-blend/1729461570693075200\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

2.TikTok  - 按類別 URL 抓取 TikTok 商店信息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_shop_by-category-url`

<pre class="language-sh"><code class="lang-sh">curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
<strong>  -d "spider_id=tiktok_shop_by-category-url" ^
</strong>  -d "spider_parameters=[{\"category_url\": \"https://www.tiktok.com/shop/c/t-shirts/601226\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

</code></pre>

</details>

<details>

<summary><code>category_url</code> ，<strong>類別 URL（必填）</strong></summary>

此參數用於指定要取得的類別 URL。

**請求範例：**

`"category_url": "https://www.tiktok.com/shop/c/t-shirts/601226"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_shop_by-category-url" ^
  -d "spider_parameters=[{\"category_url\": \"https://www.tiktok.com/shop/c/t-shirts/601226\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

3.TikTok  - 透過關鍵字抓取TikTok店鋪訊息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具 (必填)</strong></summary>

定義要使用的抓取工具。

**請求範例：**

`spider_id=tiktok_shop_by-keywords`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_shop_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"T shirt\",\"domain\": \"https://www.tiktok.com/shop\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>keyword</code>， <strong>店鋪關鍵字（必填）</strong></summary>

此參數用於指定要搜尋的關鍵字。

**請求範例：**

`"keyword": "T shirt"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_shop_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"T shirt\",\"domain\": \"https://www.tiktok.com/shop\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>domain</code>，<strong>域名（可選）</strong></summary>

此參數用於指定要抓取的 TikTok 商店的網域名稱。

**請求範例：**

`"domain": "https://www.tiktok.com/shop"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_shop_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"T shirt\",\"domain\": \"https://www.tiktok.com/shop\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

<details>

<summary><code>page_turning</code> ，<strong>翻頁（可選）</strong></summary>

此參數指定抓取結果數量的限制。

**請求範例：**

`"page_turning": "1"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=tiktok.com" ^
  -d "spider_id=tiktok_shop_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"T shirt\",\"domain\": \"https://www.tiktok.com/shop\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

```

</details>

如果您需要進一步的協助，請透過電子郵件聯繫 <support@thordata.com>。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/doc/zh-hk/web-scraper-api/zhua-qu-can-shu-shuo-ming/tiktok-zhua-qu-can-shu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
