新品:Scrapier MCP 服务器。一条命令即可在 Claude Code 中使用每个抓取器。了解如何使用 →
amGET/api/v2/amazon-product/

Amazon 商品爬虫 API

最后更新: · REST · JSON

简要回答

发送 GET https://proxy.scrapier.io/api/v2/amazon-product/?query=keyboard,并在 X-API-Key 请求头中带上你的密钥。你会以 JSON 拿到这一页商品。每页商品 10 积分;失败的调用免费。

  • 每页商品 10 积分
  • 失败的调用免费
  • 每个密钥 3 个并行请求
复制给 你的 AI 智能体
API

调用 Amazon 商品爬虫 API

在你自己的应用、脚本或智能体中使用 Amazon 商品爬虫 API。你需要一个 Scrapier 账号,以及控制台中的 API 密钥。选择一种语言。

product.py
import requests# Replace YOUR_API_KEY with the key from your Scrapier dashboardAPI_KEY = "YOUR_API_KEY"params = {    "query": "keyboard",    "location_name": "United States",    "set_delivery_location": "true",    "depth": "100",    "max_crawl_pages": "7",}r = requests.get(    "https://proxy.scrapier.io/api/v2/amazon-product/",    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)

Python 版 Amazon 商品爬虫 API

只需普通的 requests,无需 SDK。每个响应都是类型化 JSON。

安装

$ pip install requests

其他调用方式

试用区

Amazon 商品爬虫 API 交互式试用

编辑请求,观察代码更新,然后运行。没有密钥时它显示目录示例,不计费。使用你的密钥时,它会从浏览器发出真实调用;密钥只会发送到 proxy.scrapier.io,从不存储。

没有密钥?运行目录示例。
就绪延迟 —已计费积分:0
请求已就绪GET /api/v2/amazon-product/?query=keyboard

点击运行请求发送。没有密钥时你得到的是目录示例。

正在发送请求…
错误

失败的调用不计费。

导入到 PostmanOpenAPI 规范

无论输入什么,示例都相同:它展示的是响应结构,而不是你输入的账户。

示例响应,目录示例,2026 年11月 9 日
{
  "success": true,
  "data": {
    "url": "https://www.amazon.com/s?k=iphone&language=en_US&page=1",
    "mode": "search",
    "page": 1,
    "page_size": 20,
    "keyword": "iphone",
    "type": "organic",
    "se_domain": "amazon.com",
    "location_code": 2840,
    "location_name": "United States",
    "language_code": "en_US",
    "check_url": "https://www.amazon.com/s?k=iphone&language=en_US&page=1",
    "datetime": "2026-10-01 07:15:36 +00:00",
    "spell": null,
    "item_types": [
      "amazon_serp",
      "amazon_paid",
      "related_searches"
    ],
    "se_results_count": 268,
    "total_pages": 17,
    "categories": null,
    "items_count": 16,
    "tag": null,
    "related_searches": {
      "type": "related_searches",
      "rank_group": 1,
      "rank_absolute": 18,
      "xpath": "/html[1]/body[1]/div[1]/div[1]/div[1]/div[1]/div[1]/span[1]/div[1]/div[24]",
      "items": [
        {
          "type": "related_searches_element",
          "title": "iphone 13",
          "url": "https://www.amazon.com/s?k=iphone+13",
          "image_alt": null,
          "image_url": null
        }
      ]
    },
    "editorial_recommendations": null,
    "top_rated_from_our_brands": null,
    "products": [
      {
        "type": "amazon_serp",
        "rank_group": 1,
        "rank_absolute": 1,
        "position": "left",
        "xpath": "/html[1]/body[1]/div[1]/div[1]/div[1]/div[1]/div[1]/span[1]/div[1]/div[4]",
        "domain": "www.amazon.com",
        "title": "iPhone 14, 128GB, Midnight - Unlocked (Renewed)",
        "url": "https://www.amazon.com/Apple-iPhone-14-128GB-Midnight/dp/B0BN72FYFG/ref=sr_1_1",
        "image_url": "https://m.media-amazon.com/images/I/61WUSYIQdKL._AC_UY218_.jpg",
        "bought_past_month": 7000,
        "price_from": 299.95,
        "price_to": null,
        "currency": "USD",
        "special_offers": null,
        "data_asin": "B0BN72FYFG",
        "rating": {
          "type": "rating_element",
          "position": "left",
          "rating_type": "Max5",
          "value": 4.0,
          "votes_count": 13868,
          "rating_max": 5
        },
        "is_amazon_choice": false,
        "is_best_seller": true,
        "delivery_info": {
          "delivery_message": "FREE delivery Tomorrow, Oct 2",
          "delivery_price": null
        },
        "labels": null,
        "is_sponsored": false,
        "bought_past_month_text": "7K+ bought in past month",
        "best_seller_category": "in Renewed Smartphones",
        "badges": [
          "Best Seller"
        ],
        "unit_price": null,
        "more_buying_choices": {
          "text": "More Buying Choices $273.00 (44+ used & new offers)",
          "price": 273.0,
          "offers_text": "44+ used & new offers"
        },
        "product_details": [
          {
            "key": "Memory",
            "value": "128 GB"
          },
          {
            "key": "Color",
            "value": "Midnight"
          }
        ],
        "asin": "B0BN72FYFG",
        "price": {
          "value": 299.95,
          "currency": "$"
        },
        "list_price": null,
        "brand": "Amazon Renewed",
        "stars": 4.0,
        "reviews_count": 13868,
        "in_stock": true,
        "thumbnail_image": "https://m.media-amazon.com/images/I/61WUSYIQdKL._AC_UY218_.jpg",
        "category_page_data": {
          "page_number": 1,
          "product_position": 1,
          "is_sponsored": false
        },
        "loaded_country_code": "US",
        "details_scraped": false,
        "input_url": "https://www.amazon.com/s?k=iphone&language=en_US&page=1"
      }
    ],
    "next_cursor": "eyJjIjp7Li4ufSwiaCI6ImFiYzEyMyIsIm4iOjE2LCJwIjoyLCJ1IjoiaHR0cHM6Ly93d3cuYW1hem9uLmNvbS9zP2s9aXBob25lIn0"
  }
}
数据

