淘宝API接口(网络爬虫数据)

淘宝API接口(部分)

  • item_get 获得淘宝商品详情
  • item_get_pro 获得淘宝商品详情高级版
  • item_review 获得淘宝商品评论
  • item_fee 获得淘宝商品快递费用
  • item_password 获得淘口令真实url
  • item_list_updown 批量获得淘宝商品上下架时间
  • seller_info 获得淘宝店铺详情
  • item_search 按关键字搜索淘宝商品
  • item_search_tmall 按关键字搜索天猫商品
  • item_search_pro 高级关键字搜索淘宝商品
  • item_search_img 按图搜索淘宝商品(拍立淘)
  • item_search_shop 获得店铺的所有商品
  • item_search_seller 搜索店铺列表
  • item_search_guang 爱逛街

淘宝/天猫获得淘宝商品详情 API 返回值说明

item_get-获得淘宝商品详情

测试地址

淘宝API接口(网络爬虫数据)_第1张图片

请求参数

请求参数:num_iid=642889064441&is_promotion=1

参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价

淘宝API接口(网络爬虫数据)_第2张图片

名称 类型 必须 描述
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版本

数据参数

Request address:
https://api-gw.onebound.cn/taobao/item_get/?key=&
&num_iid=642889064441&is_promotion=1&cache=no&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
	"item": {
		"num_iid": "642889064441",
		"title": "雪纺碎花连衣裙女2022年夏季新款法式收腰显瘦气质中长款仙女裙潮",
		"desc_short": "",
		"price": "178",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "998.00",
		"nick": "栗芷阿",
		"num": "87",
		"min_num": 0,
		"detail_url": "https://item.taobao.com/item.htm?id=642889064441",
		"pic_url": "//img.alicdn.com/imgextra/i2/3842834798/O1CN0168LVYY1lJX0eW9gv6_!!3842834798.jpg",
		"brand": "other/其他",
		"brandId": "29534",
		"rootCatId": "16",
		"cid": "50010850",
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "

", "desc_img": [ "http://img.alicdn.com/imgextra/i3/3842834798/O1CN01VuLpDg1lJWzyIwFkC_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i3/3842834798/O1CN013t7u1A1lJX05HyfmM_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i2/3842834798/O1CN01AtGPJJ1lJWzpewJoS_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01lPiLqS1lJWzuOC3ZB_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01GpGVGH1lJX03B0taG_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i2/3842834798/O1CN01INbR9K1lJX03B2qBR_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01UpsqDH1lJWzyIwSDs_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i1/3842834798/O1CN01MFAlrs1lJX03B2ZZE_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01gArHgP1lJWzzl3K4U_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i2/3842834798/O1CN01eXgpnY1lJWzvWOxnY_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i1/3842834798/O1CN01ej31H71lJX07XWxZr_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i1/3842834798/O1CN01IEpB6h1lJWzyIxzrj_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i3/3842834798/O1CN015zd2u31lJWzyIxSb2_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i1/3842834798/O1CN01wtmfPk1lJWzyIzbcr_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i1/3842834798/O1CN0180uuAs1lJWzwJ2Oce_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i3/3842834798/O1CN01wmTco91lJWzyldn6z_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01xK6Dvr1lJWzyF6fQV_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i3/3842834798/O1CN01qZqHaE1lJX00u2vO5_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i1/3842834798/O1CN0141F0nw1lJWzyIzPAn_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01yOrJDF1lJWzylgLA2_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN013DmRY71lJWzyF9Lmt_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i1/3842834798/O1CN01KH1K5b1lJWzpevqle_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i2/3842834798/O1CN0169nu3r1lJX05Hxrw3_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01rW0aje1lJWzzl1uoB_!!3842834798.jpg", "http://img.alicdn.com/imgextra/i4/3842834798/O1CN01bdoAxu1lJX05I0Hep_!!3842834798.jpg" ], "item_imgs": [ { "url": "//img.alicdn.com/imgextra/i2/3842834798/O1CN0168LVYY1lJX0eW9gv6_!!3842834798.jpg" }, { "url": "//img.alicdn.com/imgextra/i4/3842834798/O1CN01lW2odX1lJX00tytj4_!!3842834798.jpg" }, { "url": "//img.alicdn.com/imgextra/i1/3842834798/O1CN01SLdWRn1lJWzyF3B3d_!!3842834798.jpg" }, { "url": "//img.alicdn.com/imgextra/i1/3842834798/O1CN0197bw831lJWzyIwzJK_!!3842834798.jpg" }, { "url": "//img.alicdn.com/imgextra/i4/3842834798/O1CN01tMeMZY1lJX03rt58B_!!3842834798.jpg" } ], "item_weight": "", "item_size": "", "location": "浙江杭州", "post_fee": 0, "express_fee": null, "ems_fee": "", "shipping_to": "", "has_discount": "true", "video": [], "is_virtual": "", "sample_id": "", "is_promotion": "true", "props_name": "20509:28314:尺码:S;20509:28315:尺码:M;20509:28316:尺码:L;20509:28317:尺码:XL;20509:6145171:尺码:2XL;1627207:130164:颜色分类:花色", "prop_imgs": { "prop_img": [] }, "property_alias": "", "props": [ { "name": "品牌", "value": "other/其他" }, { "name": "尺码", "value": "S,M,L,XL,2XL" }, { "name": "面料", "value": "雪纺" }, { "name": "图案", "value": "花色" }, { "name": "风格", "value": "通勤" }, { "name": "通勤", "value": "韩版" }, { "name": "领型", "value": "V领" }, { "name": "腰型", "value": "高腰" }, { "name": "衣门襟", "value": "套头" }, { "name": "颜色分类", "value": "花色" }, { "name": "袖型", "value": "飞飞袖" }, { "name": "组合形式", "value": "单件" }, { "name": "货号", "value": "202115" }, { "name": "裙型", "value": "A字裙" }, { "name": "适用季节", "value": "夏季" }, { "name": "年份季节", "value": "2022年夏季" }, { "name": "袖长", "value": "短袖" }, { "name": "裙长", "value": "中长裙" }, { "name": "款式", "value": "其他/other" }, { "name": "廓形", "value": "A型" } ], "total_sold": "407", "skus": { "sku": [ { "price": "178", "total_price": 0, "orginal_price": "178", "properties": "20509:28314;1627207:130164", "properties_name": "20509:28314:尺码:S;1627207:130164:颜色分类:花色", "quantity": "45", "sku_id": "4801937646357" }, { "price": "178", "total_price": 0, "orginal_price": "178", "properties": "20509:28315;1627207:130164", "properties_name": "20509:28315:尺码:M;1627207:130164:颜色分类:花色", "quantity": "12", "sku_id": "4801937646358" }, { "price": "178", "total_price": 0, "orginal_price": "178", "properties": "20509:28316;1627207:130164", "properties_name": "20509:28316:尺码:L;1627207:130164:颜色分类:花色", "quantity": "1", "sku_id": "4801937646359" }, { "price": "178", "total_price": 0, "orginal_price": "178", "properties": "20509:28317;1627207:130164", "properties_name": "20509:28317:尺码:XL;1627207:130164:颜色分类:花色", "quantity": "20", "sku_id": "4801937646360" }, { "price": "178", "total_price": 0, "orginal_price": "178", "properties": "20509:6145171;1627207:130164", "properties_name": "20509:6145171:尺码:2XL;1627207:130164:颜色分类:花色", "quantity": "9", "sku_id": "4801937646361" } ] }, "seller_id": "3842834798", "sales": 40, "shop_id": "275401758", "props_list": { "20509:28314": "尺码:S", "20509:28315": "尺码:M", "20509:28316": "尺码:L", "20509:28317": "尺码:XL", "20509:6145171": "尺码:2XL", "1627207:130164": "颜色分类:花色" }, "seller_info": { "nick": "栗芷阿", "item_score": "4.9 ", "score_p": "4.9 ", "delivery_score": "4.9 ", "shop_type": "C", "user_num_id": "3842834798", "sid": "275401758", "title": "栗芷", "zhuy": "https://shop275401758.taobao.com/", "shop_name": "栗芷" }, "tmall": false, "error": "", "warning": "", "url_log": [], "fav_count": "6306", "fans_count": "1665", "freight": "快递: 快递包邮", "props_imgs": { "prop_img": [] }, "_ddf": "xdl", "promo_type": null, "props_img": [], "format_check": "ok", "shop_item": [], "relate_items": [] }, "error": "", "secache": "858336a730537a9e424e5235d7b7279c", "secache_time": 1660784854, "secache_date": "2022-08-18 09:07:34", "translate_status": "", "translate_time": 0, "language": { "default_lang": "cn", "current_lang": "cn" }, "reason": "", "error_code": "0000", "cache": 0, "api_info": "today:2 max:10100 all[25=2+1+22];expires:2030-12-31", "execution_time": "2.556", "server_time": "Beijing/2022-08-18 09:07:34", "client_ip": "106.6.39.226", "call_args": { "num_iid": "642889064441", "is_promotion": "1" }, "api_type": "taobao", "translate_language": "zh-CN", "translate_engine": "google_new", "server_memory": "0.94MB", "request_id": "gw-4.62fd90d3d41a3", "last_id": "1158725160" }

你可能感兴趣的:(爬虫,API,PHP,爬虫,API,json,淘宝商品详情)