# TikTok 抓取参数

Web Scraper API TikTok 抓取参数

\
使用 Thordata 的 Web Scraper API 配置 TikTok 抓取参数，包括个人资料网址、文章网址、搜索网址、页面跳转网址、商店网址、关键词和其他参数。

**唯一标识:**

<details>

<summary><code>token</code>，<strong>访问令牌（必填）</strong></summary>

此参数用作 API 访问令牌，以确保抓取的合法性。

**请求示例：**

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

```sh
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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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>个人资料 URL（必填）</strong></summary>

此参数用于指定要抓取的 TikTok 个人资料的 URL。

**请求示例:**&#x20;

`"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>

此参数用于指定要搜索的国家/地区。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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>搜索URL (required)</strong></summary>

此参数指定要抓取的搜索URL。

**请求示例:**&#x20;

`"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>

此参数用于指定要搜索的国家/地区。

**请求示例:**&#x20;

`"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>

此参数指定抓取结果数量的限制。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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。

**请求示例:**&#x20;

`"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>

此参数用于指定要搜索的国家/地区。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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>

此参数用于指定要按特定关键字或标签搜索的帖子。

**请求示例:**&#x20;

`"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>

此参数用于指定要收集的帖子数量。

**请求示例:**&#x20;

`"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。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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。

**请求示例:**&#x20;

`"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”。

**请求示例:**&#x20;

`"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”。

**请求示例:**&#x20;

`"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>

此参数用于指定要收集的内容类型。

**请求示例:**&#x20;

`"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>

此参数用于指定要收集的帖子类型。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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。

**请求示例:**&#x20;

`"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>

**Product - 抓取评论信息：**

<details>

<summary><code>spider_id</code> ，<strong>抓取工具（必填）</strong></summary>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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。

**请求示例:**&#x20;

`"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>

此参数指定抓取结果页数的限制。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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。

**请求示例:**&#x20;

`"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>

定义要使用的抓取工具。

**请求示例:**&#x20;

`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>

此参数用于指定要搜索的关键词。

**请求示例:**&#x20;

`"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 商店的域名。

**请求示例:**&#x20;

`"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>

此参数指定抓取结果数量的限制。

**请求示例:**&#x20;

`"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>。