你可以提取的数据

Amazon 商品爬虫读取 Amazon 商品数据,返回每个商品的 ASIN、标题、品牌、价格、星级、评论数、上月购买量、徽章、库存标记和配送信息。下面每个字段都来自目录中的示例响应,以类型化 JSON 呈现。

身份

响应中有 9 个字段。

  • asin
  • data_asin
  • title
  • brand
  • url
  • domain
  • image_url
  • thumbnail_image
  • 另有 +1 个

价格和库存

响应中有 10 个字段。

  • price
  • price_from
  • price_to
  • list_price
  • currency
  • special_offers
  • unit_price
  • in_stock
  • 另外 2 项

评分和需求

响应中有 10 个字段。

  • stars
  • rating
  • reviews_count
  • bought_past_month
  • bought_past_month_text
  • is_best_seller
  • best_seller_category
  • is_amazon_choice
  • 另外 2 项

位置和行上下文

响应中有 10 个字段。

  • type
  • rank_group
  • rank_absolute
  • position
  • xpath
  • is_sponsored
  • category_page_data
  • loaded_country_code
  • 另外 2 项

搜索上下文和翻页

响应中有 24 个字段。

  • success
  • data.url
  • data.mode
  • data.page
  • data.page_size
  • data.keyword
  • data.type
  • data.se_domain
  • 另有 +16 个
结构

响应结构参考

示例响应中的每个字段。字段名每次调用都保持不变。

