item_search-按关键字搜索当当商品接口,当当网按照关键词搜索商品接口接入方案

一、item_search-按关键字搜索dangdang商品接口接入说明:
点击注册获取key和secret测试账号
接口说明:通过关键词搜索获取商品列表,然后可以再次通过商品ID获取详情页面的数据,包括标题,价格,库存,视频,图片等信息。
item_search-按关键字搜索当当商品接口,当当网按照关键词搜索商品接口接入方案_第1张图片
二、公共参数
请求参数:q=鞋子&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=
三、请求参数
求参数: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:
四、响应参数

名称 类型 示例值 描述
title String 【下单立减100元】回力官方旗舰店男鞋秋季2020新款百搭韩版透气潮鞋子男椰子鞋运动鞋男休闲鞋 商品标题
supply String 国货经典 正品保障
pic_url String http://img3m4.ddimg.cn/86/17/1394106404-1_b_3.jpg 宝贝图片
promotion_price Float 178.00 优惠价
price Float 178.00 价格
sales Int 890 销量
num_iid Bigint 1394106404 宝贝ID
sample_id String 商品风格标识ID
seller_nick String 掌柜昵称
shopid String 20677 店铺ID
shop_href String http://shop.dangdang.com/20677 店铺主页
shopname String 回力官方旗舰店 店铺名
post_fee Float 10.00 物流费用
area String 山东 店铺所在地
chandi String
detail_url String http://product.dangdang.com/1394106404.html 宝贝链接
pinglun_num Int 890 评论
五、请求示例:(CURL、PHP 、PHPsdk 、Java 、C# 、Python…)

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://注册账号获取/dangdang/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=鞋子&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath="
headers = {
   
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

响应参数:

Result Object:
---------------------------------------
{
   
	"items": {
   
		"page": 1,
		"real_total_results": "149805",
		"page_size": "",
		"total_results": "149805",
		"item": [
			{
   
				"title": " 【回力官方旗舰店】回力老爹鞋男鞋2021秋季韩版潮流百搭增高运动休闲鞋子男潮鞋",
				"supply": "每满200减50",
				"pic_url": "//img3m2.ddimg.cn/50/30/1753926422-1_b_5.jpg",
				"promotion_price": "104.00",
				"price": "104.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "回力官方旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1753926422.html",
				"pinglun_num": "124"
			},
			{
   
				"title": " 【1折价48.9元】唐狮春季男士板鞋低帮小白鞋学生社会韩版潮运动鞋休闲英伦帆布鞋",
				"supply": "正品保证",
				"pic_url": "//img3m4.ddimg.cn/1/15/1126797904-1_b_1.jpg",
				"promotion_price": "48.90",
				"price": "48.90",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "唐狮官方旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1126797904.html",
				"pinglun_num": "85"
			},
			{
   
				"title": " 【回力官方旗舰店】回力男鞋子秋季运动休闲鞋韩版飞织网鞋透气百搭跑步潮鞋",
				"supply": "每满200减50",
				"pic_url": "//img3m2.ddimg.cn/86/21/1705609112-1_b_3.jpg",
				"promotion_price": "88.00",
				"price": "88.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "回力官方旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1705609112.html",
				"pinglun_num": "306"
			},
			{
   
				"title": " 【券后预估价:86】361男鞋运动鞋男2021夏季新款透气跑步鞋子",
				"supply": "开学大作战,叠加满299-70/399-110,约折上7.25折",
				"pic_url": "//img3m2.ddimg.cn/16/8/625066612-1_b_2.jpg",
				"promotion_price": "238.00",
				"price": "238.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "361度旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/625066612.html",
				"pinglun_num": "30"
			},
			{
   
				"title": " 【直降价:56】美特斯邦威懒人鞋女士夏季韩版时尚潮流学生水火休闲鞋子",
				"supply": "美特斯邦威开学季,好货直降,更有专区叠券满200减50,等你抢购!",
				"pic_url": "//img3m9.ddimg.cn/90/11/1407352509-1_b_2.jpg",
				"promotion_price": "56.00",
				"price": "56.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "美特斯邦威旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1407352509.html",
				"pinglun_num": "37"
			},
			{
   
				"title": " 【券后预估价:64】361女鞋运动鞋2020夏季新款网面透气老爹鞋软底鞋子百搭休闲鞋女",
				"supply": "开学大作战,叠加满299-70/399-110,约折上7.25折",
				"pic_url": "//img3m5.ddimg.cn/35/23/1703064365-1_b_1.jpg",
				"promotion_price": "222.00",
				"price": "222.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "361度旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1703064365.html",
				"pinglun_num": "106"
			},
			{
   
				"title": " 【先领券 再下单】回力女鞋秋季网鞋低帮鞋学生鞋休闲鞋情侣鞋一脚蹬懒人网面鞋子",
				"supply": "满200减20",
				"pic_url": "//img3m2.ddimg.cn/78/22/1428377622-1_b_6.jpg",
				"promotion_price": "65.00",
				"price": "65.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "回力官方旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1428377622.html",
				"pinglun_num": "258"
			},
			{
   
				"title": " 【直降价:79】美特斯邦威网面鞋男夏季青少年工装低帮透气休闲潮男鞋子",
				"supply": "美特斯邦威开学季,好货直降,更有专区叠券满200减50,等你抢购!",
				"pic_url": "//img3m9.ddimg.cn/55/22/1508358709-1_b_1.jpg",
				"promotion_price": "79.00",
				"price": "79.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "美特斯邦威旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1508358709.html",
				"pinglun_num": "27"
			},
			{
   
				"title": " 【直降价:56】美特斯邦威帆布鞋女士韩版ulzzang夏季原宿百搭潮女鞋子",
				"supply": "美特斯邦威开学季,好货直降,更有专区叠券满200减50,等你抢购!",
				"pic_url": "//img3m9.ddimg.cn/1/6/1508355289-1_b_1.jpg",
				"promotion_price": "56.00",
				"price": "56.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "美特斯邦威旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1508355289.html",
				"pinglun_num": "35"
			},
			{
   
				"title": " 【先领券 再下单】回力帆布鞋男秋季透气板鞋低帮休闲鞋懒人一脚蹬老北京布鞋学生男鞋子",
				"supply": "满200减20",
				"pic_url": "//img3m2.ddimg.cn/2/31/1374692222-1_b_7.jpg",
				"promotion_price": "69.00",
				"price": "69.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "回力官方旗舰店",
				"post_fee": "",
				"area": "",
				"chandi": "",
				"detail_url": "//product.dangdang.com/1374692222.html",
				"pinglun_num": "596"
			},
			{
   
				"title": " 【券后预估价:72】361度男鞋运动鞋春秋防滑耐磨跑鞋男士轻便休闲鞋子透气跑步鞋571932226",
				"supply": "开学大作战,叠加满299-70/399-110,约折上7.25折",
				"pic_url": "//img3m6.ddimg.cn/81/21/1782929196-1_b_1.jpg",
				"promotion_price": "330.00",
				"price": "330.00",
				"sales": 0,
				"num_iid": "",
				"sample_id": "",
				"seller_nick": "",
				"shopid": "",
				"shop_href": "",
				"shopname": "361度旗舰店",
				"post_fee": "",

你可能感兴趣的:(当当网平台API接口,当当网站关键词搜索接口,按关键词搜索当当网商品,关键词搜索接口,当当网接口)