amazon-asin-lookup-api-skill
它能做什么
它介绍如何使用 BrowserAct Amazon ASIN 查询服务,获取单个商品的结构化详情。适用于持有商品 ASIN 的卖家、分析人员和购物者。
适用场景
- ✓当卖家想通过 ASIN 获取某商品当前的标题、价格和评分时。
- ✓当分析人员需要一批 ASIN 对应商品的品牌和描述时。
- ✓当有人想检查某商品是否有货以及当前价格时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/ecommerce/amazon-asin-lookup-api-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请查询 ASIN 为 B0EXAMPLE 的 Amazon 商品,并给我它的标题、价格和评分。”
每周 5 个新技能,1 分钟读完。
工作原理
如果尚未设置,该技能会请用户提供 BrowserAct API 密钥,然后将 ASIN 发送给查询服务,并返回结构化的商品字段。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Amazon ASIN Lookup Skill
📖 Introduction
This skill utilizes BrowserAct's Amazon ASIN Lookup API template to provide a seamless way to retrieve comprehensive product information from Amazon. By simply providing an ASIN, you can extract structured data including title, price, ratings, brand, and detailed descriptions directly into your application without manual scraping.
✨ Features
- No Hallucinations: Pre-set workflows avoid AI generative hallucinations, ensuring stable and precise data extraction.
- No Captcha Issues: No need to handle reCAPTCHA or other verification challenges.
- No IP Restrictions: No need to handle regional IP restrictions or geofencing.
- Faster Execution: Tasks execute faster compared to pure AI-driven browser automation solutions.
- Cost-Effective: Significantly lowers data acquisition costs compared to high-token-consuming AI solutions.
🔑 API Key Setup
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.
Agent must inform the user:
"Since you haven't configured the BrowserAct API Key, please visit the BrowserAct Console to get your Key."
🛠️ Input Parameters
The agent should configure the following parameters based on user requirements:
- ASIN (Amazon Standard Identification Number)
- Type:
string - Description: The unique identifier for the Amazon product.
- Required: Yes
- Example:
B07TS6R1SF
- Type:
🚀 Usage
The agent should execute the following script to get results in one command:
# Example Usage
python -u ./scripts/amazon_asin_lookup_api.py "ASIN_VALUE"
⏳ Execution Monitoring
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:
- While waiting for the script result, keep monitoring the terminal output.
- As long as the terminal is outputting new status logs, the task is running normally; do not mistake it for a deadlock or unresponsiveness.
- Only if the status remains unchanged for a long time or the script stops outputting without returning a result should you consider triggering the retry mechanism.
📊 Data Output
Upon success, the script parses and prints the structured product data from the API response, which includes:
product_title: Full title of the product.ASIN: The provided ASIN.product_url: URL of the Amazon product page.brand: Brand name.price_current_amount: Current price.price_original_amount: Original price (if applicable).price_discount_amount: Discount amount (if applicable).rating_average: Average star rating.rating_count: Total number of ratings.featured: Badges like "Amazon's Choice".color: Color variant (if applicable).compatible_devices: List of compatible devices (if applicable).product_description: Full product description.special_features: Highlighted features.style: Style attribute (if applicable).material: Material used (if applicable).
⚠️ Error Handling & Retry
If an error occurs during script execution (e.g., network fluctuations or task failure), the Agent should follow this logic:
Check Output Content:
- If the output contains
"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. - If the output does not contain
"Invalid authorization"but the task failed (e.g., output starts withError:or returns empty results), the Agent should automatically try to re-execute the script once.
- If the output contains
Retry Limit:
- Automatic retry is limited to one time. If the second attempt fails, stop retrying and report the specific error information to the user.
🌟 Typical Use Cases
- Product Data Enrichment: Retrieve full details for a list of ASINs to update an e-commerce database.
- Price Comparison: Lookup current Amazon prices for specific ASINs to compare with other retailers.
- Review Monitoring: Track changes in rating averages and review counts for key products.
- Availability Checks: Automatically verify if a specific product is currently in stock on Amazon.
- Brand Analysis: Identify the brand and manufa
常见问题
它需要 API 密钥吗?
需要。该技能会检查是否有 BrowserAct API 密钥,如果缺少,会请用户提供。
它需要什么输入?
它需要商品的 Amazon ASIN。
它返回什么?
它返回结构化字段,例如标题、价格、评分、品牌和描述。
详情
作者的原始描述
This skill helps users extract structured product details from Amazon using a specific ASIN (Amazon Standard Identification Number). Use this skill when the user asks to get Amazon product details by ASIN, lookup Amazon product title and price using ASIN, extract Amazon product ratings and reviews count for a specific ASIN, check Amazon product availability and current price, get Amazon product description and features via ASIN, enrich product catalog with Amazon data using ASIN, monitor Amazon product price changes for specific ASINs, retrieve Amazon product brand and material information, fe
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14250
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。