字段类型示例说明
products.asinstring"B0BN72FYFG"商品的 Amazon ASIN
products.data_asinstring"B0BN72FYFG"页面数据中给出的 ASIN
products.titlestring"iPhone 14, 128GB, Midnight - Unlocked (Rene…"商品标题
products.brandstring"Amazon Renewed"品牌名称
products.urlstring"https://www.amazon.com/Apple-iPhone-14-128G…"商品页链接
products.domainstring"www.amazon.com"该行所属的 Amazon 域名
products.image_urlstring"https://m.media-amazon.com/images/I/61WUSYI…"商品图片链接
products.thumbnail_imagestring"https://m.media-amazon.com/images/I/61WUSYI…"缩略图 URL
products.product_detailsarray2 items键值对列表,例如 Memory 和 128 GB
products.priceobject{…}包含 value 和货币符号的对象
products.price_fromnumber299.95以数字表示的价格
products.price_tonullnull价格区间的上限;没有时为 null
products.list_pricenullnull折扣前的标价;没有时为 null
products.currencystring"USD"货币代码,例如 USD
products.special_offersnullnull特别优惠;没有时为 null
products.unit_pricenullnull单价;没有时为 null
products.in_stockbooleantrue商品有货时为 true
products.more_buying_choicesobject{…}包含其他报价的 text、price 和 offers_text 的对象
products.delivery_infoobject{…}包含 delivery_message 和 delivery_price 的对象
products.starsnumber4.0平均星级评分
products.ratingobject{…}包含 value、votes_count 和 rating_max 的评分对象
products.reviews_countinteger13868评分数量
products.bought_past_monthinteger7000上月购买数量,以数字表示;未显示时为 null
products.bought_past_month_textstring"7K+ bought in past month"与 Amazon 措辞一致的同一数据,例如 7K+ bought in past month
products.is_best_sellerbooleantrue商品带有 Best Seller 徽章时为 true
products.best_seller_categorystring"in Renewed Smartphones"Best Seller 徽章所属的类目
products.is_amazon_choicebooleanfalse带有 Amazon's Choice 徽章时为 true
products.badgesarray1 items徽章列表,例如 Best Seller
products.labelsnullnull商品上的标签;没有时为 null
products.typestring"amazon_serp"结果类型,例如 amazon_serp
products.rank_groupinteger1在结果组内的排名
products.rank_absoluteinteger1在页面上的绝对排名
products.positionstring"left"条目位于页面的哪一侧,例如 left
products.xpathstring"/html[1]/body[1]/div[1]/div[1]/div[1]/div[1…"条目在页面上的 XPath
products.is_sponsoredbooleanfalse赞助结果时为 true
products.category_page_dataobject{…}包含 page_number、product_position 和 is_sponsored 的对象
products.loaded_country_codestring"US"所加载站点的国家代码
products.details_scrapedbooleanfalse来自爬虫的标记;目录示例中为 false
products.input_urlstring"https://www.amazon.com/s?k=iphone&language=…"读取该行所用的链接
successbooleantrue每个 200 响应都为 true
data.urlstring"https://www.amazon.com/s?k=iphone&language=…"读取该页所用的链接
data.modestring"search"调用模式,目录示例中为 search
data.pageinteger1本次响应的页码
data.page_sizeinteger20每页商品数
data.keywordstring"iphone"搜索的关键词
data.typestring"organic"结果类型,目录示例中为 organic
data.se_domainstring"amazon.com"使用的 Amazon 域名
data.location_codeinteger2840数字地点代码
data.location_namestring"United States"使用的站点地点
data.language_codestring"en_US"店铺语言代码
data.check_urlstring"https://www.amazon.com/s?k=iphone&language=…"用于在 Amazon 上核对搜索的链接
data.datetimestring"2026-10-01 07:15:36 +00:00"抓取的日期和时间
data.spellnullnull拼写纠正;没有时为 null
data.item_typesarray3 items找到的条目类型,例如 amazon_serp
data.se_results_countinteger268Amazon 为该搜索报告的结果总数
data.total_pagesinteger17结果总页数
data.categoriesnullnull搜索的类目;没有时为 null
data.items_countinteger16本次响应中的条目
data.tagnullnull你自己的标识符,原样返回;没有时为 null
data.related_searchesobject{…}相关搜索区块及其条目
data.editorial_recommendationsnullnull编辑推荐;没有时为 null
data.top_rated_from_our_brandsnullnullTop rated from our brands 区块;没有时为 null
data.next_cursorstring"eyJjIjp7Li4ufSwiaCI6ImFiYzEyMyIsIm4iOjE2LCJ…"作为 cursor 传回即可获取下一页;最后一页为 null
参数

请求参数参考

