淘宝商品详情描述API接口(taobao.item_get_desc)

淘宝商品描述API接口是淘宝开放平台提供的一个接口,用于获取某个商品的详细描述信息。

使用该接口,可以通过商品ID或商品链接获取商品的详细描述信息,包括商品的标题、图片、价格、销量、评价等。同时,还可以获取商品的规格参数、SKU信息、运费模板等。

Taobao.item_get_desc-获取淘宝商品详情描述API接口

接口请求的URL为:o0b.cn/opandy 

请求参数包括:商品ID或商品链接:可以使用淘宝商品ID或商品链接作为请求参数。

请求示例(复制Taobaoapi2014获取APISDK文件):

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "api-gw.xxx.cn/taobao/item_get_desc/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866"
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

接口返回的数据包括:

  • 商品的详细描述信息:包括商品的标题、图片、价格、销量、评价等。
  • 商品的规格参数:包括商品的规格参数、SKU信息、运费模板等。

接口返回结果:

{
 		"item": {
		"desc": "\n  \n   \n  \n   \n  

 

\n

 

\n

 

\n

 

\n

 

\n

 

\n

 

\n

 

\n

\n

\n

\n

 

\n

  \n

 

\n

 

\n \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" }

使用淘宝商品描述API接口,可以方便地获取淘宝商品的详细描述信息,帮助开发者开发淘宝商品相关的应用。

你可能感兴趣的:(python,linux,开发语言,大数据,数据挖掘)