TikTok 抓取参数
Web Scraper API TikTok 抓取参数
使用 Thordata 的 Web Scraper API 配置 TikTok 抓取参数,包括个人资料网址、文章网址、搜索网址、页面跳转网址、商店网址、关键词和其他参数。
唯一标识:
token,访问令牌(必填)
此参数用作 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 抓取个人资料信息
spider_id ,抓取工具(必填)
定义要使用的抓取工具。
请求示例:
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}}"
url,个人资料 URL(必填)
此参数用于指定要抓取的 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}}"country,国家(可选)
此参数用于指定要搜索的国家/地区。
请求示例:
"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 - 通过搜索网址抓取个人资料信息
search_url ,搜索URL (required)
此参数指定要抓取的搜索URL。
请求示例:
"search_url": "https://www.tiktok.com/explore?lang=en"
产品 - 抓取帖子信息:
1.TikTok - 通过 URL 抓取帖子信息
url ,帖子URL(必填)
此参数用于指定要抓取的特定 TikTok 帖子的 URL。
请求示例:
"url": "https://www.tiktok.com/@heymrcat/video/7216019547806092550"
2.TikTok - 通过关键词抓取帖子信息
posts_to_not_include ,未包含帖子(可选)
此参数用于指定要从抓取结果中排除的帖子;请输入帖子 ID。
请求示例:
"posts_to_not_include": "7481392272483896583"
3.TikTok - 通过个人资料 URL 抓取帖子信息
4.TikTok - 通过列表 URL 抓取帖子信息
Product - 抓取评论信息:
url , 帖子URL(必填)
此参数用于指定要获取的帖子 URL。
请求示例:
"url": "https://www.tiktok.com/@heymrcat/video/7216019547806092550"
产品 - 抓取 TikTok 店铺信息:
1.TikTok - 通过 URL 抓取 TikTok 店铺信息
url ,店铺 URL(必填)
此参数用于指定要获取的商店 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 商店信息
category_url ,类别URL(必填)
此参数用于指定要获取的类别 URL。
请求示例:
"category_url": "https://www.tiktok.com/shop/c/t-shirts/601226"
3.TikTok - 通过关键词抓取TikTok店铺信息
如果您需要进一步的帮助,请通过电子邮件联系 [email protected]。
Last updated
Was this helpful?