一、最新上架--首页底部
最新上架 :
- 请求URL:
字段说明
参数名 | 值 | 描述 |
---|---|---|
order | shelve_time:desc | 排序类型格式:排序字段名:排序方式,如按热门正序排“hot_number:asc”多重排序以逗号分隔,如“order= hot_number:asc, shelve_time:desc” |
shelve_time | 1462096371,1467280371 | 时间区间起始时间以逗号分隔,如查询20150101-20150106 “shelve_time =1420041600,1420473600” |
gender | 2,3 | 性别1-男2-女3-通用查多个性别以逗号分隔 |
status | 1 | 是否上架 1 或 2 |
sales | Y | 是否销售 “N”或”Y” |
attribute_not | 2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
stocknumber | 3 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |
misort | 11 | 产品中分类ID查多个中类以逗号分隔 |
viewNum | 4 | 每页记录数默认为10 |
参数返回
{
"code": 200,
"data": [
{
"brand_domain": "runningman",
"brand_id": 751,
"brand_name": "奔跑吧兄弟",
"cn_alphabet": "RUNNINGMANRMA502TE01",
"default_images": "/2015/06/15/02/01c24052905ced0d590ac76fc7554cf42b.jpg",
"edit_time": 1455616377,
"gender": "3",
"goods_list": [
{
"color_code": "47ba17",
"color_id": "6",
"color_name": "绿色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "273221",
"images_url": "/2015/06/15/05/02bd6524c28a305148f3f9ff8fad585162.jpg",
"is_default": "N",
"product_skc": "237939",
"status": "1"
},
{
"color_code": "ffeb00",
"color_id": "9",
"color_name": "黄色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "273233",
"images_url": "/2015/06/15/05/0161e49e8f5298385a73911ddfe6b6bf35.jpg",
"is_default": "N",
"product_skc": "237945",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 139,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 204497,
"product_name": "奔跑吧兄弟 “撕名牌”魔术贴徽章T恤",
"product_skn": 51117072,
"sales_num": 1649,
"sales_phrase": null,
"sales_price": 139,
"shelve_time": 1455616377,
"small_sort_id": 114,
"status": 1,
"stock_number": 312,
"storage_num": 312,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
},
{
"brand_domain": "5min",
"brand_id": 910,
"brand_name": "5min",
"cn_alphabet": "5MINQiXingBuKaoTXuMJ1511",
"default_images": "/2015/10/12/02/0159d605c789a822824370fc93c40ae635.jpg",
"edit_time": 1455615066,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "357315",
"images_url": "/2015/10/12/02/0159d605c789a822824370fc93c40ae635.jpg",
"is_default": "N",
"product_skc": "280700",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 488,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 276511,
"product_name": "5min 七星不靠胶印圆领长袖T恤",
"product_skn": 51153670,
"sales_num": 0,
"sales_phrase": null,
"sales_price": 488,
"shelve_time": 1455615066,
"small_sort_id": 114,
"status": 1,
"stock_number": 19,
"storage_num": 19,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
},
{
"brand_domain": "5cm",
"brand_id": 4,
"brand_name": "5CM",
"cn_alphabet": "5CMTXu5CXLTG2110W55",
"default_images": "/2015/11/10/08/0169de4b9f3c79bcd666d6528d27c3797a.jpg",
"edit_time": 1454314545,
"gender": "2",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "375825",
"images_url": "/2015/11/10/08/0169de4b9f3c79bcd666d6528d27c3797a.jpg",
"is_default": "N",
"product_skc": "292370",
"status": "1"
},
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "375827",
"images_url": "/2015/11/11/09/01c0715d2900d85d0f761a611cb3a58a3d.jpg",
"is_default": "Y",
"product_skc": "292371",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 479,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 293229,
"product_name": "5CM 堆堆领印花T恤",
"product_skn": 51164399,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 239,
"shelve_time": 1454314545,
"small_sort_id": 114,
"status": 1,
"stock_number": 14,
"storage_num": 14,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
}
],
"message": "new product List."
}
PS: 男生、女生、潮童、创意生活底部都包含《最新上架》,只不过是传的参数不同。
http://list.yohobuy.com)
二、搜索数据列表(商品列表
- 请求URL:
字段说明
参数名 | 值 | 描述 |
---|---|---|
status | 1 | 是否上架 1 或 2 |
sales | Y | 是否销售 “N”或”Y” |
outlets | 2 | 1是奥莱,2是非奥莱 |
stocknumber | 1 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |
attribute_not | 2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
order | sales_num:desc | 序类型格式:排序字段名:排序方式,如按热门正序排“hot_number:asc”多重排序以逗号分隔,如“order= hot_number:asc, shelve_time:desc” |
page | 1 | 当前页 |
viewNum | 59 | 每页记录数默认为10 |
gender | 性别1-男2-女3-通用查多个性别以逗号分隔 | |
needFilter | 1 | 需要返回过滤集合needFilter=1 |
p_d | 0.01,0.399 | 折扣区间 ,1~3折 |
参数返回
{
"code": 200,
"data": {
"filter": {
"ageLevel": [
{
"id": "1",
"name": "成人",
"product_count": 3652
},
{
"id": "5",
"name": "幼童",
"product_count": 40
}
],
"brand": [
{
"brand_alif": "P",
"brand_domain": "pass",
"brand_ico": "/2015/05/14/12/0255c1a5355cd41a884ede2217e0e08d55.jpg",
"brand_keyword": "",
"brand_name": "PASS",
"brand_name_cn": "",
"brand_name_en": "PASS",
"hot_keyword": "女装",
"id": 715,
"is_hot": "Y"
},
{
"brand_alif": null,
"brand_domain": null,
"brand_ico": "/2016/01/18/03/01f7e2adcbe8701d1b3f367157820ea59f.jpg",
"brand_keyword": null,
"brand_name": "心飞扬",
"brand_name_cn": "",
"brand_name_en": "xinfeiyang",
"hot_keyword": null,
"id": 1422,
"is_hot": "N"
}
],
"color": [
{
"color_code": "333333",
"color_id": 2,
"color_name": "黑色",
"color_value": ""
},
{
"color_code": "",
"color_id": 13,
"color_name": "银色",
"color_value": "http://static.yohobuy.com/images/color_p2.png"
}
],
"gender": {
"2,3": "GIRLS",
"1,3": "BOYS"
},
"limited": "Y",
"new": "Y",
"parameter_787": {
"standard_id": "787",
"standard_name": "领型",
"sub": [
{
"standard_id": "4438",
"standard_name": "圆领"
},
{
"standard_id": "4439",
"standard_name": "v领"
},
{
"standard_id": "5361",
"standard_name": "异形领"
}
]
},
"parameter_788": {
"standard_id": "788",
"standard_name": "衣长",
"sub": [
{
"standard_id": "4445",
"standard_name": "适中"
},
{
"standard_id": "4444",
"standard_name": "短款"
},
{
"standard_id": "4446",
"standard_name": "长款"
}
]
},
"parameter_825": {
"standard_id": "825",
"standard_name": "袖长",
"sub": [
{
"standard_id": "4626",
"standard_name": "长袖"
},
{
"standard_id": "4624",
"standard_name": "短袖"
},
{
"standard_id": "4625",
"standard_name": "7分袖"
},
{
"standard_id": "5439",
"standard_name": "5分袖"
}
]
},
"parameter_826": {
"standard_id": "826",
"standard_name": "版型",
"sub": [
{
"standard_id": "4628",
"standard_name": "正常"
},
{
"standard_id": "4629",
"standard_name": "宽松"
},
{
"standard_id": "4627",
"standard_name": "修身"
}
]
},
"parameter_827": {
"standard_id": "827",
"standard_name": "厚度",
"sub": [
{
"standard_id": "4631",
"standard_name": "中"
},
{
"standard_id": "4632",
"standard_name": "厚"
},
{
"standard_id": "4630",
"standard_name": "薄"
},
{
"standard_id": "4633",
"standard_name": "加厚"
}
]
},
"price": {
"0,159": "¥0-159",
"160,279": "¥160-279",
"280,569": "¥280-569",
"570,99999": "¥569以上"
},
"size": [
{
"size_id": 203,
"size_name": "M"
},
{
"size_id": 201,
"size_name": "L"
},
{
"size_id": 207,
"size_name": "S"
},
{
"size_id": 211,
"size_name": "XL"
},
{
"size_id": 177,
"size_name": "85"
},
{
"size_id": 188,
"size_name": "9月21日"
}
],
"specialoffer": "Y",
"style": [
{
"style_id": 991,
"style_name": "街头"
},
{
"style_id": 1000,
"style_name": "简约"
},
{
"style_id": 1101,
"style_name": "简洁"
},
{
"style_id": 994,
"style_name": "机车"
},
{
"style_id": 1096,
"style_name": "韩版"
}
]
},
"page": 1,
"page_total": 4865,
"product_list": [
{
"brand_domain": "mwowl",
"brand_id": 824,
"brand_name": "M.WOWL",
"cn_alphabet": "MWOWLLianYiQunWOWA503DS37BKX",
"default_images": "/2015/08/18/08/029301961e6b44194b3ae964d7578bb041.jpg",
"edit_time": 1441535857,
"gender": "2",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "/2015/08/20/11/02de6b5d532c01a6f4e7c966ba1acb57df.jpg",
"goods_id": "301031",
"images_url": "/2015/08/18/08/029301961e6b44194b3ae964d7578bb041.jpg",
"is_default": "Y",
"product_skc": "251837",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 299,
"max_sort_id": 4,
"middle_sort_id": 31,
"product_id": 228281,
"product_name": "M.WOWL字母印花欧根纱拼接连衣裙",
"product_skn": 51128961,
"sales_num": 3,
"sales_phrase": "",
"sales_price": 99,
"shelve_time": 1441535857,
"small_sort_id": 134,
"status": 1,
"stock_number": 81,
"storage_num": 81,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
},
{
"brand_domain": "lilbetter",
"brand_id": 385,
"brand_name": "Lilbetter",
"cn_alphabet": "LILBETTERShuiXiPoMoMoPoNiuZai91439926",
"default_images": "/2015/12/31/06/027a47aeabf37b6f6437d7e8eb77a59ec7.jpg",
"edit_time": 1451893132,
"gender": "1",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "/2016/01/04/06/02790e3ea8fb8acf3de7e24114dad345e2.jpg",
"cover_2": "",
"goods_id": "432919",
"images_url": "/2016/01/04/06/02790e3ea8fb8acf3de7e24114dad345e2.jpg",
"is_default": "N",
"product_skc": "324421",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 688,
"max_sort_id": 3,
"middle_sort_id": 27,
"product_id": 337015,
"product_name": "lilbetter 水洗泼墨磨破牛仔裤",
"product_skn": 51188049,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 168,
"shelve_time": 1451893132,
"small_sort_id": 130,
"status": 1,
"stock_number": 340,
"storage_num": 340,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 1,
"vip_price": 0,
"yohood_id": null
}
],
"total": 9729
},
"message": "Search List."
}
三、品类列表
http://list.yohobuy.com/)
全部品类(- 请求URL:
http://192.168.102.216:8080/yohosearch/sortgroup.json?sales=Y&status=1&stocknumber=1
字段说明
参数名 | 值 | 描述 |
---|---|---|
status | 1 | 是否上架 1 或 2 |
sales | Y | 是否销售 “N”或”Y” |
stocknumber | 2 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |
参数返回
{
"code": 200,
"data": {
"sort": [
{
"sort_id": "1",
"sort_name": "上衣",
"order_by": "100",
"count": 22712,
"sub": [
{
"sort_id": "11",
"sort_name": "T恤",
"order_by": "50",
"count": 5316
},
{
"sort_id": "412",
"sort_name": "套装",
"order_by": "0",
"count": 26
}
]
},
{
"sort_id": "3",
"sort_name": "裤装",
"order_by": "90",
"count": 5950,
"sub": [
{
"sort_id": "26",
"sort_name": "休闲裤",
"order_by": "30",
"count": 3415
},
{
"sort_id": "347",
"sort_name": "西裤",
"order_by": "0",
"count": 28
}
]
},
{
"sort_id": "6",
"sort_name": "鞋靴",
"order_by": "70",
"count": 3251,
"sub": [
{
"sort_id": "44",
"sort_name": "休闲/运动鞋",
"order_by": "22",
"count": 2002
},
{
"sort_id": "298",
"sort_name": "厚底鞋",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "7",
"sort_name": "包类/装备",
"order_by": "60",
"count": 5907,
"sub": [
{
"sort_id": "49",
"sort_name": "双肩包",
"order_by": "20",
"count": 2001
},
{
"sort_id": "350",
"sort_name": "mini包",
"order_by": "0",
"count": 7
}
]
},
{
"sort_id": "8",
"sort_name": "服配",
"order_by": "50",
"count": 7121,
"sub": [
{
"sort_id": "61",
"sort_name": "太阳镜/眼镜",
"order_by": "20",
"count": 1117
},
{
"sort_id": "294",
"sort_name": "口罩",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "308",
"sort_name": "内衣/家居服",
"order_by": "40",
"count": 1086,
"sub": [
{
"sort_id": "309",
"sort_name": "内裤",
"order_by": "10",
"count": 683
},
{
"sort_id": "363",
"sort_name": "文胸",
"order_by": "8",
"count": 82
},
{
"sort_id": "356",
"sort_name": "家居服",
"order_by": "6",
"count": 309
},
{
"sort_id": "358",
"sort_name": "家居鞋",
"order_by": "2",
"count": 8
}
]
},
{
"sort_id": "241",
"sort_name": "pinleimingcheng",
"order_by": "22",
"count": 3,
"sub": []
},
{
"sort_id": "10",
"sort_name": "创意生活",
"order_by": "20",
"count": 4432,
"sub": [
{
"sort_id": "103",
"sort_name": "数码3C",
"order_by": "28",
"count": 1831
},
{
"sort_id": "259",
"sort_name": "美妆",
"order_by": "20",
"count": 433
}
]
},
{
"sort_id": "360",
"sort_name": "泳衣",
"order_by": "10",
"count": 2,
"sub": [
{
"sort_id": "361",
"sort_name": "泳衣",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "365",
"sort_name": "潮童",
"order_by": "0",
"count": 1425,
"sub": [
{
"sort_id": "396",
"sort_name": "卫衣",
"order_by": "0",
"count": 175
},
{
"sort_id": "427",
"sort_name": "手帕",
"order_by": "0",
"count": 1
}
]
}
]
},
"message": "sort List."
}
四、最近上架
http://list.yohobuy.com/new?gender=1,3&order=s_t_desc)
一周新品上架(- 请求URL:
参数返回
{
"code": 200,
"data": {
"recent": {
"2016-06-29": 3,
"2016-06-28": 3,
"2016-06-27": 1,
"2016-06-18": 6,
"2016-06-06": 1,
"2016-06-02": 3,
"2016-05-27": 8
}
},
"message": "recentShelveDay List."
}
五、折扣区间
http://list.yohobuy.com/sale?msort=365)
全部折扣(- 请求URL:
参数返回
{
"code": 200,
"data": {
"discount": {
"0.01,0.399": {
"count": 33225,
"name": "1~3"
},
"0.4,0.699": {
"count": 63367,
"name": "4~6"
},
"0.7,0.999": {
"count": 28892,
"name": "7~9"
}
}
},
"message": "discount List."
}
六、搜索词提示 :
http://search.yohobuy.com/?query=nike)
搜索输入框(- 请求URL:
http://192.168.102.216:8080/yohosearch/suggest.json?query=nike
字段说明
参数名 | 值 | 描述 |
---|---|---|
query | nike | 关键字 |
参数返回
{
"code": 200,
"message": "suggest List.",
"suggest": {
"items": [
{
"frequency": 1939,
"item": "nike"
},
{
"frequency": 1928,
"item": "nike air"
},
{
"frequency": 218,
"item": "nike air max"
}
]
}
}
七、获取品牌店铺 :
品牌页(5min.yohobuy.com)
- 请求URL:
http://192.168.102.216:8080/yohosearch/shops.json?keyword=nike
字段说明
参数名 | 值 | 描述 |
---|---|---|
keyword | nike | 关键字 |
参数返回
{
"code": 200,
"data": {
"brand_domain": "nike",
"brand_ico": "/2015/04/10/16/02963cdc1aeab10959bfeccc400aaa8de8.jpg",
"brand_name": "Nike",
"id": 248
},
"message": "shops info"
}
八、获取品牌列表 :
http://www.yohobuy.com/home)
你可能喜欢的品牌(- 请求URL:
参数返回
{
"code": 200,
"data": [
{
"brand_alif": "0",
"brand_domain": "004",
"brand_ico": "/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg",
"brand_keyword": "004,服装,包类",
"brand_name": "004",
"brand_name_cn": "零零肆12121",
"brand_name_en": "jipeng",
"hot_keyword": "004",
"id": 1,
"is_hot": ""
},
{
"brand_alif": "D",
"brand_domain": "DOUCAN",
"brand_ico": "/2016/06/30/17/011ed7ff4510bcbd4a9e4242cc99b7ff99.jpg",
"brand_keyword": "",
"brand_name": "DOUCAN",
"brand_name_cn": "DOUCAN",
"brand_name_en": "DOUCAN",
"hot_keyword": "",
"id": 1726,
"is_hot": "N"
}
],
"message": "brands info"
}
PS: 菜单导航 1、男生(新品到着、 服饰、 鞋履、 包袋、 配饰 · 其他) 2、女生(新品到着、 服饰、 鞋履、 包袋、配饰 · 其他) 3、潮童(新品到着、 上装、 下装、 鞋包配饰) 4、创意生活(新品到着、 数码3C、 居家、 玩具娱乐、 美妆) 只是获取商品列表gender,msort参数不同而已,参数均是参考搜索文档上面的参数入参。
1、sort:品类 http://192.168.102.216:8080/yohosearch/sortgroup.json
2、discount:折扣区间 http://192.168.102.216:8080/yohosearch/discount.json
3、recent:最新上架 http://192.168.102.216:8080/yohosearch/recent.json
4、 suggest:搜索词提示 http://192.168.102.216:8080/yohosearch/suggest.json?query=nike
5、 new-shelve:获取推荐新品 http://192.168.102.216:8080/yohosearch/new-shelve.json
6、shop:获取品牌店铺 http://192.168.102.216:8080/yohosearch/shops.json?keyword=nike
7、search:搜索数据列表 http://192.168.102.216:8080/yohosearch/search.json
8、brand:获取品牌列表 http://192.168.102.216:8080/yohosearch/brand/list.json
- 上面搜索数据均是这八大连接支持。
- 入参出参均是参考搜索文档。