TikTok 抓取参数

Web Scraper API TikTok 抓取参数

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

唯一标识:

chevron-righttoken访问令牌(必填)hashtag

此参数用作 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}}"

产品 - 抓取个人资料信息:

1. TikTok - 通过 URL 抓取个人资料信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_profiles_by-url

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}}"
chevron-righturl个人资料 URL(必填)hashtag

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

请求示例:

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

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}}"
chevron-rightcountry国家(可选)hashtag

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

请求示例:

"country": "us"

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

2.TikTok - 通过搜索网址抓取个人资料信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_profiles_by-listurl

chevron-rightsearch_url搜索URL (required)hashtag

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

请求示例:

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

chevron-rightcountry国家/地区(可选)hashtag

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

请求示例:

"country": "us"

chevron-rightpage_turning翻页(可选)hashtag

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

请求示例:

"page_turning": "1"

产品 - 抓取帖子信息:

1.TikTok - 通过 URL 抓取帖子信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_posts_by-url

chevron-righturl帖子URL(必填)hashtag

此参数用于指定要抓取的特定 TikTok 帖子的 URL。

请求示例:

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

chevron-rightcountry国家/地区(可选)hashtag

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

请求示例:

"country": "us"

2.TikTok - 通过关键词抓取帖子信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_posts_by-keywords

chevron-rightsearch_keyword搜索关键词(必填)hashtag

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

请求示例:

"search_keyword": "music"

chevron-rightnum_of_posts帖子数量(可选)hashtag

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

请求示例:

"num_of_posts": "10"

chevron-rightposts_to_not_include未包含帖子(可选)hashtag

此参数用于指定要从抓取结果中排除的帖子;请输入帖子 ID。

请求示例:

"posts_to_not_include": "7481392272483896583"

3.TikTok - 通过个人资料 URL 抓取帖子信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_posts_by-profileurl

chevron-righturl个人资料URL(必填)hashtag

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

请求示例:

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

chevron-rightstart_date开始日期(可选)hashtag

此参数用于指定帖子的开始时间,格式为:mm-dd-yyyy,并且应该早于“end_date”。

请求示例:

"start_date": "08-05-2025"

chevron-rightend_date结束日期(可选)hashtag

此参数用于指定帖子的结束时间,格式为:mm-dd-yyyy,并且应该晚于“start_date”。

请求示例:

"end_date": "08-30-2025"

chevron-rightwhat_to_collect待收集的内容(可选)hashtag

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

请求示例:

"what_to_collect": "Posts"

chevron-rightpost_type帖子类型(可选)hashtag

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

请求示例:

"post_type": "Video Posts"

4.TikTok - 通过列表 URL 抓取帖子信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_posts_by-listurl

chevron-righturl列表 URL(可选)hashtag

此参数用于指定要获取的列表 URL。

请求示例:

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

Product - 抓取评论信息:

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_comment_by-url

chevron-righturl帖子URL(必填)hashtag

此参数用于指定要获取的帖子 URL。

请求示例:

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

chevron-rightpage_turning翻页(可选)hashtag

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

请求示例:

"page_turning": "1"

产品 - 抓取 TikTok 店铺信息:

1.TikTok - 通过 URL 抓取 TikTok 店铺信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_shop_by-url

chevron-righturl店铺 URL(必填)hashtag

此参数用于指定要获取的商店 URL。

请求示例:

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

2.TikTok - 通过类别 URL 抓取 TikTok 商店信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_shop_by-category-url

chevron-rightcategory_url 类别URL(必填)hashtag

此参数用于指定要获取的类别 URL。

请求示例:

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

3.TikTok - 通过关键词抓取TikTok店铺信息

chevron-rightspider_id抓取工具(必填)hashtag

定义要使用的抓取工具。

请求示例:

spider_id=tiktok_shop_by-keywords

chevron-rightkeyword 店铺关键词(必填)hashtag

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

请求示例:

"keyword": "T shirt"

chevron-rightdomain域名(可选)hashtag

此参数用于指定要抓取的 TikTok 商店的域名。

请求示例:

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

chevron-rightpage_turning翻页(可选)hashtag

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

请求示例:

"page_turning": "1"

如果您需要进一步的帮助,请通过电子邮件联系 [email protected]

Last updated

Was this helpful?