一、接口参数说明:
item_search-根据关键词取商品列表,点击更多API调试,请移步注册API账号点击获取测试key和secret
公共参数
请求地址: https://api-gw.onebound.cn/vvic/item_search
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(点击获取测试key和secret) |
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版本 |
请求参数
请求参数:q=连衣裙&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=&imgid=&filter=&site=gz
参数说明:q:关键词,
start_price:最低价格 end_price:最高价格,
sort:price-asc价格升序,price-desc价格降序,up_time-asc上新时间升序,up_time-desc上新时间降序
filter:参数数组: merge:是否合并类似项,0不合并1合并 ; pid:一级分类id 0~9 ; cid:二级分类id 20000035 ; bid:市场id 19 ; floor:楼层 ; color颜色 黑色,白色 ; size:尺寸 S,M ; service:退现,实拍,秒更新,一件代发,0为否,1为是 0,0,0,0 代表全否; style:风格 ;
site:站点; gz:广州;pn:普宁;hznv:杭州女装;jfn:解放南鞋城;xt:新塘;hz:杭州男装;
请求示例 -- 请求示例 url 默认请求参数已经URL编码处理 curl -i "https://api-gw.onebound.cn/vvic/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=&imgid=&filter=&site=gz"
响应示例
{"items": {"page": "1","allnum": "8000","error": "","real_total_results": 80,"total_results": 80,"data_from": "json","url": "https://www.vvic.com/gz/search/index.html?engine=opensearch&sort=&q=连衣裙&searchCity=gz&currentPage=1","keyword": "连衣裙","page_size": 80,"pagecount": 100,"item": [{"title": "实拍荷叶边娃娃领绑带2021新款春小仙女裙蛋糕裙法式连衣裙中长款","pic_url": "https://img.alicdn.com/bao/uploaded/i3/3182168434/O1CN01IXRn102CAp57u6j9R_!!3182168434.jpg","promotion_price": 68,"price": "48.00","sales": 0,"num_iid": 25267162,"hid": "6813现货","sample_id": "640156783395","seller_nick": "花生米","post_fee": "","area": "女人街","position": "女人街 1 E56-B","detail_url": "http://www.vvic.com/item/25267162"},{"title": "夏款学生小个子polo领连衣裙子女中长款T恤","pic_url": "https://img.alicdn.com/bao/uploaded/i2/1797163992/O1CN01IpWVOo1fMNl9xGvTm_!!1797163992.jpg","promotion_price": 35,"price": "25.00","sales": 0,"num_iid": 25261498,"hid": "A2104","sample_id": "640135547995","seller_nick": "小雅家","post_fee": "","area": "金富丽","position": "金富丽 2 2F002-A","detail_url": "http://www.vvic.com/item/25261498"},
注:以下是行业内了解到的一些情况,本帖只展示部分代码,响应参数可注册账号查看演示站或者点击头像联系