当当网获得dangdang商品详情商品列表API 测试请求入口

2023-12-13 09:56:59

item_get-获得dangdang商品详情 获取商品详情

item_search-按关键字搜索dangdang商品 获取商品列表

公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

item_search请求参数

请求参数:q=鞋子&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=

参数说明:q:搜索关键字
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
??(bid:总价,bid2:商品价格,sale:销量,credit信用,加_前缀为从大到小排序)
page:

item_get请求参数

请求参数:num_iid=25122027

参数说明:num_iid:EBAY商品ID

?

响应示例

"item": {
		"_ddf": "curry",
		"brandId": "",
		"cid": "",
		"desc": "",
		"desc_img": [],
		"desc_short": "",
		"detail_url": "http://product.m.dangdang.com/11301328174.html",
		"freight": "",
		"item_imgs": null,
		"location": "",
		"min_num": "",
		"nick": "361度旗舰店",
		"num": "",
		"num_iid": "11301328174",
		"orginal_price": "430.00",
		"pic_url": "https://img3m4.ddimg.cn/4/0/11301328174-1_h_1.jpg",
		"post_fee": "",
		"price": "430.00",
		"prop_imgs": {
			"prop_img": ""
		},
		"props": "",
		"props_list": {
			"0:0": "颜色:羽毛白/北极蓝",
			"0:1": "颜色:羽毛白/胡桃木色",
			"0:2": "颜色:羽毛白/生态绿",
			"0:3": "颜色:羽毛白/棕黄色",
			"1:0": "鞋码:39",
			"1:1": "鞋码:40",
			"1:2": "鞋码:41",
			"1:3": "鞋码:42",
			"1:4": "鞋码:43",
			"1:5": "鞋码:44"
		},
		"props_name": "0:0:颜色:羽毛白/北极蓝;1:0:鞋码:390:0:颜色:羽毛白/北极蓝;1:1:鞋码:400:0:颜色:羽毛白/北极蓝;1:2:鞋码:410:0:颜色:羽毛白/北极蓝;1:3:鞋码:420:0:颜色:羽毛白/北极蓝;1:4:鞋码:430:0:颜色:羽毛白/北极蓝;1:5:鞋码:440:1:颜色:羽毛白/胡桃木色;1:0:鞋码:390:1:颜色:羽毛白/胡桃木色;1:1:鞋码:400:1:颜色:羽毛白/胡桃木色;1:2:鞋码:410:1:颜色:羽毛白/胡桃木色;1:3:鞋码:420:1:颜色:羽毛白/胡桃木色;1:4:鞋码:430:1:颜色:羽毛白/胡桃木色;1:5:鞋码:440:2:颜色:羽毛白/生态绿;1:0:鞋码:390:2:颜色:羽毛白/生态绿;1:1:鞋码:400:2:颜色:羽毛白/生态绿;1:2:鞋码:410:2:颜色:羽毛白/生态绿;1:3:鞋码:420:2:颜色:羽毛白/生态绿;1:4:鞋码:430:2:颜色:羽毛白/生态绿;1:5:鞋码:440:3:颜色:羽毛白/棕黄色;1:0:鞋码:390:3:颜色:羽毛白/棕黄色;1:1:鞋码:400:3:颜色:羽毛白/棕黄色;1:2:鞋码:410:3:颜色:羽毛白/棕黄色;1:3:鞋码:420:3:颜色:羽毛白/棕黄色;1:4:鞋码:430:3:颜色:羽毛白/棕黄色;1:5:鞋码:44",
		"rootCatId": "",
		"sales": 0,
		"seller_info": {
			"sid": "8064",
			"title": "361度旗舰店",
			"zhuy": ""
		},
		"shop_id": "8064",
		"skus": {
			"sku": [
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:0;1:0",
					"properties_name": "0:0:颜色:羽毛白/北极蓝;1:0:鞋码:39",
					"sku_id": "11301328184"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:0;1:1",
					"properties_name": "0:0:颜色:羽毛白/北极蓝;1:1:鞋码:40",
					"sku_id": "11301328194"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:0;1:2",
					"properties_name": "0:0:颜色:羽毛白/北极蓝;1:2:鞋码:41",
					"sku_id": "11301328204"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:0;1:3",
					"properties_name": "0:0:颜色:羽毛白/北极蓝;1:3:鞋码:42",
					"sku_id": "11301328214"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:0;1:4",
					"properties_name": "0:0:颜色:羽毛白/北极蓝;1:4:鞋码:43",
					"sku_id": "11301328224"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:0;1:5",
					"properties_name": "0:0:颜色:羽毛白/北极蓝;1:5:鞋码:44",
					"sku_id": "11301328234"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:1;1:0",
					"properties_name": "0:1:颜色:羽毛白/胡桃木色;1:0:鞋码:39",
					"sku_id": "11301328244"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:1;1:1",
					"properties_name": "0:1:颜色:羽毛白/胡桃木色;1:1:鞋码:40",
					"sku_id": "11301328254"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:1;1:2",
					"properties_name": "0:1:颜色:羽毛白/胡桃木色;1:2:鞋码:41",
					"sku_id": "11301328264"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:1;1:3",
					"properties_name": "0:1:颜色:羽毛白/胡桃木色;1:3:鞋码:42",
					"sku_id": "11301328274"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:1;1:4",
					"properties_name": "0:1:颜色:羽毛白/胡桃木色;1:4:鞋码:43",
					"sku_id": "11301328284"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:1;1:5",
					"properties_name": "0:1:颜色:羽毛白/胡桃木色;1:5:鞋码:44",
					"sku_id": "11301328294"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:2;1:0",
					"properties_name": "0:2:颜色:羽毛白/生态绿;1:0:鞋码:39",
					"sku_id": "11301328304"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:2;1:1",
					"properties_name": "0:2:颜色:羽毛白/生态绿;1:1:鞋码:40",
					"sku_id": "11301328314"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:2;1:2",
					"properties_name": "0:2:颜色:羽毛白/生态绿;1:2:鞋码:41",
					"sku_id": "11301328324"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:2;1:3",
					"properties_name": "0:2:颜色:羽毛白/生态绿;1:3:鞋码:42",
					"sku_id": "11301328334"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:2;1:4",
					"properties_name": "0:2:颜色:羽毛白/生态绿;1:4:鞋码:43",
					"sku_id": "11301328344"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:2;1:5",
					"properties_name": "0:2:颜色:羽毛白/生态绿;1:5:鞋码:44",
					"sku_id": "11301328354"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:3;1:0",
					"properties_name": "0:3:颜色:羽毛白/棕黄色;1:0:鞋码:39",
					"sku_id": "11301328364"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:3;1:1",
					"properties_name": "0:3:颜色:羽毛白/棕黄色;1:1:鞋码:40",
					"sku_id": "11301328374"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:3;1:2",
					"properties_name": "0:3:颜色:羽毛白/棕黄色;1:2:鞋码:41",
					"sku_id": "11301328384"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:3;1:3",
					"properties_name": "0:3:颜色:羽毛白/棕黄色;1:3:鞋码:42",
					"sku_id": "11301328394"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:3;1:4",
					"properties_name": "0:3:颜色:羽毛白/棕黄色;1:4:鞋码:43",
					"sku_id": "11301328404"
				},
				{
					"orginal_price": "430.00",
					"price": "430.00",
					"properties": "0:3;1:5",
					"properties_name": "0:3:颜色:羽毛白/棕黄色;1:5:鞋码:44",
					"sku_id": "11301328414"
				}
			]
		},
		"suggestive_price": "",
		"title": "【超品预估价:80】361男鞋运动鞋2022新款秋冬棉鞋增高休闲鞋加绒鞋高帮鞋子板鞋男",
		"total_sold": "",
		"props_img": [],
		"format_check": "ok",
		"shop_item": [],
		"relate_items": []
	},

