Amazon 擷取參數
Web Scraper API Amazon 抓取參數
使用 Thordata 的 Web Scraper API 配置 Amazon 抓取參數,包括產品、Token、抓取 URLs、賣家 URLs、域名、關鍵詞、排序方式、UPC、抓取最大頁數、子類別等參數。
唯一標識:
token
,訪問令牌(必填)
此參數用作 API 訪問令牌,以確保抓取請求的合法性。
請求示例:
"Authorization: Bearer ********************************"
curl -X POST "http://scraperapi.thordata.com/builder" \
-H "Authorization: Bearer ********************************" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "spider_name=amazon.com" \
-d "individual_params={\"spider_parameters\":[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\",\"zip_code\": \"94107\"}],\"spider_id\":\"amazon_product_by-url\",\"spider_errors\":true}" \
-d "file_name={{TasksID}}"
一、產品 - 抓取產品信息工具:
Amazon - 通過 URL 收集產品信息
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_product_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=amazon.com" ^
-d "spider_id=amazon_product_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"zip_code\": \"94107\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取目標鏈接(必填)
此參數用於指定待抓取的 Amazon 訪問 URL 地址。
請求範例:
"url": "https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"zip_code\": \"94107\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
zip_code
,郵遞區號(可選)
此參數用於指定抓取頁面中配送區域的郵遞區號。
請求範例:
"zip_code": "94107"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"zip_code\": \"94107\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
Amazon - 通過暢銷商品 URL 收集產品信息
spider_id
,所屬抓取工具(必填)
此參數用於指定要使用的抓取工具。
請求範例:
spider_id=amazon_product_by-best-sellers
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-best-sellers" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"collect_child_categories\": \"\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取目標鏈接(必填)
該參數用於指定待抓取的 Amazon 訪問 URL 地址。
請求示例:
"url": "https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-best-sellers" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"collect_child_categories\": \"\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
collect_child_categories
,子類別(可選)
此參數用來指定在主類別範圍內要抓取的子類別商品範圍。
請求範例:
"collect_child_categories":""
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-best-sellers" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"collect_child_categories\": \"\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
Amazon - 通過類別 URL 收集產品數據
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_product_by-category-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=amazon.com" ^
-d "spider_id=amazon_product_by-category-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取類別目標鏈接(必填)
該參數用於指定待抓取的 Amazon 訪問 URL 地址。
請求示例:
"url":"https://www.amazon.com/s?i=luggage-intl-ship"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-category-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
sort_by
,排序方式(可選)
該參數用於配置類別頁面抓取時的排序方式,支持按暢銷品、最新到貨、客戶評論、價格或特色排序。參數值包括:
Best Sellers
Newest Arrivals
Average Rating
Price: High to Low
Price: Low to High
Featured Recommendations
請求示例:
"sort_by":"Best Sellers"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-category-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
Amazon - 通過關鍵詞收集產品信息
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_product_by-keywords
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-keywords" ^
-d "spider_parameters=[{\"keyword\": \"Apple Watch\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
keyword
,關鍵詞(必填)
該參數用於指定抓取 Amazon 產品時使用的搜索關鍵詞。
請求示例:
"keyword":"Apple Watch"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-keywords" ^
-d "spider_parameters=[{\"keyword\": \"Apple Watch\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
Amazon - 通過 UPC 收集產品信息
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_product_by-upc
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-upc" ^
-d "spider_parameters=[{\"upc\": \"841710108224\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
upc
,UPC(必填)
Amazon 產品所對應的 UPC。需注意,每個 UPC 可能關聯多個產品。
請求示例:
"upc":"841710108224"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product_by-upc" ^
-d "spider_parameters=[{\"upc\": \"841710108224\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
二、產品 - 抓取產品評論工具:
Amazon - 通過 URL 收集產品評論
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_comment_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=amazon.com" ^
-d "spider_id=amazon_comment_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取目標鏈接(必填)
該參數用於指定待抓取的 Amazon 訪問 URL 地址。
請求示例:
"url": "https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_comment_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
三、產品 - 抓取全球產品信息工具:
Amazon - 通過 URL 收集全球產品數據
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_global-product_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=amazon.com" ^
-d "spider_id=amazon_global-product_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/dp/B0CHHSFMRL/\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取目標鏈接(必填)
該參數用於指定待抓取的 Amazon 訪問 URL 地址。
請求示例:
"url": "https://www.amazon.com/dp/B0CHHSFMRL/"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/dp/B0CHHSFMRL/\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
2.1. Amazon - 通過品牌收集全球產品數據
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_global-product_by-brand
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-brand" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?k=football%26i=fashion%26rh=n%3A7141123011%2Cp_123%3A233083\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取目標鏈接(必填)
該參數用於指定待抓取的 Amazon 訪問 URL 地址。
請求示例:
"url": "https://www.amazon.com/s?k=football%26i=fashion%26rh=n%3A7141123011%2Cp_123%3A233083"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-brand" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?k=football%26i=fashion%26rh=n%3A7141123011%2Cp_123%3A233083\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
2.2. Amazon - 透過關鍵字 or 品牌收集全球產品數據
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_global-product_by-keywords-brand
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords-brand" ^
-d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
keyword
, 關鍵字(必填)
此參數用於指定抓取 Amazon 產品時所使用的搜尋關鍵字。
請求示例:
"keyword": "shirts"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords-brand" ^
-d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
brands
,品牌(必填)
此參數用於指定抓取的品牌訊息,請輸入 Amazon 平台有的品牌名稱,如果找不到該品牌選項,則抓取欄位將為空。
請求示例:
"brands": "Adidas"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords-brand" ^
-d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
page_turning
,抓取頁數(必填)
此參數用於設定抓取搜尋結果的頁數。輸入數字 n 表示抓取從第一頁到第 n 頁的所有產品資料。
參數值:1-100000
請求示例:
"page_turning": "2"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords-brand" ^
-d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
3. Amazon - 通過類別 URL 收集全球產品數據
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_global-product_by-category-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=amazon.com" ^
-d "spider_id=amazon_global-product_by-category-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取類別目標鏈接(必填)
該參數用於指定待抓取的 Amazon 訪問 URL 地址。
請求示例:
"url": "https://www.amazon.com/s?i=luggage-intl-ship"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-category-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
sort_by
,排序方式(可選)
該參數用於配置類別頁面抓取時的排序方式,支持按暢銷品、最新到貨、客戶評論、價格或特色排序。參數值包括:
Best Sellers
Newest Arrivals
Average Rating
Price: High to Low
Price: Low to High
Featured Recommendations
請求示例:
"sort_by":"Best Sellers"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-category-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
get_sponsored
,獲取贊助商品(可選)
該參數用於配置,勾選 “True” 可同時收集贊助商品,即使它們不屬於該類別。
參數值: true
false
請求示例:
"get_sponsored":"true"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-category-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
Amazon - 通過關鍵詞收集全球產品數據
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_global-product_by-keywords
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords" ^
-d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
keyword
,關鍵詞(必填)
該參數用於指定抓取 Amazon 產品時使用的搜索關鍵詞。
請求示例:
"keyword":"Mitutoyo""
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords" ^
-d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
domain
,主域名(必填)
該參數用於指定賣家首頁的 URL,以便抓取該賣家所售產品的資料。
請求示例:
"domain":"https://www.amazon.com"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords" ^
-d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
page_turning
,抓取頁數(可選)
該參數用於設定抓取搜尋結果的頁數。輸入數字 n 表示抓取從第 1 頁到第 n 頁的所有產品資料。
請求示例:
"page_turning":"1"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-keywords" ^
-d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
Amazon - 通過賣家收集全球產品數據
spider_id
,所屬抓取工具(必填)
定義了使用哪一個抓取工具。
請求示例:
spider_id=amazon_global-product_by-seller-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=amazon.com" ^
-d "spider_id=amazon_global-product_by-seller-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.de/stores/page/DE4854A4-1CF9-4C69-BF27-17B0E692ACF0\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取目標鏈接(必填)
該參數用於指定待抓取的 Amazon 的訪問 URL 地址。
請求示例:
"url":"https://www.amazon.de/stores/page/DE4854A4-1CF9-4C69-BF27-17B0E692ACF0"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_global-product_by-seller-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.de/stores/page/DE4854A4-1CF9-4C69-BF27-17B0E692ACF0\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
四、產品 - 抓取賣家信息工具:
Amazon - 通過 URL 收集賣家信息
spider_id
,所屬抓取工具(必填)
定義了使用哪一個抓取工具。
請求示例:
spider_id=amazon_seller_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=amazon.com" ^
-d "spider_id=amazon_seller_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/sp?ie=UTF8%26seller=ADZ7LD48GVFQJ%26asin=B07H56J7K1%26ref_=dp_merchant_link%26isAmazonFulfilled=1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
url
,抓取目標鏈接(必填)
該參數用於指定待抓取的 Amazon 的訪問 URL 地址。
請求示例:
"url": "https://www.amazon.com/sp?ie=UTF8%26seller=ADZ7LD48GVFQJ%26asin=B07H56J7K1%26ref_=dp_merchant_link%26isAmazonFulfilled=1"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_seller_by-url" ^
-d "spider_parameters=[{\"url\": \"https://www.amazon.com/sp?ie=UTF8%26seller=ADZ7LD48GVFQJ%26asin=B07H56J7K1%26ref_=dp_merchant_link%26isAmazonFulfilled=1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
五、產品 - 抓取產品列表:
Amazon - 通過關鍵詞收集產品列表
spider_id
,所屬抓取工具(必填)
定義了使用哪個抓取工具。
請求示例:
spider_id=amazon_product-list_by-keywords-domain
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product-list_by-keywords-domain" ^
-d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
keyword
,關鍵詞(必填)
該參數用於指定抓取 Amazon 產品時使用的搜索關鍵詞。
請求示例:
"keyword": "X-box"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product-list_by-keywords-domain" ^
-d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
domain
,主域名(必填)
該參數用於指定賣家首頁的 URL,以便抓取該賣家所售產品的資料。
請求示例:
"domain": "https://www.amazon.com/"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product-list_by-keywords-domain" ^
-d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
page_turning
,抓取頁數(可選)
該參數用於設定抓取搜尋結果的頁數。輸入數字 n 表示抓取從第 1 頁到第 n 頁的所有產品資料。
請求示例:
"page_turning":"1"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=amazon.com" ^
-d "spider_id=amazon_product-list_by-keywords-domain" ^
-d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
若您需要更多協助,請透過電子郵件與我們聯繫:[email protected]。
Last updated
Was this helpful?