API接口名称(item_get - 获得dangdang商品详情)[item_search,item_get,item_search_shop等]

请求参数:num_iid=25122027

参数说明:num_iid:EBAY商品ID

API接口名称(item_get - 获得dangdang商品详情)[item_search,item_get,item_search_shop等]_第1张图片

 

API测试接口

点击申请试用

响应参数

Version: Date:

名称 类型 必须 示例值 描述
num_iid Bigint 0 25122027 宝贝ID
title String 0 朗读者(1-3辑)(荣获2017年度大众喜爱的50种图书) 宝贝标题
desc_short String 0 商品简介
promotion_price Float 0 156.00 优惠价
price Float 0 156.00 价格
total_price Float 0 0
suggestive_price Float 0 0
orginal_price Float 0 156.00 原价
nick String 0 当当自营 掌柜昵称
num Int 0
min_num Int 0 0
detail_url String 0 《朗读者(1-3辑)(荣获2017年度大众喜爱的50种图书)》(董卿主编)【简介_书评_在线阅读】 - 当当图书 宝贝链接
pic_url String 0 http://img3m7.ddimg.cn/84/26/25122027-1_w_7.jpg 宝贝图片
brand String 0 品牌名称
brandId Int 0 品牌ID
rootCatId Int 0 顶级分类ID
cid Int 0
favcount Int 0 0
fanscount Int 0 0
crumbs Mix 0
created_time String 0
modified_time String 0
delist_time String 0
desc String 0
item_imgs Mix 0 [{ "url": "http://img3m7.ddimg.cn/84/26/25122027-1_w_7.jpg"}] 商品图片
item_weight String 0
item_size String 0
location String 0 发货地
express_fee Float 0 6.00 快递费用
ems_fee Float 0 6.00 EMS费用
post_fee Float 0 6.00 物流费用
shipping_to String 0 发货至
has_discount Boolean 0 false
video Mix 0 [{}] 商品视频
is_virtual String 0
sample_id String 0 商品风格标识ID
is_promotion Boolean 0 false
props_name String 0 1627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子;1627207:1347647753:颜色分类:椭圆形带开瓶器+送工具刀卡+链子; 商品属性名
prop_imgs Mix 0 {"prop_img": [ {"properties": "1627207:1347647754", "url": "//gd2.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg"}]} 商品属性图片列表
property_alias String 0 20509:9974422:36;1627207:28326:红色;20509:9975710:38;1627207:28326:红色;20509:9981357:40;1627207:28326:红色 商品属性别名
props Mix 0 [{ "name": "产地","value": "中国" }] 商品详情
total_sold Int 0
skus Mix 0 {"sku": [{"price": "39", "total_price": null, "orginal_price": "39.00", "properties": "1627207:1347647754", "properties_name": "1627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子", "quantity": "305", "sku_id": "3166598625985"}] 商品规格信息
seller_id Int 0 2844096782 卖家ID
sales Int 0 138 销量
shop_id Bigint 0 151372205 店铺ID
props_list Mix 0 {20509:9974422: 尺码:36} 商品属性
seller_info Mix 0 {"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 Boolean 0 false 是否天猫
error String 0 错误信息
warning String 0 price_json error;skus miss; 警告信息
url_log Mix 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 属性图片
shop_item Mix 0 []
relate_items Mix 0 []

请求示例

&secret=<您自己的apiSecret>&num_iid=25122027";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>

API 返回结果

https://api-gw.onebound.cn/dangdang/item_get/?key=&
&num_iid=25122027&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
	"item": {
		"num_iid": "25122027",
		"title": "朗读者(1-3辑)(荣获2017年度大众喜爱的50种图书)",
		"desc_short": "",
		"price": "156.00",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "156.00",
		"nick": "",
		"num": "",
		"min_num": 0,
		"detail_url": "http://product.dangdang.com/25122027.html",
		"pic_url": "//img3m7.ddimg.cn/84/26/25122027-1_u_8.jpg",
		"brand": "",
		"brandId": "",
		"rootCatId": "",
		"cid": "",
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "",
		"desc_img": [],
		"item_imgs": [
			{
				"url": "//img3m7.ddimg.cn/84/26/25122027-1_u_8.jpg"
			},
			{
				"url": "//img3m7.ddimg.cn/84/26/25122027-2_u_3.jpg"
			},
			{
				"url": "//img3m7.ddimg.cn/84/26/25122027-3_u_1.jpg"
			},
			{
				"url": "//img3m7.ddimg.cn/84/26/25122027-4_u_1.jpg"
			},
			{
				"url": "//img3m7.ddimg.cn/84/26/25122027-5_u_1.jpg"
			},
			{
				"url": "//img3m7.ddimg.cn/84/26/25122027-6_u_1.jpg"
			}
		],
		"item_weight": "",
		"item_size": "",
		"location": "",
		"post_fee": "",
		"express_fee": "",
		"ems_fee": "",
		"shipping_to": "",
		"has_discount": "",
		"video": [],
		"is_virtual": "",
		"sample_id": "",
		"is_promotion": "",
		"props_name": "",
		"prop_imgs": {
			"prop_img": []
		},
		"property_alias": "",
		"props": [
			{
				"name": "开 本",
				"value": "32开"
			},
			{
				"name": "纸 张",
				"value": "胶版纸"
			},
			{
				"name": "包 装",
				"value": "平装-胶订"
			},
			{
				"name": "是否套装",
				"value": "是"
			},
			{
				"name": "国际标准书号ISBN",
				"value": "25122027"
			}
		],
		"total_sold": "",
		"skus": {
			"sku": []
		},
		"seller_id": "",
		"sales": 0,
		"shop_id": "",
		"props_list": [],
		"seller_info": {
			"nick": "",
			"shop_name": "",
			"city": "",
			"level": "",
			"rate": "",
			"totle_pf": "",
			"desc_pf": "",
			"server_pf": "",
			"send_pf": "",
			"shop_type": "",
			"user_num_id": "",
			"shopid": "",
			"shopname": "",
			"zhuy": "http://shop.dangdang.com/",
			"tel": "",
			"menu": []
		},
		"tmall": "",
		"error": "",
		"warning": "",
		"url_log": "",
		"sold": "89146",
		"stuff_status": "",
		"props_img": [],
		"shopinfo": {
			"shop_name": ""
		},
		"promo_type": "",
		"shop_item": [],
		"relate_items": [],
		"format_check": "ok"
	},
	"error": "",
	"secache": "665a65ebbf05689bd424affec75b2af6",
	"secache_time": 1663741738,
	"secache_date": "2022-09-21 14:28:58",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:23 max:10100 all[73=23+19+31];expires:2030-12-31",
	"execution_time": "0.319",
	"server_time": "Beijing/2022-09-21 14:28:58",
	"client_ip": "106.6.38.190",
	"call_args": {
		"num_iid": "25122027"
	},
	"api_type": "dangdang",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "0.76MB",
	"request_id": "gw-4.632aaf2aa719f",
	"last_id": "1230946029"
}

你可能感兴趣的:(电商平台,API技术,API,java,c++,jvm,爬虫,php)