响应参数

Version: Date:

名称类型必须示例值描述

num_iid

Bigint025122027宝贝ID

title

String0朗读者(1-3辑)(荣获2017年度大众喜爱的50种图书)宝贝标题

desc_short

String0商品简介

promotion_price

Float0156.00优惠价

price

Float0156.00价格

total_price

Float00

suggestive_price

Float00

orginal_price

Float0156.00原价

nick

String0当当自营掌柜昵称

num

Int0

min_num

Int00

detail_url

String0http://product.dangdang.com/25122027.html宝贝链接

pic_url

String0http://img3m7.ddimg.cn/84/26/25122027-1_w_7.jpg宝贝图片

brand

String0品牌名称

brandId

Int0品牌ID

rootCatId

Int0顶级分类ID

cid

Int0

favcount

Int00

fanscount

Int00

crumbs

Mix0

created_time

String0

modified_time

String0

delist_time

String0

desc

String0

item_imgs

Mix0[{ "url": "http://img3m7.ddimg.cn/84/26/25122027-1_w_7.jpg"}]商品图片

item_weight

String0

item_size

String0

location

String0发货地

express_fee

Float06.00快递费用

ems_fee

Float06.00EMS费用

post_fee

Float06.00物流费用

shipping_to

String0发货至

has_discount

Boolean0false

video

Mix0[{}]商品视频

is_virtual

String0

sample_id

String0商品风格标识ID

is_promotion

Boolean0false

props_name

String01627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子;1627207:1347647753:颜色分类:椭圆形带开瓶器+送工具刀卡+链子;商品属性名

prop_imgs

Mix0{"prop_img": [ {"properties": "1627207:1347647754", "url": "//gd2.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg"}]}商品属性图片列表

property_alias

String020509:9974422:36;1627207:28326:红色;20509:9975710:38;1627207:28326:红色;20509:9981357:40;1627207:28326:红色商品属性别名

props

Mix0[{ "name": "产地","value": "中国" }]商品详情

total_sold

Int0

skus

Mix0{"sku": [{"price": "39", "total_price": null, "orginal_price": "39.00", "properties": "1627207:1347647754", "properties_name": "1627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子", "quantity": "305", "sku_id": "3166598625985"}]商品规格信息

seller_id

Int02844096782卖家ID

sales

Int0138销量

shop_id

Bigint0151372205店铺ID

props_list

Mix0{20509:9974422: 尺码:36}商品属性

seller_info

Mix0{"nick": "欢乐购客栈", "city": null, "level": 12, "bail": "2000", "rate": 96, "score": "4.8", "delivery_score": "4.8", "item_score": "4.8", "shop_type": null, "user_num_id": "2596264565", "sid": "127203758", "title": "欢乐购客栈", "zhuy": "//shop127203758.taobao.com", "company_name": null, "menu": [] }卖家信息

tmall

Boolean0false是否天猫

error

String0错误信息

warning

String0price_json error;skus miss;警告信息

url_log

Mix0[]

method

String0item_tmall:pget_item

promo_type

String0

props_img

Mix01627207:28326": "//img.alicdn.com/imgextra/i2/2844096782/O1CN01VrjpXt1zyCc9DvERE_!!2844096782.jpg属性图片

shop_item

Mix0[]

relate_items

Mix0[]

?

文章来源:https://blog.csdn.net/Jernnifer_mao/article/details/134573198
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。