针对速卖通商品原始数据API的获取与应用,结合官方接口规范及跨境电商实战需求,以下从接口选择、原始数据解析、调用实战、场景应用四个维度提供专业解决方案:
一、核心API接口:aliexpress.item_get_app(原始数据模式)
1. 接口特性
请求参数:num_iid=1005005586923234
参数说明:num_iid:aliexpress商品ID
2. 关键参数(开启原始数据模式)
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/aliexpress/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=1005005586923234"
二、原始数据解析:5大核心字段实战应用
{
"item": {
"api": "mtop.aliexpress.pdp.pc.query",
"data": {
"result": {
"AFTER_SALE_SERVICE_BLOCK": {
"bgColor": "#FFFCE9",
"icon": "https://ae01.alicdn.com/kf/S8599f98d6ced4ae7ba2ab68ed3077e3aU/64x64.png",
"params": {
"extParams": "{33:{\"promiseIds\":\"33\",\"platformType\":\"DESKTOP\",\"extendPlatform\":\"PC\",\"type\":\"delivery\",\"userId\":9999,\"countryTo\":\"US\",\"scene\":\"detail\",\"mode\":\"passive\",\"contentShowType\":\"dynamic\",\"deliveryDays\":30,\"sceneType\":\"ONLY_CHOICE\",\"displayVersion\":\"fourPoint\",\"moneyFormat\":\"$1.00\",\"currency\":\"USD\",\"time\":\"0\",\"status\":\"0\",\"sellerRegion\":\"CN\",\"shipTo\":\"US\"},36:{\"sceneType\":\"ONLY_CHOICE\",\"promiseIds\":\"36\",\"platformType\":\"DESKTOP\",\"currency\":\"USD\",\"extendPlatform\":\"PC\",\"userId\":9999,\"countryTo\":\"US\",\"sellerRegion\":\"CN\",\"status\":\"0\",\"shipTo\":\"US\",\"scene\":\"detail\"},38:{\"sceneType\":\"ONLY_CHOICE\",\"promiseIds\":\"38\",\"platformType\":\"DESKTOP\",\"currency\":\"USD\",\"extendPlatform\":\"PC\",\"userId\":9999,\"countryTo\":\"US\",\"sellerRegion\":\"CN\",\"status\":\"0\",\"shipTo\":\"US\",\"scene\":\"detail\"},27:{\"freeReturnsDisplayDays\":\"withDays\",\"displayNode\":\"after_delivery\",\"promiseIds\":\"27\",\"platformType\":\"DESKTOP\",\"extendPlatform\":\"PC\",\"userId\":9999,\"countryTo\":\"US\",\"scene\":\"detail\",\"sceneType\":\"ONLY_CHOICE\",\"currency\":\"USD\",\"displayDays\":15,\"sellerRegion\":\"CN\",\"status\":\"0\",\"shipTo\":\"US\"}}",
"promiseIds": "27",
"scene": "popup",
"sceneType": "ONLY_CHOICE"
},
"popupTitle": "Free returns within 15 days",
"promiseId": "27",
"shortTitle": "Free returns",
"title": "Free returns within 15 days",
"titleBold": "true",
"titleColor": "#000000"
},
"ASSURANCE_PC": {
"actionTarget": "https://www.aliexpress.com/gcp/300000544/E5H88mmhaA?disableNav=YES&pha_manifest=ssr&_immersiveMode=true",
"details": [
{
"content": "Payment methods used by many international shoppers",
"icon": "https://ae01.alicdn.com/kf/S7d02a1d58ccb4a26bf3f43c6a2a3ea32I/48x48.png",
"title": "Safe payments "
},
{
"content": "We respect your privacy so your personal details are safe",
"icon": "https://ae01.alicdn.com/kf/S4eec0d6cd26d433f824cc50635b8aa8f0/48x48.png",
"title": "Security & privacy"
},
三、调用实战:从权限申请到数据落地
1. Python调用示例(含签名算法)
2. 数据落地优化
缓存策略:对num_iid+timestamp做哈希缓存,重复请求降低80%调用量
异常监控:当error_code=1002(频率超限)时,触发「新余IP池」切换(本地VPN节点)
合规存储:敏感字段(如customs_code)加密存储,符合GDPR(速卖通要求)
四、避坑指南:5大常见问题
请求地址: https://api-gw.onebound.cn/aliexpress/item_get
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
通过以上方案,可精准获取速卖通商品原始数据,实现从选品、定价到合规的全链路数据驱动,尤其适合锂电、光伏等本地优势产业的跨境精细化运营。