名称类型必填默认值说明示例
querystring否keyboard搜索关键词;url 为空时用它构建站点搜索链接。首次调用必填,除非提供了 url。别名:queries、keywords、keyword、qkeyboard
urlstring否—Amazon 搜索或类目链接,或商品 /dp/ 链接。优先于 query。商品链接只返回一个结果,游标为 null。别名:urls—
cursorstring否—原样传回上一个响应的 data.next_cursor,即可获取下一页;null 表示最后一页—
location_namestring否United States站点和配送地点,默认 United States。决定 Amazon 域名、货币和配送邮编。可选项包括 United States、United Kingdom、Germany、France、Canada、India、Japan、Italy、Spain 等。别名:location、location_code、countryUnited States
language_namestring否—店铺语言,可用名称如 English (United States) 或代码如 en_US。默认:站点语言。别名:language、language_code—
se_domainstring否—覆盖 Amazon 域名,例如 amazon.co.uk 或 amazon.de。默认:根据 location_name 选择—
zip_codestring否—覆盖配送邮编。默认:站点所在国首都,例如美国为 10001。别名:postal_code、zip—
set_delivery_locationboolean否true抓取前把会话的配送地点固定为 zip_code,默认 true。false 使用 Amazon 根据代理 IP 推断的地点,国外 IP 可能拿不到价格true
price_mininteger否—商品最低价,使用站点货币—
price_maxinteger否—商品最高价,使用站点货币—
sort_bystring否—结果顺序。默认:Amazon 的精选顺序。可选:relevance、featured、price_low_to_high、price_high_to_low、avg_customer_review、newest_arrival、best_sellers—
departmentstring否—Amazon 类别,如 Electronics、Books 或 Home & Kitchen,或原始搜索别名如 electronics—
search_paramstring否—额外的 Amazon 搜索链接参数,例如 &rh=p_72:1248882011。设置了 price_min、price_max 或 sort_by 时会被忽略—
tagstring否—你自己的标识符,最多 255 个字符,在每条结果中原样返回—
depthinteger否100所有页面上最多返回的商品数,含自然和赞助结果,默认 100,最大 700。锁定在游标中。别名:max_items100
max_crawl_pagesinteger否7最多遍历的搜索结果页数,默认 7;该页之后 next_cursor 为 null。锁定在游标中。别名:max_pages7
use_proxyboolean否true通过 Scrapier 的住宅代理池路由,默认开启。保持原样即可true
raw_databoolean否false在 raw_responses 下返回 Amazon 的原始上游数据,而不是格式化后的条目true

每次调用一个关键词或链接:要读取十个商品或搜索,就调用十次,并用 cursor 逐页获取每次搜索。布尔值是字符串 true 或 false。

Amazon 商品爬虫 API 的分页

Amazon 商品爬虫 API 分页返回结果。把 data.next_cursor 作为 cursor 传回即可获取下一页;当它为 null 时就没有更多了。每次成功调用,无论是第一页还是后续页,都是 10 积分。

访问

无需登录 Amazon 即可访问

Amazon 商品爬虫 API 不需要 Amazon 账号、登录或会话 cookie。你在 X-API-Key 请求头中发送 Scrapier 密钥,就能拿到 JSON。它只读取公开数据:任何访客无需登录就能看到的内容。

性能

速度、成本和并发

指标数值来源
成功调用的成本10 积分Scrapier 目录
失败调用的成本0 积分任何非 2xx 响应
每个密钥的并行请求数3超过后:429 和 Retry-After
建议的客户端超时210 秒Scrapier 文档,适用于每个端点

Amazon 商品爬虫 API 的延迟

Scrapier 不公布该端点的延迟或成功率数据。每次调用都在调用时读取 Amazon,所以响应时间取决于 Amazon 和结果的大小。请按文档对每个端点的建议,把客户端超时设为 210 秒。

限制

端点的限制

Amazon 商品爬虫 API 的真实限制。

  • 仅限公开数据。
  • 失败的调用,例如缺失或不可用的商品页,会返回非 2xx 状态码,且 0 积分。
  • 数据在调用时实时读取。
  • 每个密钥 3 个并行请求;超过后 API 会返回 429 和 Retry-After。
  • 较大的结果分页返回;把 data.next_cursor 作为 cursor 传回。
  • Amazon 没有显示的字段不会返回。
对比

Scrapier 与官方 Amazon API 对比

如果你需要完全定制的爬虫,或已经运行自己的抓取技术栈,自建能提供更多控制;Scrapier 适合想用一个密钥、一种 JSON 结构覆盖多个平台的团队。

功能Scrapier Amazon 商品爬虫自建 Amazon 抓取
所需权限一个 Scrapier API 密钥你自己的代理、解析器和服务器
哪些数据搜索结果或单个商品页,使用你选择的站点你的解析器提取到什么就是什么
返回的字段每个商品 39 个字段:ASIN、价格、星级、评论、徽章和配送信息你构建并维护什么就是什么
设置注册,复制密钥,发送请求编写选择器,处理封锁和重试
成本每次调用 10 积分,每 1,000 次调用低至 $1.20代理、服务器和工程时间
错误

错误与重试处理

