Amazon 卖家爬虫 API
最后更新: · REST · JSON
发送 GET https://api.scrapier.io/api/v2/amazon-seller-scraper/?queries=laptop,并在 X-API-Key 请求头中带上密钥,即可以 JSON 获得该页卖家。每页卖家 30 积分;失败的调用免费。
- 每页卖家 30 积分
- 失败的调用免费
- 没有速率限制
调用 Amazon 卖家爬虫 API
在你自己的应用、脚本或智能体中使用 Amazon 卖家爬虫 API。你需要一个 Scrapier 账号,以及控制台中的 API 密钥。请选择一种语言。
import requests# Replace YOUR_API_KEY with the key from your Scrapier dashboardAPI_KEY = "YOUR_API_KEY"params = { "search_type": "keyword", "queries": "laptop", "location_name": "United States", "max_offers": "100", "seller_details": "true",}r = requests.get( "https://api.scrapier.io/api/v2/amazon-seller-scraper/", headers={"X-API-Key": API_KEY}, params=params, timeout=210,)r.raise_for_status()# The result sits under data.productsresult = r.json()["data"]["products"]print(result)
// Replace YOUR_API_KEY with the key from your Scrapier dashboardconst API_KEY = "YOUR_API_KEY";const params = new URLSearchParams({ search_type: "keyword", queries: "laptop", location_name: "United States", max_offers: "100", seller_details: "true",});const res = await fetch(`https://api.scrapier.io/api/v2/amazon-seller-scraper/?${params}`, { headers: { "X-API-Key": API_KEY }, signal: AbortSignal.timeout(210_000),});if (!res.ok) throw new Error(`HTTP ${res.status}`);const { data } = await res.json();console.log(data.products);
# One GET request. The key goes in a header, never in the URL.GET /api/v2/amazon-seller-scraper/?search_type=keyword&queries=laptop&location_name=United States&max_offers=100&seller_details=true HTTP/1.1Host: api.scrapier.ioX-API-Key: YOUR_API_KEYAccept: application/json
# Scrapier publishes an OpenAPI spec that covers every endpoint. No API key needed.curl -O https://api.scrapier.io/api/v2/openapi.json# Import openapi.json into Postman, Insomnia, Bruno or a code generator,# then add your key as the X-API-Key header.
# 1. Add the Scrapier MCP server to Claude Codeclaude mcp add -t http scrapier https://mcp.scrapier.io/mcp --header "X-API-Key: YOUR_API_KEY"# 2. Ask your agent. It finds the endpoint with search_endpoints# and calls it with run_scrape:"Find the Amazon sellers for wireless keyboard and list each seller's business name and address"run_scrape("amazon-seller-scraper", {queries: "laptop"})
Python 版 Amazon 卖家爬虫 API
只需普通的 requests,无需 SDK。每个响应都是类型化 JSON。
安装
JavaScript 版 Amazon 卖家爬虫 API
可在 Node 18+、Deno、Bun 和边缘运行时中使用内置的 fetch。
检查你的环境
HTTP 版 Amazon 卖家爬虫 API
一次 GET 请求。认证只需一个 X-API-Key 请求头。
检查你的环境
Amazon 卖家爬虫 API 的 OpenAPI 定义
下载一次规范,然后导入到你已在使用的工具中。获取它无需密钥。
下载规范
通过 MCP 使用 Amazon 卖家爬虫 API
同一个端点也是 Claude Code、Cursor 和 Windsurf 的工具调用。输入同样是 queries,同样是每页卖家 30 积分。
安装
其他调用方式
Amazon 卖家爬虫 API 交互式试用
编辑请求,观察代码更新,然后运行。没有密钥时它显示目录示例,不计费。使用你的密钥时,它会从浏览器发出真实调用;密钥只会发送到 api.scrapier.io,从不存储。
GET /api/v2/amazon-seller-scraper/?queries=laptop点击运行请求发送。没有密钥时你得到的是目录示例。
失败的调用不计费。
无论输入什么,示例都相同:它展示的是响应结构,而不是你输入的账户。
示例响应,目录示例,2026 年11月 9 日
{
"success": true,
"data": {
"queries": "wireless keyboard",
"search_url": "https://www.amazon.com/s?k=wireless+keyboard",
"page": 1,
"page_size": 10,
"total_pages": 20,
"products": [
{
"input_url": "B0BTQ3HXRS",
"id": "420058c4-e29c-464e-981c-b5f6d17d6699",
"url": "https://www.amazon.com/dp/B0BTQ3HXRS",
"name": "Sweetwater Sound",
"business_name": "Sweetwater Sound LLC",
"phone": "800-410-6887",
"address": "5501 US HIGHWAY 30 W, FORT WAYNE, IN, 46818-8998, US",
"product": {
"title": "Yamaha CK Series 88-Key Stage Keyboard with Built-In Speakers, Black (CK88)",
"url": "https://www.amazon.com/dp/B0BTQ3HXRS",
"asin": "B0BTQ3HXRS",
"price": {
"value": 1499.99,
"currency": "$"
},
"list_price": {
"value": 1499.99,
"currency": "$"
},
"brand": "Yamaha",
"stars": 4.5,
"reviews_count": 73,
"in_stock_text": "In Stock",
"features": [
"Two split points increase flexibility to play three different sounds across the keyboard."
],
"bestseller_ranks": [
{
"rank": 10001,
"category": "Musical Instruments"
},
{
"rank": 76,
"category": "Portable & Arranger Keyboards"
}
],
"offers": [
{
"seller": "Sweetwater Sound",
"seller_url": "https://www.amazon.com/gp/help/seller/at-a-glance.html/ref=dp_merchant_link?ie=UTF8&seller=A2OH8CUXAUQ6XZ&asin=B0BTQ3HXRS&ref_=dp_merchant_link",
"ships_from": null,
"price": {
"value": 1499.99,
"currency": "$"
},
"condition": "New",
"is_buy_box_winner": true
}
],
"category_page_data": {
"page_number": 1,
"sale_summary": null,
"is_sponsored": false,
"bestseller_badge": null,
"product_position": 1
},
"input": "https://www.amazon.com/dp/B0BTQ3HXRS"
},
"scraped_at": "2026-09-14T04:25:11.116Z"
}
],
"next_cursor": "eyJxIjoid2lyZWxlc3Mga2V5Ym9hcmQiLCJwIjoxLCJzIjpbIkIwMDRONjI3S1MiLCJCMDc5SkxZNU01IiwiQjAxNEVVUU9HSyIsIkIwOVAzM1JXRkoiLCJCMEYzN0xZMUZOIiwiQjBEMTROMlFaRiIsIkIwSERDN0RXUkYiLCJCMENIOVRQSjNWIiwiQjA3RDM0TDU3RiIsIkIwRFhMMjM5VzEiXSwibiI6MTB9"
}
}你可以提取的数据
Amazon 卖家爬虫帮你找出谁在 Amazon 上销售。下面每个字段都来自目录示例响应,是带类型的 JSON。
卖家
响应中有 6 个字段。
- id
- url
- name
- business_name
- phone
- address
产品
响应中有 1 个字段。
- product
行上下文
响应中有 2 个字段。
- input_url
- scraped_at
响应结构与分页
响应中有 7 个字段。
- success
- data.queries
- data.search_url
- data.page
- data.page_size
- data.total_pages
- data.next_cursor
响应结构参考
示例响应中的每个字段。字段名每次调用都保持不变。
| 字段 | 类型 | 示例 | 说明 |
|---|---|---|---|
products.id | string | "420058c4-e29c-464e-981c-b5f6d17d6699" | 该行的 ID |
products.url | string | "https://www.amazon.com/dp/B0BTQ3HXRS" | 发现该卖家的商品页 URL |
products.name | string | "Sweetwater Sound" | 卖家名称 |
products.business_name | string | "Sweetwater Sound LLC" | 卖家的注册企业名称 |
products.phone | string | "800-410-6887" | 卖家资料页上列出的电话 |
products.address | string | "5501 US HIGHWAY 30 W, FORT WAYNE, IN, 46818…" | 卖家的企业地址 |
products.product | object | {…} | 包含商品的对象:title、url、asin、price、list_price、brand、stars、reviews_count、in_stock_text、features、bestseller_ranks、offers、category_page_data 和 input |
products.input_url | string | "B0BTQ3HXRS" | 你的输入,在该行中原样返回 |
products.scraped_at | string | "2026-09-14T04:25:11.116Z" | 该行被抓取的 UTC 时间 |
success | boolean | true | 每个 200 响应都为 true |
data.queries | string | "wireless keyboard" | 你的输入,原样返回 |
data.search_url | string | "https://www.amazon.com/s?k=wireless+keyboard" | 所用的 Amazon 搜索 URL |
data.page | integer | 1 | 本次响应的页码 |
data.page_size | integer | 10 | 每页行数 |
data.total_pages | integer | 20 | 该搜索的总页数 |
data.next_cursor | string | "eyJxIjoid2lyZWxlc3Mga2V5Ym9hcmQiLCJwIjoxLCJ…" | 作为 cursor 传回即可获取下一页;最后一页为 null |
请求参数参考
| 名称 | 类型 | 必填 | 默认值 | 说明 | 示例 |
|---|---|---|---|---|---|
search_type | string | 否 | keyword | keyword(默认)搜索一个词或 URL,返回商品及其黄金购物车卖家详情。asin 接受 ASIN 或商品 URL,返回全部报价(卖家、价格、成色、发货地、卖家评分、送达日期)及每个卖家的资料页 | keyword |
queries | string | 是 | — | 搜索词、Amazon 搜索 URL、商品 URL 或单独的 ASIN。第一次调用必填。在 ASIN 模式下它会逐页读取报价,每次调用约 10 个卖家。别名:query、q、url、urls、asin、asins | laptop |
cursor | string | 否 | — | 原样传回上一个响应的 data.next_cursor,即可获取下一页;null 表示最后一页 | — |
location_name | string | 否 | United States | ASIN 模式:站点和配送地点,默认 United States。别名:location、location_code、country | United States |
language_name | string | 否 | — | ASIN 模式:店铺语言,可用名称或代码,例如 en_US。别名:language、language_code | — |
se_domain | string | 否 | — | ASIN 模式:覆盖 Amazon 域名,例如 amazon.co.uk 或 amazon.de | — |
zip_code | string | 否 | — | ASIN 模式:覆盖配送邮政编码。默认:该站点所在国的首都。别名:postal_code、zip | — |
tag | string | 否 | — | 你自己的标识符,最多 255 个字符,在每条结果中原样返回 | — |
max_offers | integer | 否 | 100 | ASIN 模式:每个 ASIN 的最大报价(卖家)数,含黄金购物车报价,默认 100,最大 500 | 100 |
seller_details | boolean | 否 | true | ASIN 模式:抓取每个卖家的资料页以获取企业名称和地址,默认 true。每个卖家多一次请求 | true |
use_proxy | boolean | 否 | true | 通过 Scrapier 的住宅代理池路由,默认开启。保持原样即可 | true |
raw_data | boolean | 否 | false | 在 raw_responses 下返回 Amazon 的原始上游数据,而不是格式化后的条目 | true |
每次调用一个关键词或 ASIN:要查询十个,就调用十次,并用 cursor 为每个翻页。布尔值是字符串 true 或 false。
Amazon 卖家爬虫 API 的分页
Amazon 卖家爬虫 API 分页返回结果。把 data.next_cursor 作为 cursor 传回即可获取下一页;当它为 null 时表示没有更多结果。每次成功调用,无论首页还是后续页,都消耗 30 积分。
无需登录 Amazon 即可访问
Amazon 卖家爬虫 API 不需要 Amazon 账号、登录或会话 cookie。你在 X-API-Key 请求头中带上 Scrapier 密钥,即可获得 JSON。它只读取公开数据:任何访客在未登录时能看到的内容。
速度、成本和并发
| 指标 | 数值 | 来源 |
|---|---|---|
| 成功调用的成本 | 30 积分 | Scrapier 目录 |
| 失败调用的成本 | 0 积分 | 任何非 2xx 响应 |
| 每个密钥的并行请求数 | 无限制 | 所有套餐均无速率限制 |
| 建议的客户端超时 | 210 秒 | Scrapier 文档,适用于每个端点 |
Amazon 卖家爬虫 API 的延迟
Scrapier 不公布该端点的延迟或成功率数据。每次调用都在调用时读取 Amazon,所以响应时间取决于 Amazon 和结果的大小。请按文档对每个端点的建议,把客户端超时设为 210 秒。
端点的限制
Amazon 卖家爬虫 API 的真实限制。
- 仅限公开数据。
- 调用失败(例如卖家页缺失或不可用)会返回非 2xx 状态码,并消耗 0 积分。
- 数据在调用时实时读取。
- 没有速率限制,因此需要多少并行请求,就发多少。
- 较大的结果分页返回;把
data.next_cursor作为cursor传回。 - Amazon 没有显示的字段不会返回。
Scrapier 与官方 Amazon API 对比
如果你需要完全定制的爬虫,或已经运行自己的抓取技术栈,自建能提供更多控制;Scrapier 适合想用一个密钥、一种 JSON 结构覆盖多个平台的团队。
| 功能 | Scrapier Amazon 卖家爬虫 | 自建 Amazon 抓取 |
|---|---|---|
| 所需权限 | 一个 Scrapier API 密钥 | 你自己的代理、解析器和服务器 |
| 哪些数据 | 某个关键词的黄金购物车卖家,或某个 ASIN 的全部报价 | 你的解析器提取到什么就是什么 |
| 返回的字段 | 每行 9 个字段:卖家名称、企业名称、地址,以及带报价的商品 | 你构建并维护什么就是什么 |
| 设置 | 注册,复制密钥,发送请求 | 编写选择器,处理封锁和重试 |
| 成本 | 每次调用 30 积分,每 1,000 次调用起 $3.59 | 代理、服务器和工程时间 |
错误与重试处理
| 状态 | 含义 | 是否计费 | 解决办法 |
|---|---|---|---|
| 200 | 卖家页数据,返回在 data.products 中 | 是 | — |
| 400 | 输入有误或缺失 | 否 | 检查 queries:每次调用一个值 |
| 401 | 缺少 X-API-Key 请求头 | 否 | 添加该请求头 |
| 402 | 积分用完(响应体含 balance) | 否 | 充值;重试无济于事 |
| 403 | API 密钥无效或已撤销 | 否 | 在控制台中检查密钥 |
| 429 | 被限流 | 否 | 等待 Retry-After 秒后重试 |
| 5xx | 上游故障或超时 | 否 | 退避重试;把客户端超时设为 210 s |
来自错误参考。任何非 2xx 响应消耗 0 积分。
Amazon 卖家爬虫 API 的重试逻辑
import time, requests def get_seller(value, key, tries=5): for attempt in range(tries): r = requests.get( "https://api.scrapier.io/api/v2/amazon-seller-scraper/", headers={"X-API-Key": key}, params={"queries": value}, timeout=210, ) if r.status_code == 429: time.sleep(int(r.headers.get("Retry-After", 2 ** attempt))) elif r.status_code >= 500: time.sleep(2 ** attempt) else: r.raise_for_status() return r.json() raise RuntimeError("gave up after retries")
价格与速率限制
| 套餐 | 月费 | 包含卖家页面 | 每 1,000 次成本 |
|---|---|---|---|
| Hobby | $29 | 5,000 | $5.80 |
| Pro | $79 | 16,666 | $4.74 |
| Scale | $299 | 83,333 | $3.59 |
Amazon 卖家爬虫 API 的计费规则
Amazon Seller Scraper API 按每个成功获取的卖家数据页收取 30 积分。失败的调用(即任何非 2xx 状态)消耗 0 积分。所有套餐都没有速率限制。付费前可以先用免费额度试用。
批量查询与 CSV
queries 每次调用只接受一个值。对于列表,循环并行调用(没有速率限制),然后把每一行展平为一行 CSV。
import csv, requests from concurrent.futures import ThreadPoolExecutor values = ["laptop"] # your list def fetch(value): r = requests.get( "https://api.scrapier.io/api/v2/amazon-seller-scraper/", headers={"X-API-Key": "YOUR_API_KEY"}, params={"queries": value}, timeout=210, ) r.raise_for_status() out = r.json()["data"]["products"] return out if isinstance(out, list) else [out] # no rate limits: use as many workers as you need with ThreadPoolExecutor(max_workers=3) as pool: rows = [row for part in pool.map(fetch, values) for row in part] cols = ["name", "business_name", "address", "url", "id", "input_url"] with open("out.csv", "w", newline="") as f: w = csv.DictWriter(f, fieldnames=cols, extrasaction="ignore") w.writeheader() w.writerows(rows)
从 Amazon 卖家爬虫 API 导出 CSV
name,business_name,address,url,id,input_url Sweetwater Sound,Sweetwater Sound LLC,5501 US HIGHWAY 30 W, FORT WAYNE, IN, 46818-8998, US,https://www.amazon.com/dp/B0BTQ3HXRS,420058c4-e29c-464e-981c-b5f6d17d6699,B0BTQ3HXRS
通过 MCP 供 AI 智能体访问
Amazon 卖家爬虫 API 的 MCP
AI 智能体可通过 https://mcp.scrapier.io/mcp 的 Scrapier MCP 服务器使用同一个端点。一条命令即可在 Claude Code 中注册:claude mcp add -t http scrapier https://mcp.scrapier.io/mcp --header "X-API-Key: YOUR_API_KEY"。智能体用 search_endpoints 找到该端点,再用 run_scrape 和端点 ID amazon-seller-scraper 调用。它接受同样的 queries 输入,每页卖家同样消耗 30 积分。各客户端的设置见 Amazon 卖家爬虫 MCP 页面。
按角色划分的集成路径
n8n 和 Make
- 添加一个 HTTP Request 步骤
- 带上你的
X-API-Key请求头,对该端点发送 GET - 把
data.products字段映射到你的列
循环并翻页
CSV 和展平的 JSON
把每一行展平为一行 CSV,每个字段一列,可直接用于 Sheets、Excel 或 BI 工具。
法律与合规说明
在许多国家,抓取公开可访问的网页通常是合法的,但具体取决于你收集什么、身在何处以及如何使用。在美国,hiQ Labs v. LinkedIn 是公开数据抓取方面最常被引用的案例。Scrapier 只返回任何访客无需登录即可看到的数据。卖家记录可能包含企业名称和地址,当卖家是个体经营者时,这些可能属于个人数据,因此请只收集你需要的内容。根据 GDPR 及类似法律,收集公开数据可能是允许的,但你存储和使用个人数据的方式仍须遵守当地的数据保护规定,同时适用 Amazon 的条款。如果你的使用场景涉及批量存储个人数据,请咨询法律顾问。这不构成法律意见;请参阅我们的使用条款。
常见问题
有 Amazon 卖家页 API 吗?
有。Scrapier 的 Amazon 卖家爬虫 API 只需一个 GET 请求和 X-API-Key 请求头,即可以 JSON 返回任何公开的卖家页。无需 Amazon 应用或登录。
如何从 Python 调用?
对 <code>https://api.scrapier.io/api/v2/amazon-seller-scraper/</code> 使用 <code>requests.get</code>,设置 <code>params={'queries': 'laptop'}</code> 和 <code>headers={"X-API-Key": KEY}</code>。读取 <code>r.json()["data"]["products"]</code>。
调用失败时会怎样?
任何非 200 响应都免费。对 429 和 5xx 请退避重试;API 已经会重试上游故障。
多少钱?
每次成功调用 30 积分,在 Pro 套餐上每 1,000 页卖家约 $4.74。失败的调用免费。
有 OpenAPI 规范吗?
有。获取它无需密钥,并且涵盖每个 Scrapier 端点。