当前位置:网站首页>Get wechat product details API
Get wechat product details API
2022-07-27 20:17:00 【Cat sharing dry goods】
One 、 Parameters
Common parameters
Request address : https://api-gw.onebound.cn/micro/item_get
| name | type | must | describe |
|---|---|---|---|
| key | String | yes | call key( Must be GET Way of splicing in URL in ) |
| secret | String | yes | Call key |
| api_name | String | yes | API The name of the interface ( Included in the request address )[item_search,item_get,item_search_shop etc. ] |
| cache | String | no | [yes,no] Default yes, The cached data... Will be called , It's quite fast |
| result_type | String | no | [json,jsonu,xml,serialize,var_export] Return data format , The default is json,jsonu The output content can be read directly in Chinese |
| lang | String | no | [cn,en,ru] Translation language , Default cn Simplified Chinese |
| version | String | no | API edition |
Request parameters
Request parameters :num_iid=2749499386
Parameter description :num_iid: Wechat products ID
Response parameter
Version: Date:
| name | type | must | Example value | describe |
|---|---|---|---|---|
num_iid | Bigint | 0 | 2749499386 | baby ID |
title | String | 0 | Swarovski SWAROVSKI LIFELONG BOW Tassel bow romantic and charming women's necklace jewelry gift 5447082 | Baby title |
desc_short | String | 0 | Swarovski SWAROVSKI LIFELONG BOW Tassel bow romantic and charming women's necklace jewelry gift 5447082 | Product introduction |
price | Float | 0 | 45 | Price |
total_price | Float | 0 | 0 | |
suggestive_price | Float | 0 | 0 | |
orginal_price | String | 0 | 45 | The original price |
nick | String | 0 | Daveny jewelry | Shopkeeper's nickname |
num | Int | 0 | stock | |
min_num | Int | 0 | 0 | Minimum number of purchases |
detail_url | String | 0 | https://weidian.com/item.html?itemID=2749499386 | Baby link |
pic_url | String | 0 | https://si.geilicdn.com/pcitem1288244399-3b300000016a3fd26d6f0a217216_800_800.jpg | Baby pictures |
brand | String | 0 | The brand name | |
brandId | Int | 0 | brand ID | |
rootCatId | Int | 0 | Top class ID | |
cid | Int | 0 | ||
crumbs | Mix | 0 | [] | Navigation menu |
created_time | String | 0 | ||
modified_time | String | 0 | ||
delist_time | String | 0 | ||
desc | String | 0 | Goods details | |
desc_img | Mix | 0 | [https://si.geilicdn.com/pcitem1288244399-23910000016a40086f230a217216_790_420.jpg] | Product details picture |
item_imgs | Mix | 0 | [{ "url": "https://si.geilicdn.com/pcitem1288244399-3b300000016a3fd26d6f0a217216_800_800.jpg"} | Commodity images |
item_weight | String | 0 | ||
item_size | String | 0 | ||
location | String | 0 | Place of shipment | |
express_fee | Float | 0 | 0.00 | Express fee |
ems_fee | Float | 0 | EMS cost | |
post_fee | Float | 0 | Logistics expenses | |
shipping_to | String | 0 | Ship to | |
has_discount | Boolean | 0 | false | Is there a discount |
video | Mix | 0 | ] | Product video |
is_virtual | String | 0 | ||
sample_id | String | 0 | Product style logo ID | |
is_promotion | Boolean | 0 | false | Promotion |
props_name | String | 0 | 0:561195188: The necklace : Tassel Bow Necklace ; | Commodity attribute name |
prop_imgs | Mix | 0 | {"prop_img": [ {"properties": "1627207:1347647754", "url": "//gd2.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg"}]} | List of product attribute pictures |
property_alias | String | 0 | 20509:9974422:36;1627207:28326: Red ;20509:9975710:38;1627207:28326: Red ;20509:9981357:40;1627207:28326: Red | Product attribute alias |
props | Mix | 0 | [{ "name": " Place of Origin ","value": " China " }] | Commodity properties |
total_sold | Int | 0 | ||
skus | Mix | 0 | {"sku": [{"price": "39", "orginal_price": "39.00", "properties": "0:561195188;", "properties_name": "0:561195188: The necklace : Tassel Bow Necklace ;", "quantity": "305", "sku_id": "10668572309"}] | Product specification information list |
seller_id | Int | 0 | The seller ID | |
sales | Int | 0 | 138 | sales |
shop_id | Int | 0 | 1288244399 | The store ID |
props_list | Mix | 0 | {"0:561195188": " The necklace : Tassel Bow Necklace "} | Commodity properties |
seller_info | Mix | 0 | { "title": " Daveny jewelry ", "shop_name":" Daveny jewelry ", "zhuy": "https://weidian.com/?userid=1288244399","level": 3, "shop_type": 3, "user_num_id": "1288244399", "nick": " Daveny jewelry " } | Seller information |
tmall | Boolean | 0 | false | Whether tmall |
error | String | 0 | error message | |
warning | String | 0 | Warning message | |
url_log | Mix | 0 | [] | |
favcount | Int | 0 | 0 | |
fanscount | Int | 0 | 0 | |
method | String | 0 | item_tmall:pget_item | |
promo_type | String | 0 | ||
props_img | Mix | 0 | 1627207:28326": "//img.alicdn.com/imgextra/i2/2844096782/O1CN01VrjpXt1zyCc9DvERE_!!2844096782.jpg | Attribute image |
shop_item | Mix | 0 | [] | |
relate_items | Mix | 0 | [] |
Two 、 Example
Request example
-- Request example url The default request parameters have been URL Encoding processing curl -i "https://api-gw.onebound.cn/micro/item_get/?key=< Your own apiKey>&secret=< Your own apiSecret>&num_iid=2749499386"
Response example
{
"item": {
"num_iid": "2749499386",
"title": "Swarovski SWAROVSKI LIFELONG BOW Tassel bow romantic and charming women's necklace jewelry gift 5447082",
"desc_short": "Swarovski SWAROVSKI LIFELONG BOW Tassel bow romantic and charming women's necklace jewelry gift 5447082",
"price": 45,
"total_price": 0,
"suggestive_price": 0,
"orginal_price": "45",
"nick": " Daveny jewelry ",
"num": "",
"min_num": 0,
"detail_url": "https://weidian.com/item.html?itemID=2749499386",
"pic_url": "https://si.geilicdn.com/pcitem1288244399-3b300000016a3fd26d6f0a217216_800_800.jpg",
"brand": "",
"brandId": "",
"rootCatId": "",
"cid": "",
"favcount": "",
"fanscount": "",
"crumbs": [],
"created_time": "",
"modified_time": "",
"delist_time": "",
"desc": "<img src=\"https://si.geilicdn.com/pcitem1288244399-23910000016a40086f230a217216_790_420.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-25490000016a40086f650a217252_790_402.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-064c0000016a400870600a21924b_790_503.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-61250000016a400870900a219248_790_308.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-0e370000016a400871960a21924a_790_600.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-25730000016a400874400a217252_790_600.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-61470000016a400874790a219248_790_600.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-26c00000016a400875df0a217205_790_600.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-34850000016a400876a90a20b7b9_790_834.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-23c00000016a4008754e0a217216_790_379.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-06800000016a400876500a21924b_790_524.jpg\"/><img src=\"https://si.geilicdn.com/pcitem1288244399-25840000016a400875e90a217252_790_427.jpg\"/>",
"desc_img": [
"https://si.geilicdn.com/pcitem1288244399-23910000016a40086f230a217216_790_420.jpg",
"https://si.geilicdn.com/pcitem1288244399-25490000016a40086f650a217252_790_402.jpg",
"https://si.geilicdn.com/pcitem1288244399-064c0000016a400870600a21924b_790_503.jpg",
"https://si.geilicdn.com/pcitem1288244399-61250000016a400870900a219248_790_308.jpg",
"https://si.geilicdn.com/pcitem1288244399-0e370000016a400871960a21924a_790_600.jpg",
"https://si.geilicdn.com/pcitem1288244399-25730000016a400874400a217252_790_600.jpg",
"https://si.geilicdn.com/pcitem1288244399-61470000016a400874790a219248_790_600.jpg",
"https://si.geilicdn.com/pcitem1288244399-26c00000016a400875df0a217205_790_600.jpg",
"https://si.geilicdn.com/pcitem1288244399-34850000016a400876a90a20b7b9_790_834.jpg",
"https://si.geilicdn.com/pcitem1288244399-23c00000016a4008754e0a217216_790_379.jpg",
"https://si.geilicdn.com/pcitem1288244399-06800000016a400876500a21924b_790_524.jpg",
"https://si.geilicdn.com/pcitem1288244399-25840000016a400875e90a217252_790_427.jpg"
],
"item_imgs": [
{
"url": "https://si.geilicdn.com/pcitem1288244399-3b300000016a3fd26d6f0a217216_800_800.jpg"
}
],
"item_weight": "",
"item_size": "",
"location": "",
"post_fee": "",
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"has_discount": "",
"video": [],
"is_virtual": "",
"sample_id": "",
"is_promotion": "false",
"props_name": "0:561195188: The necklace : Tassel Bow Necklace ;",
"prop_imgs": {
"prop_img": []
},
"property_alias": "",
"props": [],
"total_sold": "0",
"skus": {
"sku": [
{
"price": "45.00",
"orginal_price": "45.00",
"properties": "0:561195188;",
"properties_name": "0:561195188: The necklace : Tassel Bow Necklace ;:",
"quantity": 957,
"sku_id": 10668572309
}
]
},
"seller_id": "",
"sales": 106,
"shop_id": 1288244399,
"props_list": [
{
"0:561195188": " The necklace : Tassel Bow Necklace "
}
],
"seller_info": {
"title": " Daveny jewelry ",
"shop_name": " Daveny jewelry ",
"zhuy": "https://weidian.com/?userid=1288244399",
"level": 3,
"shop_type": 3,
"user_num_id": 1288244399,
"nick": " Daveny jewelry "
},
"tmall": "false",
"error": "",
"warning": "",
"url_log": [],
"stuff_status": "",
"data_from": "micro",
"method": "",
"promo_type": null,
"props_img": null,
"rate_grade": "",
"priceRange": [],
"shop_item": [],
"relate_items": []
},
"secache": "bca4a25047d7b435e098ecb97efd77dd",
"secache_time": 1611128224,
"secache_date": "2021-01-20 15:37:04",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 3.061,
"server_time": "Beijing/2021-01-20 15:37:04",
"client_ip": "115.151.186.91",
"call_args": {
"num_iid": "2749499386",
"area_id": "440111"
},
"api_type": "micro",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "2.75MB",
"request_id": "1.6007dd9d4909b"
}Exception example
{
"error": "item-not-found",
"reason": " Product not found ",
"error_code": "2000",
"success": 0,
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 0.081,
"server_time": "Beijing/2020-06-10 23:44:00",
"call_args": [],
"api_type": "taobao",
"request_id": "15ee0ffc041242"}3、 ... and 、 Error code interpretation
| The status code (error_code) | State information | Detailed description | Do you charge? |
|---|---|---|---|
| 0000 | success | The interface call succeeds and returns relevant data | yes |
| 2000 | Search success but no result | Interface access successful , But the search has no results | yes |
| 4000 | Server internal error | Server internal error | no |
| 4001 | Network error | Network error | no |
| 4002 | Target server error | Target server error | no |
| 4003 | Param error | User input parameter error | Ignore |
| 4004 | Account not found | User account does not exist | Ignore |
| 4005 | Invalid authentication credentials | privilege grant failed | Ignore |
| 4006 | API stopped | Your current API deactivated | Ignore |
| 4007 | Account stopped | Your account has been deactivated | Ignore |
| 4008 | API rate limit exceeded | Concurrency has reached the maximum | Ignore |
| 4009 | API maintenance | API In maintenance | Ignore |
| 4010 | API not found with these values | API non-existent | Ignore |
| 4012 | Please add api first | Please add it first api | Ignore |
| 4013 | Number of calls exceeded | The number of calls exceeds the limit | Ignore |
| 4014 | Missing url param | Missing parameter | Ignore |
| 4015 | Wrong pageToken | Parameters pageToken Mistake | Ignore |
| 4016 | Insufficient balance | Lack of balance | Ignore |
| 4017 | timeout error | request timeout | no |
| 5000 | unknown error | Unknown error | no |
边栏推荐
- 【Map 集合】
- slf4j中如何进行log4j配置呢?
- LeetCode练习2——两数之和
- Explore a new generation of activities to win customers, virtualization activities win a trick | manufacturer solicitation
- 如何快速提升抖音小店三分钟回复率?哪些情况会影响抖音小店回复率呢?
- 连接池-归还连接详解(上)
- PC Museum (3) MITs Altair 8800
- uva1377
- Codeforces Round #810 (Div. 2)B.party(思维题)超详细题解
- PyQt5快速开发与实战 4.3 QLabel and 4.4 文本框类控件
猜你喜欢

Ms721 load test

Codeworks 5 questions per day (average 1500) - day 24

Chapter 3 basic operation

PyQt5快速开发与实战 4.7 QSpinBox(计数器) and 4.8 QSlider(滑动条)

Underlying principle of mvcc

Solve the problem of displaying the scroll bar when there is no data in the viewui table

Can software testing be learned in 2022? Don't learn, software testing positions are saturated

想转行软件测试,先过这三关,包含一份3000字超全测试学习指南

Wu Hequan: digital technology empowering "double carbon" practice according to local conditions

Illustration leetcode - 592. Fraction addition and subtraction (difficulty: medium)
随机推荐
How to quickly improve the three minute response rate of Tiktok store? What will affect the reply rate of Tiktok store?
[paper reading] rich feature hierarchies for accurate object detection and semantic segmentation
MongoDB 学习笔记: BSON 结构分析
分享Redshift渲染器的去噪方法技巧,一定要看看
Redis-基本了解,五大基本数据类型
PMP practice once a day | don't get lost in the exam -7.27 (including agility + multiple choices)
图解LeetCode——592. 分数加减运算(难度:中等)
获得微店商品详情 API
[openbmc series] 4. Start the process and use qume to simulate ast2600 EVB
Online judge output overrun
Huawei's mobile phone shipments exceed Apple's, ranking second in the world, but it faces a large amount of inventory that needs to be cleaned up
Set -- data deconstruction
《安富莱嵌入式周报》第275期:2022.07.18--2022.07.24
2022 love analysis · smart community manufacturer panoramic report manufacturer solicitation
C语言--数组
连接池-归还连接详解(上)
ViewUI 中 DatePicker 日期选择器在 IE11 浏览器中兼容解决方案
Function priority
Pyqt5 rapid development and practice 4.3 qlabel and 4.4 text box controls
Konka sold out its first 100000 storage master chips, with an estimated sales volume of 100million in 2020