Amazon 商品爬虫 API
最后更新: · REST · JSON
发送 GET https://proxy.scrapier.io/api/v2/amazon-product/?query=keyboard,并在 X-API-Key 请求头中带上你的密钥。你会以 JSON 拿到这一页商品。每页商品 10 积分;失败的调用免费。
- 每页商品 10 积分
- 失败的调用免费
- 每个密钥 3 个并行请求
调用 Amazon 商品爬虫 API
在你自己的应用、脚本或智能体中使用 Amazon 商品爬虫 API。你需要一个 Scrapier 账号,以及控制台中的 API 密钥。选择一种语言。
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)
// Replace YOUR_API_KEY with the key from your Scrapier dashboardconst API_KEY = "YOUR_API_KEY";const params = new URLSearchParams({ query: "keyboard", location_name: "United States", set_delivery_location: "true", depth: "100", max_crawl_pages: "7",});const res = await fetch(`https://proxy.scrapier.io/api/v2/amazon-product/?${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-product/?query=keyboard&location_name=United States&set_delivery_location=true&depth=100&max_crawl_pages=7 HTTP/1.1Host: proxy.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://proxy.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:"Search Amazon for keyboard and list the top results with price, stars and review count"run_scrape("amazon-product", {query: "keyboard"})
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 调用。相同的 query,每页商品同样 10 积分。
安装
其他调用方式
Amazon 商品爬虫 API 交互式试用
编辑请求,观察代码更新,然后运行。没有密钥时它显示目录示例,不计费。使用你的密钥时,它会从浏览器发出真实调用;密钥只会发送到 proxy.scrapier.io,从不存储。
GET /api/v2/amazon-product/?query=keyboard点击运行请求发送。没有密钥时你得到的是目录示例。
失败的调用不计费。
无论输入什么,示例都相同:它展示的是响应结构,而不是你输入的账户。
示例响应,目录示例,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.asin | string | "B0BN72FYFG" | 商品的 Amazon ASIN |
products.data_asin | string | "B0BN72FYFG" | 页面数据中给出的 ASIN |
products.title | string | "iPhone 14, 128GB, Midnight - Unlocked (Rene…" | 商品标题 |
products.brand | string | "Amazon Renewed" | 品牌名称 |
products.url | string | "https://www.amazon.com/Apple-iPhone-14-128G…" | 商品页链接 |
products.domain | string | "www.amazon.com" | 该行所属的 Amazon 域名 |
products.image_url | string | "https://m.media-amazon.com/images/I/61WUSYI…" | 商品图片链接 |
products.thumbnail_image | string | "https://m.media-amazon.com/images/I/61WUSYI…" | 缩略图 URL |
products.product_details | array | 2 items | 键值对列表,例如 Memory 和 128 GB |
products.price | object | {…} | 包含 value 和货币符号的对象 |
products.price_from | number | 299.95 | 以数字表示的价格 |
products.price_to | null | null | 价格区间的上限;没有时为 null |
products.list_price | null | null | 折扣前的标价;没有时为 null |
products.currency | string | "USD" | 货币代码,例如 USD |
products.special_offers | null | null | 特别优惠;没有时为 null |
products.unit_price | null | null | 单价;没有时为 null |
products.in_stock | boolean | true | 商品有货时为 true |
products.more_buying_choices | object | {…} | 包含其他报价的 text、price 和 offers_text 的对象 |
products.delivery_info | object | {…} | 包含 delivery_message 和 delivery_price 的对象 |
products.stars | number | 4.0 | 平均星级评分 |
products.rating | object | {…} | 包含 value、votes_count 和 rating_max 的评分对象 |
products.reviews_count | integer | 13868 | 评分数量 |
products.bought_past_month | integer | 7000 | 上月购买数量,以数字表示;未显示时为 null |
products.bought_past_month_text | string | "7K+ bought in past month" | 与 Amazon 措辞一致的同一数据,例如 7K+ bought in past month |
products.is_best_seller | boolean | true | 商品带有 Best Seller 徽章时为 true |
products.best_seller_category | string | "in Renewed Smartphones" | Best Seller 徽章所属的类目 |
products.is_amazon_choice | boolean | false | 带有 Amazon's Choice 徽章时为 true |
products.badges | array | 1 items | 徽章列表,例如 Best Seller |
products.labels | null | null | 商品上的标签;没有时为 null |
products.type | string | "amazon_serp" | 结果类型,例如 amazon_serp |
products.rank_group | integer | 1 | 在结果组内的排名 |
products.rank_absolute | integer | 1 | 在页面上的绝对排名 |
products.position | string | "left" | 条目位于页面的哪一侧,例如 left |
products.xpath | string | "/html[1]/body[1]/div[1]/div[1]/div[1]/div[1…" | 条目在页面上的 XPath |
products.is_sponsored | boolean | false | 赞助结果时为 true |
products.category_page_data | object | {…} | 包含 page_number、product_position 和 is_sponsored 的对象 |
products.loaded_country_code | string | "US" | 所加载站点的国家代码 |
products.details_scraped | boolean | false | 来自爬虫的标记;目录示例中为 false |
products.input_url | string | "https://www.amazon.com/s?k=iphone&language=…" | 读取该行所用的链接 |
success | boolean | true | 每个 200 响应都为 true |
data.url | string | "https://www.amazon.com/s?k=iphone&language=…" | 读取该页所用的链接 |
data.mode | string | "search" | 调用模式,目录示例中为 search |
data.page | integer | 1 | 本次响应的页码 |
data.page_size | integer | 20 | 每页商品数 |
data.keyword | string | "iphone" | 搜索的关键词 |
data.type | string | "organic" | 结果类型,目录示例中为 organic |
data.se_domain | string | "amazon.com" | 使用的 Amazon 域名 |
data.location_code | integer | 2840 | 数字地点代码 |
data.location_name | string | "United States" | 使用的站点地点 |
data.language_code | string | "en_US" | 店铺语言代码 |
data.check_url | string | "https://www.amazon.com/s?k=iphone&language=…" | 用于在 Amazon 上核对搜索的链接 |
data.datetime | string | "2026-10-01 07:15:36 +00:00" | 抓取的日期和时间 |
data.spell | null | null | 拼写纠正;没有时为 null |
data.item_types | array | 3 items | 找到的条目类型,例如 amazon_serp |
data.se_results_count | integer | 268 | Amazon 为该搜索报告的结果总数 |
data.total_pages | integer | 17 | 结果总页数 |
data.categories | null | null | 搜索的类目;没有时为 null |
data.items_count | integer | 16 | 本次响应中的条目 |
data.tag | null | null | 你自己的标识符,原样返回;没有时为 null |
data.related_searches | object | {…} | 相关搜索区块及其条目 |
data.editorial_recommendations | null | null | 编辑推荐;没有时为 null |
data.top_rated_from_our_brands | null | null | Top rated from our brands 区块;没有时为 null |
data.next_cursor | string | "eyJjIjp7Li4ufSwiaCI6ImFiYzEyMyIsIm4iOjE2LCJ…" | 作为 cursor 传回即可获取下一页;最后一页为 null |
请求参数参考
| 名称 | 类型 | 必填 | 默认值 | 说明 | 示例 |
|---|---|---|---|---|---|
query | string | 否 | keyboard | 搜索关键词;url 为空时用它构建站点搜索链接。首次调用必填,除非提供了 url。别名:queries、keywords、keyword、q | keyboard |
url | string | 否 | — | Amazon 搜索或类目链接,或商品 /dp/ 链接。优先于 query。商品链接只返回一个结果,游标为 null。别名:urls | — |
cursor | string | 否 | — | 原样传回上一个响应的 data.next_cursor,即可获取下一页;null 表示最后一页 | — |
location_name | string | 否 | United States | 站点和配送地点,默认 United States。决定 Amazon 域名、货币和配送邮编。可选项包括 United States、United Kingdom、Germany、France、Canada、India、Japan、Italy、Spain 等。别名:location、location_code、country | United States |
language_name | string | 否 | — | 店铺语言,可用名称如 English (United States) 或代码如 en_US。默认:站点语言。别名:language、language_code | — |
se_domain | string | 否 | — | 覆盖 Amazon 域名,例如 amazon.co.uk 或 amazon.de。默认:根据 location_name 选择 | — |
zip_code | string | 否 | — | 覆盖配送邮编。默认:站点所在国首都,例如美国为 10001。别名:postal_code、zip | — |
set_delivery_location | boolean | 否 | true | 抓取前把会话的配送地点固定为 zip_code,默认 true。false 使用 Amazon 根据代理 IP 推断的地点,国外 IP 可能拿不到价格 | true |
price_min | integer | 否 | — | 商品最低价,使用站点货币 | — |
price_max | integer | 否 | — | 商品最高价,使用站点货币 | — |
sort_by | string | 否 | — | 结果顺序。默认:Amazon 的精选顺序。可选:relevance、featured、price_low_to_high、price_high_to_low、avg_customer_review、newest_arrival、best_sellers | — |
department | string | 否 | — | Amazon 类别,如 Electronics、Books 或 Home & Kitchen,或原始搜索别名如 electronics | — |
search_param | string | 否 | — | 额外的 Amazon 搜索链接参数,例如 &rh=p_72:1248882011。设置了 price_min、price_max 或 sort_by 时会被忽略 | — |
tag | string | 否 | — | 你自己的标识符,最多 255 个字符,在每条结果中原样返回 | — |
depth | integer | 否 | 100 | 所有页面上最多返回的商品数,含自然和赞助结果,默认 100,最大 700。锁定在游标中。别名:max_items | 100 |
max_crawl_pages | integer | 否 | 7 | 最多遍历的搜索结果页数,默认 7;该页之后 next_cursor 为 null。锁定在游标中。别名:max_pages | 7 |
use_proxy | boolean | 否 | true | 通过 Scrapier 的住宅代理池路由,默认开启。保持原样即可 | true |
raw_data | boolean | 否 | 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) | 否 | 充值;重试无济于事 |
| 403 | API 密钥无效或已撤销 | 否 | 在控制台中检查密钥 |
| 429 | 被限流 | 否 | 等待 Retry-After 秒后重试 |
| 5xx | 上游故障或超时 | 否 | 退避重试;把客户端超时设为 210 s |
来自错误参考。任何非 2xx 响应消耗 0 积分。
Amazon 商品爬虫 API 的重试逻辑
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 | $29 | 15,000 | $1.93 |
| Pro | $79 | 50,000 | $1.58 |
| Scale | $299 | 250,000 | $1.20 |
Amazon 商品爬虫 API 的计费规则
Amazon 商品爬虫 API 对每页成功返回的商品收取 10 积分。失败的调用,即任何非 2xx 状态,收取 0 积分。所有套餐每个密钥都允许 3 个并行请求。免费额度可让你付费前先试用。
批量查询与 CSV
query 每次调用只接受一个值。处理列表时循环调用,每个密钥最多并行 3 个请求,然后把每一行展平成一行 CSV。
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
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
- 添加一个 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://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 端点。