Skip to content
登录 注册

常见参数

这些参数适用于所有 Amazon type。特定于类型的参数(例如 type=productasin,或卖家类型的 seller_id)位于各自的端点页面上。

ParameterTypeRequiredDescription
api_keystringyes您的 SERP API 密钥
enginestringyes必须为 amazon
typestringyes指定查询类型(search、product、bestsellers、deals、category、seller_profile、seller_products、seller_feedback)
domainstringno目标市场(例如 amazon.co.ukamazon.de)。默认值为 amazon.com
devicedesktop | mobileno模拟的设备
pageintegerno分页类型的页码
outputjson | htmlno响应格式。默认值为 json

美国桌面版电子产品畅销榜:

Terminal window
curl "https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=bestsellers&category_id=electronics&domain=amazon.com"

德国移动版搜索:

Terminal window
curl "https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=search&q=laptop&domain=amazon.de&device=mobile"

page 从 1 开始索引。当响应中包含 next_page URL 时,可直接访问该 URL,或递增 page 的值。

Terminal window
# Page 1
curl "https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=search&q=books&page=1"
# Page 2
curl "https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=search&q=books&page=2"