product_pool_search.md 15.3 KB

1、根据商品池的信息查询过滤商品列表

(method=app.search.pool,获取商品池商品列表)

请求参数

名称 类型 是否必须 示例值 默认值 描述
method String app.search.pool 请求方法
limit int 10 每页展示条数,默认10条
sort String "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" 查询小分类ID,查多个小类以逗号分隔
page int 1 当前页
yh_channel String "1" 频道
order String "s_t_desc" 排序信息
p_d String "0.7" 打折区间,以逗号分隔
color String "145" 颜色ID
brand String "125" 品牌ID
price String "300,600" 价格区间,以逗号分隔
size String "16,17" 尺寸ID,以逗号分隔
standard String[] standard=13&standard=25 规格
gender String "1,3" 性别,以逗号分隔
outlets int 1 outlets=1 奥莱商品 outlets=2非奥莱商品
app_type int 0 0 代表有货商品 1 代表BLK商品
age_level int null 1成人 2 大童 3小童,多值则用英文逗号分隔

注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5", 
    "code": 200, 
    "data": {
        "filter": {
            "gender": {
                "1,3": "BOYS", 
                "2,3": "GIRLS"
            }, 
            "color": [
                {
                    "color_id": 1, 
                    "color_name": "白色", 
                    "color_value": "", 
                    "color_code": "FFFFFF"
                }, 
                {
                    "color_id": 11, 
                    "color_name": "红色", 
                    "color_value": "", 
                    "color_code": "ee0000"
                }, 
                {
                    "color_id": 13, 
                    "color_name": "银色", 
                    "color_value": "http://static.yohobuy.com/images/color_p2.png", 
                    "color_code": ""
                }, 
                {
                    "color_id": 2, 
                    "color_name": "黑色", 
                    "color_value": "", 
                    "color_code": "333333"
                }, 
                {
                    "color_id": 6, 
                    "color_name": "绿色", 
                    "color_value": "", 
                    "color_code": "47ba17"
                }, 
                {
                    "color_id": 9, 
                    "color_name": "黄色", 
                    "color_value": "", 
                    "color_code": "ffeb00"
                }, 
                {
                    "color_id": 12, 
                    "color_name": "橙色", 
                    "color_value": "", 
                    "color_code": "ff5c01"
                }, 
                {
                    "color_id": 14, 
                    "color_name": "金色", 
                    "color_value": "", 
                    "color_code": "FFD83D"
                }, 
                {
                    "color_id": 3, 
                    "color_name": "灰色", 
                    "color_value": "", 
                    "color_code": "b9b7af"
                }, 
                {
                    "color_id": 4, 
                    "color_name": "棕色", 
                    "color_value": "", 
                    "color_code": "8b5402"
                }, 
                {
                    "color_id": 7, 
                    "color_name": "蓝色", 
                    "color_value": "", 
                    "color_code": "0000fe"
                }, 
                {
                    "color_id": 8, 
                    "color_name": "紫色", 
                    "color_value": "", 
                    "color_code": "710098"
                }
            ], 
            "size": [
                {
                    "size_name": "F", 
                    "size_id": 199
                }, 
                {
                    "size_name": "39码", 
                    "size_id": 109
                }, 
                {
                    "size_name": "40码", 
                    "size_id": 116
                }, 
                {
                    "size_name": "41码", 
                    "size_id": 122
                }, 
                {
                    "size_name": "42码", 
                    "size_id": 125
                }, 
                {
                    "size_name": "43码", 
                    "size_id": 129
                }, 
                {
                    "size_name": "44码", 
                    "size_id": 133
                }, 
                {
                    "size_name": "L", 
                    "size_id": 201
                }, 
                {
                    "size_name": "M", 
                    "size_id": 203
                }, 
                {
                    "size_name": "XL", 
                    "size_id": 211
                }
            ], 
            "discount": {
                "0.7,0.999": {
                    "name": "7~9", 
                    "count": 7
                }
            }, 
            "style": [
                {
                    "style_id": 991, 
                    "style_name": "街头"
                }, 
                {
                    "style_id": 990, 
                    "style_name": "户外"
                }, 
                {
                    "style_id": 999, 
                    "style_name": "学院"
                }
            ], 
            "brand": [
                {
                    "hot_keyword": "oasso", 
                    "brand_domain": "oasso", 
                    "brand_alif": "O", 
                    "is_hot": "N", 
                    "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2011/11/11/09/0277145affaf6603a366a5e582a3f5161f.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", 
                    "brand_name": "oasso", 
                    "id": 210, 
                    "brand_keyword": "时尚家居用品", 
                    "brand_name_en": "oasso", 
                    "brand_name_cn": "瓯粟家居"
                }, 
                {
                    "hot_keyword": "OOU!", 
                    "brand_domain": "oou", 
                    "brand_alif": "O", 
                    "is_hot": "N", 
                    "brand_ico": "http://img11.static.yhbimg.com/brandLogo/2011/06/26/14/01e09d38d67d7a22097121177fbed23668.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", 
                    "brand_name": "OOU!", 
                    "id": 105, 
                    "brand_keyword": "OOU!", 
                    "brand_name_en": "OOU!", 
                    "brand_name_cn": "OOU!"
                }, 
                {
                    "hot_keyword": "Paul&Reed", 
                    "brand_domain": "paulandreed", 
                    "brand_alif": "P", 
                    "is_hot": "N", 
                    "brand_ico": "http://img13.static.yhbimg.com/brandLogo/2011/06/26/14/02dce1ad9690a3e5ba7e74c5870758776b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", 
                    "brand_name": "Paul&Reed", 
                    "id": 109, 
                    "brand_keyword": "Paul&Reed", 
                    "brand_name_en": "Paul&Reed", 
                    "brand_name_cn": "Paul&Reed"
                }, 
                {
                    "hot_keyword": "Outdo Zenith", 
                    "brand_domain": "outdozenith", 
                    "brand_alif": "O", 
                    "is_hot": "N", 
                    "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/07/11/021af17ebb9352667b6114b0792e707a71.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", 
                    "brand_name": "Outdo Zenith", 
                    "id": 183, 
                    "brand_keyword": "Outdo Zenith,拖鞋", 
                    "brand_name_en": "Outdo Zenith", 
                    "brand_name_cn": "Outdo Zenith"
                }
            ], 
            "priceRange": {
                "0,29": "¥0-29", 
                "30,229": "¥30-229", 
                "230,99999": "¥229以上"
            }, 
            "ageLevel": [
                {
                    "product_count": 7, 
                    "name": "成人", 
                    "id": "1"
                }
            ], 
            "group_sort": [
                {
                    "category_id": "20", 
                    "category_name": "家居生活", 
                    "node_count": 0, 
                    "parent_id": "4", 
                    "relation_parameter": {
                        "sort": "270,292,271,272,273,274,275,110,276,353,277,332,112,333,355,399,281,184,343,267,344,268,269,302,304"
                    }, 
                    "sort_ico": "http://img12.static.yhbimg.com/taobaocms/2016/04/25/15/02c73b1ed1dcf65b22bb1c752ceaf1a9a2.png", 
                    "sub": [
                        {
                            "category_id": "140", 
                            "category_name": "居家", 
                            "node_count": 0, 
                            "parent_id": "20", 
                            "relation_parameter": {
                                "sort": "268,269,270,271,272,273,274,275,276,277,332,333,353"
                            }, 
                            "sort_ico": ""
                        }
                    ]
                }, 
                {
                    "category_id": "11", 
                    "category_name": "鞋靴", 
                    "node_count": 0, 
                    "parent_id": "1", 
                    "relation_parameter": {
                        "sort": "231,299,147,148,149,228"
                    }, 
                    "sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01a4c4324531f3e0c857e5605410110baa.jpg", 
                    "sub": [
                        {
                            "category_id": "119", 
                            "category_name": "靴子", 
                            "node_count": 0, 
                            "parent_id": "11", 
                            "relation_parameter": {
                                "sort": "148"
                            }, 
                            "sort_ico": ""
                        }
                    ]
                }, 
                {
                    "category_id": "18", 
                    "category_name": "上衣", 
                    "node_count": 0, 
                    "parent_id": "2", 
                    "relation_parameter": {
                        "sort": "293,173,121,122,123,124,125,114,258,115,116,413,227,117,118,119"
                    }, 
                    "sort_ico": "http://img12.static.yhbimg.com/taobaocms/2016/04/25/15/021f6d7c1a73dd5823c6758186ef270611.png", 
                    "sub": [
                        {
                            "category_id": "42", 
                            "category_name": "毛衣/针织", 
                            "node_count": 0, 
                            "parent_id": "18", 
                            "relation_parameter": {
                                "sort": "258"
                            }, 
                            "sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/02d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
                        }
                    ]
                }
            ]
        }, 
        "standard": [
            {
                "standard_id": "921", 
                "sub": [
                    {
                        "standard_id": "5018", 
                        "standard_name": "登山靴"
                    }
                ], 
                "standard_name": "经典款型"
            }, 
            {
                "standard_id": "871", 
                "sub": [
                    {
                        "standard_id": "4786", 
                        "standard_name": "v领"
                    }
                ], 
                "standard_name": "领型"
            }
        ], 
        "total": 7, 
        "page_total": 7, 
        "page": 1, 
        "product_list": [
            {
                "small_sort_id": 267, 
                "vip1_price": 27.549999999999997, 
                "gender": "3", 
                "vip3_price": 25.52, 
                "is_global": "N", 
                "is_outlets": 2, 
                "is_discount": "Y", 
                "brand_domain": "oasso", 
                "is_special": "N", 
                "goods_list": [
                    {
                        "color_id": "1", 
                        "product_skc": "15984", 
                        "cover_1": "", 
                        "goods_id": "15984", 
                        "images_url": "http://img11.static.yhbimg.com/goodsimg/2012/04/06/13/0114e38c9291eb4c0d56a3e9369681f276.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", 
                        "color_name": "白", 
                        "cover_2": "", 
                        "color_value": "", 
                        "is_default": "N", 
                        "color_code": "FFFFFF", 
                        "status": "1"
                    }
                ], 
                "vip_discount_type": 3, 
                "product_id": 11596, 
                "is_advance": "N", 
                "sales_num": 259, 
                "sales_phrase": "A梦开始的地方   B足迹    C蓝色畅想曲   D心愿  熊猫马克杯四部曲,四款代表不同的故事,每个故事都会带给你不同的体验。 有货随机发送,看看我们会带你进入哪段精彩旅程吧?", 
                "cn_alphabet": "OASSOCM1103ABCDXiongMaoBei", 
                "product_skn": 50015357, 
                "shelve_time": 1452044520, 
                "vip2_price": 26.1, 
                "age_level": "1", 
                "is_student_price": "N", 
                "edit_time": 1445318856, 
                "is_new": "N", 
                "is_limited": "N", 
                "brand_name": "oasso", 
                "max_sort_id": 10, 
                "product_name": "OASSO  熊猫杯", 
                "brand_id": 210, 
                "tags": [ ], 
                "default_images": "http://img11.static.yhbimg.com/goodsimg/2012/04/06/13/0114e38c9291eb4c0d56a3e9369681f276.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", 
                "stock_number": 934, 
                "storage_num": 934, 
                "is_soon_sold_out": "N", 
                "middle_sort_id": 266, 
                "sales_price": 29, 
                "market_price": 30, 
                "is_promotion": 102, 
                "vip_price": 0, 
                "country_id": 2, 
                "status": 1
            }
        ]
    }, 
    "md5": "3862b043e336c9c41e2a14fa5092b95c", 
    "message": "pool Product List."
}