淘宝商品描述API并不是淘宝开放平台直接提供的一个单独的API接口。通常,商品描述的信息是包含在商品详情API中的一部分。要获取淘宝商品的描述信息,你需要调用淘宝开放平台提供的商品详情API,并从返回的响应中提取商品描述字段。
以下是一个大致的步骤指南,帮助你通过淘宝开放平台的API获取商品描述信息:
taobao.item_get_desc
公共参数
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| 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版本 |
请求参数:num_iid=520813250866
参数说明:num_iid:淘宝商品ID
Version: Date:
| 名称 | 类型 | 必须 | 示例值 | 描述 |
|---|---|---|---|---|
| item | item[] | 0 | 获得淘宝商品描述 |
- Curl
- PHP
- PHPsdk
- JAVA
- C#
- Python
- Golang
- javascript
- JS-SDK
- Ruby
- Swift
- Objective-C
- C
- C++
- Node.JS
- Kotlin
- Rust
- R
- MATLAB
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/taobao/item_get_desc/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866"
响应示例
{
"item": {
"desc": "\n <img src="http://img.alicdn.com/imgextra/i3/2200639983103/O1CN01B8rO8q1YnDpqtaSHZ_!!2200639983103-1-scmitem6000.gif" usemap="#IUSGU" />\n <map name="IUSGU"><area shape="rect" coords="6,10,786,541" href="https://pages.tmall.com/wow/an/cs/act/wupr?wh_biz=tm&wh_pid=3320144%2F17c73fe7b21&disableNav=YES&brandId=3320144&chaoshi_brand_waitou=true"></area><area shape="rect" coords="9,561,169,731" href="https://pages.tmall.com/wow/ark-pub/common/ee30c50a/tpl?wh_sid=a4a7a974fcf99970&mcBrandCard=true"></area><area shape="rect" coords="211,561,371,721" href="https://pages.tmall.com/wow/ark-pub/common/ee30c50a/tpl?wh_sid=b1f371c6cada937b&mcBrandCard=true"></area><area shape="rect" coords="415,562,575,722" href="https://pages.tmall.com/wow/ark-pub/common/ee30c50a/tpl?wh_sid=8fff1d96108c25a3&mcBrandCard=true"></area><area shape="rect" coords="597,563,757,723" href="https://pages.tmall.com/wow/ark-pub/common/ee30c50a/tpl?wh_sid=a4d5dbb8fee520eb&mcBrandCard=true"></area></map> \n <img src="http://img.alicdn.com/imgextra/i3/2200639983103/O1CN01MdspcQ1YnDpofKaYI_!!2200639983103-1-scmitem6000.gif" usemap="#EMBND" />\n <map name="EMBND"><area shape="rect" coords="3,253,355,792" href="https://chaoshi.detail.tmall.com/item.htm?id=627358747270&skuId=4958439969412"></area></map> \n <p> </p> \n <p> </p> \n <p> </p> \n <p> </p> \n <p> </p> \n <p> </p> \n <p> <img src="http://img.alicdn.com/imgextra/i4/2200639983103/O1CN01K5mRzF1YnDhfbLqYO_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /></p> \n <p> </p> \n <p><map name="GPSIJ"><area shape="rect" coords="194,8,374,148" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=536597702698"></area><area shape="rect" coords="377,10,557,148" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=611943282371"></area><area shape="rect" coords="564,15,742,150" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=613199006000"></area><area shape="rect" coords="197,165,372,299" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=602723508607"></area><area shape="rect" coords="382,170,554,305" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=44107699067"></area><area shape="rect" coords="567,165,739,305" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=44187888589"></area><area shape="rect" coords="197,318,374,455" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=533938505960"></area><area shape="rect" coords="386,318,558,453" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=591828039537"></area><area shape="rect" coords="567,318,741,460" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=566408329269"></area><area shape="rect" coords="196,470,371,606" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=533971548851"></area><area shape="rect" coords="380,473,557,610" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=577183292025"></area><area shape="rect" coords="565,470,740,613" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=573075979265"></area><area shape="rect" coords="197,622,262,676" href=""></area><area shape="rect" coords="199,624,374,758" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=554419816039"></area><area shape="rect" coords="381,620,556,762" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=592956242653"></area><area shape="rect" coords="564,623,739,764" href="https://chaoshi.detail.tmall.com/item.htm?spm=a1z34w.13877023.0.0.626531a5VcC2US&id=604301910718"></area></map> </p> \n <p><a href="https://chaoshi.detail.tmall.com/item.htm?spm=a220o.7406545.0.0.32c7697bmJA9L1&id=590048908797" target="_blank"></a></p> \n <p><img src="http://img.alicdn.com/imgextra/i3/2200639983103/O1CN01UzEW4I1YnDhVdkEFJ_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /></p> \n <p> </p> \n <p><img src="http://img.alicdn.com/imgextra/i3/2200639983103/O1CN016eKqLt1YnDnXbDcWs_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /><img src="http://img.alicdn.com/imgextra/i2/2200639983103/O1CN01GDW3H61YnDnhPYxl7_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /><img align="absmiddle" src="http://img.alicdn.com/imgextra/i2/3596645218/O1CN01seMU6n1oPt9fOvcj4_!!3596645218-0-scmitem6000.jpg" /><img src="http://img.alicdn.com/imgextra/i2/2200639983103/O1CN0162Bmh21YnDnaPMaTM_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /><img align="absmiddle" src="http://img.alicdn.com/imgextra/i3/3596645218/O1CN01f4fzGM1oPt9XJ7Hk2_!!3596645218-0-scmitem6000.jpg" /><img align="absmiddle" src="http://img.alicdn.com/imgextra/i4/3596645218/O1CN01rWjGD61oPt9fgZiT4_!!3596645218-0-scmitem6000.jpg" /><img src="http://img.alicdn.com/imgextra/i2/2200639983103/O1CN01DfHuV61YnDjRoGnAQ_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /><img src="http://img.alicdn.com/imgextra/i3/2200639983103/O1CN01QZgCx01YnDjXm4Y03_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /><img align="absmiddle" src="http://img.alicdn.com/imgextra/i3/2142811280/O1CN01WxEC6x1LKHSoigkL0_!!2142811280-0-scmitem6000.jpg" /><img align="absmiddle" src="http://img.alicdn.com/imgextra/i2/2200639983103/O1CN01CzM2ro1YnDUFRy4lH_!!2200639983103-0-scmitem6000.jpg" /><img src="http://img.alicdn.com/imgextra/i3/2200639983103/O1CN01hy4eW41YnDnoTFBOb_!!2200639983103-0-scmitem6000.jpg" align="absmiddle" /></p> \n <p> </p> \n <p> </p>\n <script src="https://g.alicdn.com/i/popshop/0.0.23/p/seemore/load.js?c"></script> \n ",
"data_from": "app_vip"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:24 max:10000 all[39=24+0+15];expires:2030-12-31",
"execution_time": "0.666",
"server_time": "Beijing/2023-06-21 09:18:44",
"client_ip": "115.153.49.96",
"call_args": [],
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "0.86MB",
"request_id": "gw-4.64924ff43c9b9",
"last_id": "1821985889"
}