状态含义是否计费解决办法
200商品页数据在 data.products 中返回是—
400输入有误或缺失否检查 query:每次调用一个值
401缺少 X-API-Key 请求头否添加该请求头
402积分用完(响应体含 balance)否充值;重试无济于事
403API 密钥无效或已撤销否在控制台中检查密钥
429被限流否等待 Retry-After 秒后重试
5xx上游故障或超时否退避重试;把客户端超时设为 210 s

来自错误参考。任何非 2xx 响应消耗 0 积分。

Amazon 商品爬虫 API 的重试逻辑

retry.py
import time, requests

def get_product(value, key, tries=5):
    for attempt in range(tries):
        r = requests.get(
            "https://proxy.scrapier.io/api/v2/amazon-product/",
            headers={"X-API-Key": key},
            params={"query": 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$2915,000$1.93
Pro$7950,000$1.58
Scale$299250,000$1.20

查看所有套餐 →

Amazon 商品爬虫 API 的计费规则

Amazon 商品爬虫 API 对每页成功返回的商品收取 10 积分。失败的调用,即任何非 2xx 状态,收取 0 积分。所有套餐每个密钥都允许 3 个并行请求。免费额度可让你付费前先试用。

批量

批量查询与 CSV

query 每次调用只接受一个值。处理列表时循环调用,每个密钥最多并行 3 个请求,然后把每一行展平成一行 CSV。

bulk.py
import csv, requests
from concurrent.futures import ThreadPoolExecutor

values = ["keyboard"]  # your list

def fetch(value):
    r = requests.get(
        "https://proxy.scrapier.io/api/v2/amazon-product/",
        headers={"X-API-Key": "YOUR_API_KEY"},
        params={"query": value},
        timeout=210,
    )
    r.raise_for_status()
    out = r.json()["data"]["products"]
    return out if isinstance(out, list) else [out]

# 3 parallel requests per key is the limit
with ThreadPoolExecutor(max_workers=3) as pool:
    rows = [row for part in pool.map(fetch, values) for row in part]

cols = ["asin", "title", "brand", "stars", "reviews_count", "bought_past_month"]
with open("out.csv", "w", newline="") as f:
    w = csv.DictWriter(f, fieldnames=cols, extrasaction="ignore")
    w.writeheader()
    w.writerows(rows)

从 Amazon 商品爬虫 API 导出 CSV

out.csv目录示例 · 1 行
asin,title,brand,stars,reviews_count,bought_past_month
B0BN72FYFG,iPhone 14, 128GB, Midnight - Unlocked (Renewed),Amazon Renewed,4.0,13868,7000
智能体

通过 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-product 调用。它接受相同的 query 输入,每页商品同样 10 积分。各客户端的设置见 Amazon 商品爬虫 MCP 页面。

集成

按角色划分的集成路径

无代码

n8n 和 Make

  1. 添加一个 HTTP Request 步骤
  2. 带上你的 X-API-Key 请求头,对该端点发送 GET
  3. 把 data.products 字段映射到你的列
开发者

循环并翻页

for value in values: rows += get(value) while cur := page["data"]["next_cursor"]: page = get(cursor=cur)
AI 智能体

智能体中的 MCP 工具

在 Claude、Cursor 或 Windsurf 中,用端点 amazon-product 调用 run_scrape。设置见 MCP 页面。

分析师

CSV 和展平的 JSON

把每一行展平为一行 CSV,每个字段一列,可直接用于 Sheets、Excel 或 BI 工具。

常见问题

常见问题

有 Amazon 商品页 API 吗?

有。Scrapier 的 Amazon 商品爬虫 API 只需一个 GET 请求和 X-API-Key 请求头,就能以 JSON 返回任何公开的商品页。无需 Amazon 应用或登录。

如何从 Python 调用?

对 <code>https://proxy.scrapier.io/api/v2/amazon-product/</code> 使用 <code>requests.get</code>,带上 <code>params={'query': 'keyboard'}</code> 和 <code>headers={"X-API-Key": KEY}</code>。读取 <code>r.json()["data"]["products"]</code>。

调用失败时会怎样?

任何非 200 响应都免费。对 429 和 5xx 请退避重试;API 已经会重试上游故障。

多少钱?

每次成功调用 10 积分,在 Pro 套餐下每 1,000 页商品约 $1.58。失败的调用免费。

有 OpenAPI 规范吗?

有。获取它无需密钥,并且涵盖每个 Scrapier 端点。

一次请求,以类型化 JSON 获取 Amazon 公开商品页

每页商品 10 积分 · 失败调用免费