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,個人資料網址(必填)
此參數用於指定要抓取的 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 - 透過搜尋網址抓取個人資料訊息
產品 - 抓取貼文資訊:
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 抓取貼文訊息
產品 - 抓取評論資訊:
TikTok - 透過貼文 URL 抓取評論訊息
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?