数据接口API

点击获取APKEY

正常 淘抢购/聚划算/9.9元淘客商品库 API


请求链接: https://api.open.21ds.cn/op_api_v1/getitems
请求实例: https://api.open.21ds.cn/op_api_v1/getitems?apkey=登录后即可显示&page=1 (注:此实例中的密钥为登录用户的真实密钥,不登录不显示,请妥善保管,切勿泄露!)
注意事项:如调用接口时数据返回异常,则需对接口中的【中文】进行Urlencode编码,然后再试。
今日调用统计: 暂无统计
会员限制: 全部会员 (新用户注册立刻送7天V1付费会员)
频率说明: 不同会员级别调用频率不同,具体可见会员升级页面介绍。会员升级传送门
使用说明: 淘抢购/聚划算/9.9元/20元封顶商品库,每页默认20条
必看注意:为保障接口安全及使用效率,调用本站接口前需先 添加IP白名单 (IP地址测试),若IP不固定且无服务器,可通过“优惠推荐”中的链接购买阿里云服务器来调用接口。禁止以插件(包括但不仅限于浏览器插件及手机插件)形式使用接口,禁止将接口重新打包销售或转卖,一经发现,将做帐号封禁处理。
优惠推荐:高性能云服务器2折起,普惠上云,仅需234元/年 >立即抢购<<-

使用说明

暂无说明

请求参数

