
摘要:跨境电商业务开发过程中,不管是竞品分析、选品调研、ERP 商品同步、多站点刊登,都需要获取亚马逊商品结构化数据。依靠网页手动复制商品信息效率低下,无法实现价格监控、库存跟踪、参数同步等自动化能力。本文从工程实战角度,解析亚马逊商品详情 API,讲解接口能力、核心业务字段、JSON 样例、开发流程以及跨境项目中高频踩坑点。
做亚马逊卖家工具、跨境 ERP、选品系统、比价监控、Temu/Ozon 铺货系统时,经常遇到下面业务痛点:
亚马逊商品详情 API,传入商品ASIN以及站点标识,返回完整商品结构化数据,是跨境技术系统重要的数据来源。
字段 | 说明 |
|---|---|
asin | 商品主 ASIN,业务唯一主键 |
parent_asin | 父 ASIN,变体组父编号,变体商品用于分组 |
title | 商品完整标题 |
brand | 品牌名称 |
main_image | 主图地址 |
images | 全部图片数组 |
price | 当前售卖价格 |
original_price | 原价 / 划线价 |
currency | 货币单位,USD/EUR/JPY 等 |
five_point | 五点描述数组 |
description | 长详情 HTML 文本 |
category_path | 完整类目层级路径 |
params | 商品属性参数集合,材质、尺寸、重量等 |
rating | 商品平均评分 |
review_count | 评论总数量 |
stock_status | 库存状态,FBA 有货 / FBM / 缺货 |
fulfillment_type | 履约类型:FBA / FBM |
variants | 变体数组,每个子变体包含子 asin、规格、价格、库存 |
{
"code": 200,
"msg": "success",
"data": {
"asin": "B08N5K2XYZ",
"parent_asin": "B08N5K2ABC",
"title": "Wireless Bluetooth Headphones Noise Cancelling",
"brand": "SoundMax",
"main_image": "https://m.media-amazon.com/images/I/xxx.jpg",
"images": [
"https://m.media-amazon.com/images/I/xxx.jpg",
"https://m.media-amazon.com/images/I/yyy.jpg"
],
"price": "79.99",
"original_price": "119.99",
"currency": "USD",
"five_point": [
"Active Noise Cancellation",
"30 Hours Playtime",
"Bluetooth 5.3 Connection"
],
"description": "<div>Product full description html content</div>",
"category_path": ["Electronics","Headphones","Over‑Ear Headphones"],
"params": [
{"name":"Color","value":"Black"},
{"name":"Battery Life","value":"30h"}
],
"rating": "4.5",
"review_count": 12680,
"stock_status": "in_stock",
"fulfillment_type": "FBA",
"variants": [
{
"child_asin":"B08N5K2X01",
"spec":"Black",
"price":"79.99",
"stock_status":"in_stock"
},
{
"child_asin":"B08N5K2X02",
"spec":"White",
"price":"79.99",
"stock_status":"out_of_stock"
}
]
}
}import requests
import time
API_KEY = "your_key"
API_SECRET = "your_secret"
API_URL = "https://api-gw.onebound.cn/amazon/item_get"
def fetch_amazon_item(asin, site="us"):
params = {
"key": API_KEY,
"secret": API_SECRET,
"asin": asin,
"site": site
}
resp = requests.get(API_URL, params=params, timeout=15)
return resp.json()
def sync_amazon_product(asin, site="us"):
res = fetch_amazon_item(asin, site)
if res.get("code") != 200:
print(f"接口请求失败 asin={asin}, msg={res.get('msg')}")
return None
item = res["data"]
print(f"商品标题:{item['title']}")
print(f"售价:{item['price']} {item['currency']}")
print(f"履约方式:{item['fulfillment_type']}")
# 遍历变体
for var in item.get("variants", []):
print(f"子ASIN:{var['child_asin']} spec:{var['spec']} stock:{var['stock_status']}")
# db.save_product(item)
return item
if __name__ == "__main__":
sync_amazon_product("B08N5K2XYZ", site="us")
time.sleep(1.2)亚马逊商品详情 API 是跨境开发很核心的数据来源,开发难点集中在变体处理、多站点单位归一化、接口限流风控。生产环境做好空值兼容、队列限流、快照存储、下架状态判断,就可以稳定支撑 ERP、竞品监控、选品系统等业务。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。