API是应用程序的开发接口,在开发程序的时候,我们有些功能可能不需要从到到位去研发,我们可以拿现有的开发出来的功能模块来使用,而这个功能模块,就叫做库(libary)。比如说:要实现数据传输的安全,这就要使用加密技术,使用加密技术就要用到加密算法,而加密算法,已经有好心人,帮我们开发出来了加密算法库,你直接就可以调用,不需要再开发算法。
公共参数 企业级数据api
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
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=25122027
参数说明:num_iid:EBAY商品ID
返回数据格式:
{
"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_10.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_10.jpg"
},
{
"url": "//img3m7.ddimg.cn/84/26/25122027-2_u_5.jpg"
},
{
"url": "//img3m7.ddimg.cn/84/26/25122027-3_u_3.jpg"
},
{
"url": "//img3m7.ddimg.cn/84/26/25122027-4_u_3.jpg"
},
{
"url": "//img3m7.ddimg.cn/84/26/25122027-5_u_3.jpg"
},
{
"url": "//img3m7.ddimg.cn/84/26/25122027-6_u_3.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": "91598",
"stuff_status": "",
"props_img": [],
"shopinfo": {
"shop_name": ""
},
"promo_type": "",
"shop_item": [],
"relate_items": [],
"format_check": "ok"
},