Instagram 抓取參數
Web Scraper API Instagram 抓取參數
使用 Thordata 的 Web Scraper API 配置 Instagram 抓取參數,包括: 個人資料 URL、最大帖子數量、開始日期、結束日期、帖子類型、帖子 URL、用戶名、抓取評論數量、是否抓取最新评论、是否抓取回覆、抓取 Reel 最大數量等參數。
唯一標識:
token,訪問令牌(必填)
此參數用作 API 訪問令牌,以確保抓取請求的合法性。
請求範例:
spider_id=ins_posts_by-profileurl
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=instagram.com" ^
-d "spider_id=ins_posts_by-profileurl" ^
-d "spider_parameters=[{\"profileurl\": \"https://www.instagram.com/marcusfaberfdp\",\"resultsLimit\": \"5\",\"start_date\": \"01-01-2025\",\"end_date\": \"03-01-2025\",\"post_type\": \"Post\"},{\"profileurl\": \"https://www.instagram.com/meta/\",\"resultsLimit\": \"5\",\"start_date\": \"03-01-2025\",\"end_date\": \"03-17-2025\",\"post_type\": \"Post\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"一、產品-抓取帖子信息:
Ins - 通過個人資料 URL 抓取帖子信息
spider_id ,所屬抓取工具(必填)
它定義了要使用的抓取工具。
請求範例:
spider_id=ins_posts_by-profileurl
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=instagram.com" ^
-d "spider_id=ins_posts_by-profileurl" ^
-d "spider_parameters=[{\"profileurl\": \"https://www.instagram.com/marcusfaberfdp\",\"resultsLimit\": \"5\",\"start_date\": \"01-01-2025\",\"end_date\": \"03-01-2025\",\"post_type\": \"Post\"},{\"profileurl\": \"https://www.instagram.com/meta/\",\"resultsLimit\": \"5\",\"start_date\": \"03-01-2025\",\"end_date\": \"03-17-2025\",\"post_type\": \"Post\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"profileurl ,個人資料 URL(必填)
該參數用於指定待抓取的 Instagram 的個人資料訪問 URL。
請求範例:
"profileurl": "https://www.instagram.com/marcusfaberfdp"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=instagram.com" ^
-d "spider_id=ins_posts_by-profileurl" ^
-d "spider_parameters=[{\"profileurl\": \"https://www.instagram.com/marcusfaberfdp\",\"resultsLimit\": \"5\",\"start_date\": \"01-01-2025\",\"end_date\": \"03-01-2025\",\"post_type\": \"Post\"},{\"profileurl\": \"https://www.instagram.com/meta/\",\"resultsLimit\": \"5\",\"start_date\": \"03-01-2025\",\"end_date\": \"03-17-2025\",\"post_type\": \"Post\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"resultsLimit ,最大帖子數(必填)
該參數用於指定抓取帖子的最大數量。
請求範例:
"resultsLimit": "5"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=instagram.com" ^
-d "spider_id=ins_posts_by-profileurl" ^
-d "spider_parameters=[{\"profileurl\": \"https://www.instagram.com/marcusfaberfdp\",\"resultsLimit\": \"5\",\"start_date\": \"01-01-2025\",\"end_date\": \"03-01-2025\",\"post_type\": \"Post\"},{\"profileurl\": \"https://www.instagram.com/meta/\",\"resultsLimit\": \"5\",\"start_date\": \"03-01-2025\",\"end_date\": \"03-17-2025\",\"post_type\": \"Post\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"Ins - 通過帖子 URL 抓取帖子詳細信息
posturl , 帖子 URL(必填)
該參數用於指定待抓取的 Instagram 的帖子 URL。
請求範例:
"posturl": "https://www.instagram.com/p/Cuf4s0MNqNr"
二、產品-抓取 Ins 個人信息:
Ins - 通過用戶名抓取個人信息
Ins - 通過 URL 抓取個人信息
profileurl ,個人資料 URL(必填)
該參數用於指定待抓取的 Instagram 的個人資料訪問 URL。
請求範例:
"profileurl": "https://www.instagram.com/cats_of_world_/"
三、產品 - 抓取 Ins 帖子評論信息
Ins - 通過帖子 URL 抓取帖子評論信息
posturl , 帖子 URL(必填)
該參數用於指定待抓取的 Instagram 的帖子 URL。
請求範例:
"posturl": "https://www.instagram.com/cats_of_instagram/reel/C4GLo_eLO2e/"
isNewestComments ,抓取最新评论(可選)
該參數用於指定抓取評論時,評論列表是否按照最新時間排序。
參數值:true false
請求範例:
"isNewestComments": "true"
includeNestedComments ,抓取回覆(可選)
該參數用於指定抓取是否抓取評論的回覆內容。
參數值:true false
請求範例:
"includeNestedComments": "true"
四、產品 - 抓取 Ins Reel 信息
Ins - 通過 URL 抓取 Reel 信息
url , URL(必填)
該參數用於指定待抓取的 Instagram 的訪問 URL 地址。
請求範例:
"url": "https://www.instagram.com/reel/C5Rdyj_q7YN/"
2、Ins - 通過列表 URL 抓取 Reel 信息
3、Ins - 通過網址抓取 Reel 信息
如果您需要進一步的幫助,請通過電子郵件聯繫 [email protected]。
Last updated
Was this helpful?