参数类型请求参数参考值是否必须说明
apkeyStringxxxxxxx用户中心 - 基础设置 中查看APKEY密钥(*必要
pageString1当前页数
pagesizeString20每页数量,默认为20,最大支持每页100条数据
keywordString衣服商品搜索词,与分类ID选择一项即可
catString520521001商品分类ID,具体参见:https://www.kancloud.cn/dragon9/myquan-openapi/1074796
fieldStringquanhoujia排序字段,quanhoujia:券后价,youhuiquan:优惠券金额
sortStringasc排序方式,desc,倒序,asc,正序
startpriceString5最低券后价,保留两位小数
endpriceString100最高券后价,保留两位小数
itemidStringxxxx商品ID
itemtypeStringju商品类型,item为普通淘客商品,ju为聚划算商品,tqg为淘抢购商品
start_timeString2019-02-21 13:55:23活动开始时间(仅聚划算、淘抢购有效)
end_timeString2019-02-21 13:55:23活动结束时间(仅聚划算、淘抢购有效)

返回参数

返回参数类型参数说明扩展说明
total_pageNumber总页数商品总页数
dataJSON原始单条请求文本
small_imagesJSON商品小图如没有,则默认为主图
user_typeString店铺类型0为淘宝店铺,1为天猫店铺
item_descriptionString商品推荐语或描述
coupon_infoString优惠券信息
item_urlString商品链接
commission_rateString佣金比例百分比,建议使用高佣接口重新转链
coupon_total_countNumber总优惠券数量
nickString商家旺旺昵称如没有数据,则显示为nodata
zk_final_priceString在售价
quanhoujiaString券后价使用优惠券后的价格
shop_titleString店铺名如没有数据,则显示为nodata
volumeString销量
coupon_remain_countNumber优惠券剩余数量
coupon_start_timeString优惠券开始时间
coupon_end_timeString优惠券结束时间
seller_idString店铺ID
titleString商品名
num_iidString商品ID
yilingquNumber已领取优惠券数量
activeidString优惠券ID
youhuiquanString优惠券金额
pict_urlString商品主图

Json返回示例

{"code":200,"data":[{"_id":{"$oid":"5bf3c3b3b0850109a977f09e"},"small_images":{"string":["http://img.alicdn.com/imgextra/i1/320865316/O1CN011p8lxL8G3GkCWOg_!!0-item_pic.jpg"]},"user_type":"0","item_description":"冬季羊羔绒加厚保暖裤,棉绒绒的,很厚实,穿上很暖和,保暖效果超级好,黑色比较百搭很好搭配衣服【赠运费险】","coupon_info":"\u6ee1118.00\u5143\u51cf15.00\u5143","item_url":"https://detail.tmall.com/item.htm?id=579078970674","commission_rate":20,"coupon_total_count":5000,"nick":"nodata","zk_final_price":118,"quanhoujia":103,"shop_title":"nodata","volume":103,"coupon_remain_count":5000,"coupon_start_time":"2018-11-20 16:18:52","coupon_end_time":"2018-11-26 23:59:59","seller_id":743996069,"title":"孕妇裤子秋冬外穿加绒加厚大码宽松托腹保暖棉裤冬季休闲运动裤女","num_iid":"579078970674","yilingqu":0,"activeid":"baf65d11b45143d98d1121b13d3f4bad","youhuiquan":15,"pict_url":"http://img.alicdn.com/imgextra/i1/320865316/O1CN011p8lxL8G3GkCWOg_!!0-item_pic.jpg"},{"_id":{"$oid":"5bf3c39bb0850109a977eb96"},"small_images":{"string":["http://img.alicdn.com/imgextra/i4/1704296584/O1CN011yVWAHZzzoT0boC_!!1704296584.jpg"]},"user_type":"0","item_description":"灯芯绒韩版休闲哈伦裤,超廊形藏肉,精美裁剪,优质面料,收腹提臀,宽松版型,隐藏多余赘肉,显瘦裤腿,任意百搭,自由舒展,轻松自在。","coupon_info":"\u6ee1126.00\u5143\u51cf20.00\u5143","item_url":"https://detail.tmall.com/item.htm?id=580019350336","commission_rate":30,"coupon_total_count":3000,"nick":"nodata","zk_final_price":126,"quanhoujia":106,"shop_title":"nodata","volume":297,"coupon_remain_count":3000,"coupon_start_time":"2018-11-20 16:18:52","coupon_end_time":"2018-11-24 23:59:59","seller_id":1704296584,"title":"灯芯绒裤子女宽松韩版2018新款条绒哈伦裤学生冬季显瘦长裤休闲裤","num_iid":"580019350336","yilingqu":0,"activeid":"e9f90bc2d8e14528aca02afd5ab9e44e","youhuiquan":20,"pict_url":"http://img.alicdn.com/imgextra/i4/1704296584/O1CN011yVWAHZzzoT0boC_!!1704296584.jpg"},{"_id":{"$oid":"5bf3e81fb0850135821e08b9"},"small_images":{"string":["http://gd1.alicdn.com/imgextra/i1/3705803789/O1CN011drP9XC5mmU5NA0_!!3705803789.jpg"]},"user_type":"0","item_description":"【2018新款】牛仔小脚九分裤,率性自然,能修饰腿型,显高显腿直长,侧缝加上条纹,让时髦翻倍,裤脚卷边流行设计,穿上时尚,你就是焦点。","coupon_info":"\u6ee1306.00\u5143\u51cf200.00\u5143","item_url":"https://detail.tmall.com/item.htm?id=575081616884","commission_rate":20.1,"coupon_total_count":10001,"nick":"nodata","zk_final_price":306,"quanhoujia":106,"shop_title":"nodata","volume":22,"coupon_remain_count":10000,"coupon_start_time":"2018-11-20 18:30:2","coupon_end_time":"2018-11-25 23:59:59","seller_id":3705803789,"title":"2018秋冬女装显瘦毛呢哈伦裤外穿休闲明星同款气质裤子91","num_iid":"575081616884","yilingqu":0,"activeid":"9f7cd63e36ab4f809917d343d0598d07","youhuiquan":200,"pict_url":"http://gd1.alicdn.com/imgextra/i1/3705803789/O1CN011drP9XC5mmU5NA0_!!3705803789.jpg"}],"msg":"数据获取成功"}

code/http_status说明

code/http_status说明
200数据获取成功
-1数据获取失败
401IP没有添加白名单
429访问次数超限
403关键参数丢失
405请求方式不对