海外淘宝客物料搜索API
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
is_tmall | Boolean | 可选 | false | 商品筛选-是否天猫商品。true表示属于天猫商品,false或不设置表示不限 | |
unid | String | 可选 | 123456 | 渠道自定义参数 | |
lock_rate_start_time | Number | 可选 | 1567440000000 | 锁佣开始时间 | |
page_size | Number | 可选 | 20 |
|
页大小,默认20,1~100 |
adzone_id | Number | 必须 | 12345678 | mm_xxx_xxx_12345678三段式的最后一段数字 | |
platform | Number | 可选 | 1 | 链接形式:1:PC,2:无线,默认:1 | |
has_coupon | Boolean | 可选 | false | 优惠券筛选-是否有优惠券。true表示该商品有优惠券,false或不设置表示不限 | |
start_tk_rate | Number | 可选 | 1234 | 商品筛选-淘客佣金比率下限。如:1234表示12.34% | |
need_prepay | Boolean | 可选 | true | 商品筛选-是否加入消费者保障。true表示加入,false或不设置表示不限 | |
include_pay_rate30 | Boolean | 可选 | true | 商品筛选(特定媒体支持)-成交转化是否高于行业均值。True表示大于等于,false或不设置表示不限 | |
page_no | Number | 可选 | 1 |
|
第几页,默认:1 |
cat | String | 可选 | 16,18 | 商品筛选-后台类目ID。用,分割,最大10个,该ID可以通过taobao.itemcats.get接口获取到 | |
ucrowd_rank_items | Ucrowdrankitems | 可选 | 物料评估-商品列表 | ||
|
|||||
lock_rate_end_time | Number | 可选 | 1567440000000 | 锁佣结束时间 | |
ucrowd_id | Number | 可选 | 1 | 人群ID,仅适用于物料评估场景material_id=41377 | |
start_price | Number | 可选 | 10 | 商品筛选-折扣价范围下限。单位:元 | |
device_type | String | 可选 | IMEI | 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID | |
start_ka_tk_rate | Number | 可选 | 1234 | 商品筛选-KA媒体淘客佣金比率下限。如:1234表示12.34% | |
include_rfd_rate | Boolean | 可选 | true | 商品筛选(特定媒体支持)-退款率是否低于行业均值。True表示大于等于,false或不设置表示不限 | |
end_tk_rate | Number | 可选 | 1234 | 商品筛选-淘客佣金比率上限。如:1234表示12.34% | |
get_topn_rate | Number | 可选 | 0 | 是否获取前N件佣金信息 0否,1是,其他值否 | |
device_encrypt | String | 可选 | MD5 | 智能匹配-设备号加密类型:MD5 | |
end_price | Number | 可选 | 10 | 商品筛选-折扣价范围上限。单位:元 | |
sort | String | 可选 | tk_rate_des | 排序_des(降序),排序_asc(升序),销量(total_sales),淘客佣金比率(tk_rate), 累计推广量(tk_total_sales),总支出佣金(tk_total_commi),价格(price),匹配分(match) | |
material_id | Number | 可选 | 2836 | 不传时默认物料id=2836;如果直接对消费者投放,可使用官方个性化算法优化的搜索物料id=17004 | |
is_overseas | Boolean | 可选 | false | 商品筛选-是否海外商品。true表示属于海外商品,false或不设置表示不限 | |
itemloc | String | 可选 | 杭州 | 商品筛选-所在地 | |
q | String | 可选 | 女装 | 商品筛选-查询词 | |
npx_level | Number | 可选 | 2 | 商品筛选-牛皮癣程度。取值:1不限,2无,3轻微 | |
site | String | 可选 | TW | 站点标识:TW(台湾);HK(香港);MY(马来);SG(新加坡);AU(澳大利亚);CA(加拿大);MO(澳门);KR(韩国) | |
include_good_rate | Boolean | 可选 | true | 商品筛选-好评率是否高于行业均值。True表示大于等于,false或不设置表示不限 | |
end_ka_tk_rate | Number | 可选 | 1234 | 商品筛选-KA媒体淘客佣金比率上限。如:1234表示12.34% | |
create_tpwd | Boolean | 可选 | false |
|
是否透出淘口令,透出会影响接口性能 |
device_value | String | 可选 | xxx | 智能匹配-设备号加密后的值(MD5加密需32位小写) | |
start_dsr | Number | 可选 | 10 | 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
total_results | Number | 1212 | 搜索到符合条件的结果总数 |
result_list | ItemDTO [] | resultList | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); OvsTbkDgMaterialOptionalGetRequest req = new OvsTbkDgMaterialOptionalGetRequest(); req.setIsTmall(false); req.setUnid("123456"); req.setLockRateStartTime(1567440000000L); req.setPageSize(20L); req.setAdzoneId(12345678L); req.setPlatform(1L); req.setHasCoupon(false); req.setStartTkRate(1234L); req.setNeedPrepay(true); req.setIncludePayRate30(true); req.setPageNo(1L); req.setCat("16,18"); OvsTbkDgMaterialOptionalGetRequest.Ucrowdrankitems obj1 = new OvsTbkDgMaterialOptionalGetRequest.Ucrowdrankitems(); obj1.setCommirate(1234L); obj1.setItemId("542808901898"); obj1.setPrice("10.12"); req.setUcrowdRankItems(obj1); req.setLockRateEndTime(1567440000000L); req.setUcrowdId(1L); req.setStartPrice(10L); req.setDeviceType("IMEI"); req.setStartKaTkRate(1234L); req.setIncludeRfdRate(true); req.setEndTkRate(1234L); req.setGetTopnRate(0L); req.setDeviceEncrypt("MD5"); req.setEndPrice(10L); req.setSort("tk_rate_des"); req.setMaterialId(2836L); req.setIsOverseas(false); req.setItemloc("杭州"); req.setQ("女装"); req.setNpxLevel(2L); req.setSite("TW"); req.setIncludeGoodRate(true); req.setEndKaTkRate(1234L); req.setCreateTpwd(false); req.setDeviceValue("xxx"); req.setStartDsr(10L); OvsTbkDgMaterialOptionalGetResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<ovs_tbk_dg_material_optional_get_response> <total_results>1212</total_results> <result_list> <item_d_t_o> <uv_sum_pre_sale>23</uv_sum_pre_sale> <white_image>https://img.alicdn.com/bao/uploaded/i4/745957850/TB1WzSRmV9gSKJjSspbXXbeNXXa_!!0-item_pic.jpg</white_image> <price_after_coupon>60.00</price_after_coupon> <lock_rate_start_time>1567440000000</lock_rate_start_time> <short_title>xxsd</short_title> <coupon_id>d62db1ab8d9546b1bf0ff49bda5fc33b</coupon_id> <coupon_amount>10.00</coupon_amount> <seller_id>232323</seller_id> <price>102.00</price> <cpa_reward_type>0 1</cpa_reward_type> <coupon_start_time>2017-10-29</coupon_start_time> <is_brand_flash_sale>1</is_brand_flash_sale> <item_description>季凉被 全棉亲肤</item_description> <lock_rate_end_time>1567440000000</lock_rate_end_time> <level_one_category_id>20</level_one_category_id> <level_one_category_name>女装</level_one_category_name> <coupon_info>满299元减20元</coupon_info> <maifan_promotion> <maifan_promotion_discount>200</maifan_promotion_discount> <maifan_promotion_condition>100</maifan_promotion_condition> <maifan_promotion_end_time>1559750399000</maifan_promotion_end_time> <maifan_promotion_start_time>1559750399000</maifan_promotion_start_time> </maifan_promotion> <presale_start_time>1567440000000</presale_start_time> <tmall_play_activity_info>前n件x折</tmall_play_activity_info> <topn_info> <topn_quantity>3000</topn_quantity> <topn_total_count>3000</topn_total_count> <topn_rate>30</topn_rate> <topn_end_time>1937297392332</topn_end_time> <topn_start_time>1937297392332</topn_start_time> </topn_info> <hot_flag>1</hot_flag> <coupon_total_count>23223</coupon_total_count> <volume>123</volume> <item_id>5678899993</item_id> <match_score>10.0</match_score> <x_id>uESS0mv8JvfJRMKlIgCD5At9VuHVBXoqBRihfQlo4ybLiKygRlqiN4eoxoZDfe38uSogWy6GB971jD2N8tLuuc</x_id> <reward_info>1</reward_info> <user_type>1</user_type> <click_url>s.click.xxx</click_url> <commission_rate>1550表示15.5%</commission_rate> <reserve_price>102.00</reserve_price> <include_dxjh>false</include_dxjh> <presale_deposit>100</presale_deposit> <superior_brand>1</superior_brand> <title>毛呢阔腿裤港味复古女裤子秋冬九分裤萝卜裤显瘦高腰韩版2017新款</title> <category_name>连衣裙</category_name> <coupon_share_url>s.click.xxx</coupon_share_url> <zk_final_price>88.00</zk_final_price> <nick>旗舰店</nick> <commi_score>20.0</commi_score> <tk_total_sales>11</tk_total_sales> <presale_end_time>1567440000000</presale_end_time> <presale_tail_end_time>1567440000000</presale_tail_end_time> <shop_dsr>13</shop_dsr> <commission>0.52</commission> <include_mkt>false</include_mkt> <coupon_start_fee>29.00</coupon_start_fee> <coupon_remain_count>111</coupon_remain_count> <sale_price>168</sale_price> <pintuan_info_dto> <jdd_price>5</jdd_price> <ostime>2018-08-21 11:23:43</ostime> <orig_price>25</orig_price> <total_stock>5555</total_stock> <stock>4444</stock> <oetime>2018-08-21 11:23:43</oetime> <jdd_num>10</jdd_num> <sell_num>1111</sell_num> </pintuan_info_dto> <lock_rate>1567440000000</lock_rate> <pict_url>https://img.alicdn.com/bao/uploaded/i4/745957850/TB1WzSRmV9gSKJjSspbXXbeNXXa_!!0-item_pic.jpg</pict_url> <kuadian_promotion_info>["每100减20","每200减50"]</kuadian_promotion_info> <presale_tail_start_time>1567440000000</presale_tail_start_time> <real_post_fee>0.00</real_post_fee> <commission_type>MKT表示营销计划,SP表示定向计划,COMMON表示通用计划</commission_type> <coupon_end_time>2021-10-29</coupon_end_time> <bybt_info> <bybt_end_time>1559750399000</bybt_end_time> <bybt_lowest_price>200.00</bybt_lowest_price> <bybt_pic_url>//img.alicdn.com/bao/uploaded/i4/745957850/TB1WzSRmV9gSKJjSspbXXbeNXXa_!!0-item_pic.jpg</bybt_pic_url> <bybt_brand_logo>//img.alicdn.com/bao/uploaded/i4/745957850/TB1WzSRmV9gSKJjSspbXXbeNXXa_!!0-item_pic.jpg</bybt_brand_logo> <bybt_coupon_amount>10.00</bybt_coupon_amount> <bybt_start_time>1559750399000</bybt_start_time> <bybt_show_price>100.00</bybt_show_price> </bybt_info> <presale_discount_fee_text>付定金立减5元</presale_discount_fee_text> <provcity>杭州</provcity> <shop_title>xx旗舰店</shop_title> <category_id>162201</category_id> <ysyl_info_dto> <ysyl_tlj_use_start_time>2019-11-10 21:59:59</ysyl_tlj_use_start_time> <ysyl_tlj_face>0.6</ysyl_tlj_face> <ysyl_commission_rate>2030(表示20.3%)</ysyl_commission_rate> <ysyl_tlj_send_time>2019-11-10 21:59:59</ysyl_tlj_send_time> <ysyl_tlj_use_end_time>2019-11-10 21:59:59</ysyl_tlj_use_end_time> <ysyl_click_url>https://uland.taobao.com/coupon/edetail?e=nqUNB1NOF3Bt3vqbdXnGloankzPYmeEFkgNrw6YHQf9pZTj41Orn8MwBAs06HAOzqQomYNedOiHDYPmqkFXqLR0HgBdG%2FDDL%2F1M%2FBw7Sf%2FesGXLf%2BqX4cbeC%2F2cR0p0NlWH0%2BknxpnCJJP%2FQkZSsyo1HvKjXo4uz&pid=mm_26381042_12970066_52864659&af=1</ysyl_click_url> </ysyl_info_dto> <item_url>https://item.taobao.com/item.htm?id=564591813536</item_url> <tpwd>38¥CXlf2X6RvlF¥ https://m.tb.cn/h.flR407l 安安粉刺洗面奶200g 去痘去黑头洁面乳温和清洁国货护肤品男女</tpwd> <info_dxjh>{"19013551":"2850","74510538":"2550"}</info_dxjh> </item_d_t_o> </result_list> </ovs_tbk_dg_material_optional_get_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|---|---|
50001 | 该item_id对应宝贝已下架或非淘客宝贝 | 更换商品查询 |
30002 | 参数q与cat不能都为空 | 参数q与cat不能都为空 |