This skill is designed to help users automatically extract product data from Amazon search results. The Agent should proactively apply this skill when users request searching for products related to keywords, finding best-selling items from specific brands, monitoring product prices and availability on Amazon, extracting product listings for market research, collecting product ratings and review counts for competitive analysis, finding specific products with a maximum count, searching Amazon in different languages for localized results, tracking monthly sales estimates for brand products, gathering product URLs and titles for a product catalog, scanning Amazon for Best Seller tags in a specific category, monitoring shipping and delivery information for brand items, building a structured dataset of Amazon search results.
This skill provides a one-stop product data collection service through BrowserAct's Amazon Product Search API template. It directly extracts structured product results from Amazon search lists. Simply input search keywords, brand filters, and quantity limits to get clean, usable product data.
Before running, check the BROWSERACT_API_KEY environment variable. If not set, do not take other measures; ask and wait for the user to provide it.
:
"Since you haven't configured the BrowserAct API Key, please visit the BrowserAct Console to get your Key."
When calling the script, the Agent should flexibly configure the following parameters based on user needs:
KeyWords (Search Keywords)
stringphone, wireless earbuds, laptop standBrand (Brand Filter)
stringApple, Samsung, SonyMaximum_date (Maximum Products)
number50language (UI Language)
stringen, de, fr, it, es, ja, zh-CN, zh-TWenThe Agent should execute the following independent script to achieve "one-line command result":
# Example Call
python -u ./scripts/amazon_product_search_api.py "Keywords" "Brand" Quantity "language"
Since this task involves automated browser operations, it may take some time (several minutes). The script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running).
Agent Instructions:
After successful execution, the script will parse and print results directly from the API response. Results include:
product_title: Product nameproduct_url: Detail page URLrating_score: Average star ratingreview_count: Total number of reviewsmonthly_sales: Estimated monthly sales (if available)current_price: Current selling pricelist_price: Original list price (if available)delivery_info: Delivery or fulfillment informationshipping_location: Shipping origin or locationis_best_seller: Whether marked as Best Selleris_available: Whether available for purchaseIf an error occurs during script execution (e.g., network fluctuations or task failure), the Agent should follow this logic:
Check Output Content:
"Invalid authorization", it means the API Key is invalid or expired. Do not retry; guide the user to re-check and provide the correct API Key."Invalid authorization" but the task failed (e.g., output starts with Error: or returns empty results), the Agent should automatically try to re-execute the script once.Retry Limit:
current_price and list_price to monitor discounts.monthly_sales data to estimate market demand for certain items.delivery_info and shipping_location for various brands.is_available for purchase.