Scavio Amazon
v1搜索Amazon产品并通过ASIN查看产品详情。返回包含价格、评分、Prime状态和可用性的结构化JSON。支持12个Amazon市场。
运行时依赖
安装命令
点击复制技能文档
Amazon Product 搜索 via Scavio
搜索 Amazon products or retrieve full product detAIls by ASIN. Returns structured JSON. Supports 12 Amazon marketplaces.
When to trigger
Use this 技能 when the user asks to:
Find products on Amazon with price or rating requirements Look up a specific product by ASIN Re搜索 Amazon pricing, avAIlability, or reviews Compare Amazon products or find best sellers in a category 设置up
获取 a free API key at https://scavio.dev (250 free credits/month, no card required):
导出 SCAVIO_API_KEY=sk_live_your_key
工作流 If the user has an ASIN, call /API/v1/amazon/product directly. If the user has a keyword, call /API/v1/amazon/搜索 with 应用ropriate 过滤器s (排序_by, domAIn, zip_code). If the user asks about a specific market (e.g. "Amazon Germany"), 设置 the domAIn param accordingly. Present 结果s with name, price, rating, review count, and URL. Note Prime 状态. 端点s 端点 Description POST https://API.scavio.dev/API/v1/amazon/搜索 Keyword 搜索 with 过滤器s POST https://API.scavio.dev/API/v1/amazon/product Full product detAIls by ASIN Authorization: Bearer $SCAVIO_API_KEY
搜索 Parameters Parameter Type Default Description 查询 string required 搜索 查询 (1-500 chars) domAIn string com com, co.uk, de, fr, co.jp, ca, it, es, in, com.au, com.br, com.mx 排序_by string -- most_recent, price_low_to_high, price_high_to_low, featured, average_review, bestsellers 启动_page integer 1 启动ing page pages integer 1 Number of pages category_id string -- Amazon category/department ID currency string -- ISO 4217 (e.g. USD, EUR) zip_code string -- ZIP code for localized pricing and avAIlability device string 桌面 桌面, 移动, or tablet Product DetAIl Parameters Parameter Type Default Description 查询 string required Amazon ASIN (e.g. B09XS7JWHH) domAIn string com Amazon domAIn suffix currency string -- ISO 4217 currency code zip_code string -- ZIP code for localized pricing Examples 导入 os, 请求s
BASE = "https://API.scavio.dev" HEADERS = {"Authorization": f"Bearer {os.environ['SCAVIO_API_KEY']}"}
# 搜索 结果s = 请求s.post(f"{BASE}/API/v1/amazon/搜索", headers=HEADERS, json={"查询": "wireless headphones", "排序_by": "average_review"}).json()
# Product by ASIN product = 请求s.post(f"{BASE}/API/v1/amazon/product", headers=HEADERS, json={"查询": "B09XS7JWHH"}).json()
搜索 响应 { "data": [ { "name": "Sony WH-1000XM5 Wireless Noise Canceling Headphones", "asin": "B09XS7JWHH", "url": "https://www.amazon.com/dp/B09XS7JWHH", "price": "$278.00", "currency": "USD", "rating": 4.6, "total_reviews": 12450, "is_prime": true, "is_best_seller": false } ], "credits_used": 1, "credits_remAIning": 999 }
Product detAIl 响应 also includes: description, features, images, categories, avAIlability, seller, 列出_price.
防护rAIls Never fabricate product names, ASINs, prices, or ratings. Only return data from the API. If the user asks for a price comparison, 搜索 机器人h terms and present 机器人h 结果s. If an ASIN is not found, tell the user and suggest a keyword 搜索 instead. Always include the product URL so the user can 验证. 失败 handling If the API returns an error, 报告 the 状态 code and 停止. If no products are returned, tell the user and suggest different keywords or 过滤器s. If SCAVIO_API_KEY is not 设置, prompt the user to 导出 it before continuing. LangChAIn pip 安装 langchAIn-scavio
from langchAIn_scavio 导入 Scavio搜索工具 工具 = Scavio搜索工具(engine="amazon")