文档中心 > API类目 > 淘宝客API

taobao.tbk.dg.image.ecognition.list.query (淘宝客【推广者】识图找优惠商品List)

淘宝客【推广者】识图找优惠商品List

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
img String 必须 base64xxxx base64需要小于200K,超出会拒绝处理,如果原始图片尺寸较大,请进行压缩。注意仅支持jpg png等常见格式图片
identifier_value String 必须 cdcadscads 用户标识的值
adzone_id Number 必须 1123 mm_xx_xx_xx pid三段式中的第三段
identifier_type String 必须 OAID_MD5 用户标识类型 IMEI_MD5、IDFA_MD5、OAID_MD5

响应参数

名称 类型 示例值 描述
data PicSearchResult 结果
  • item_infos
  • ItemInfo []
  • 商品列表
  • └ item_id
  • String
  • xxx-qqq
  • 商品ID
  • └ img
  • String
  • http://img
  • 商品图片地址
  • └ item_title
  • String
  • 测试商品
  • 商品标题
  • └ sale_price
  • String
  • 112
  • 售价
  • └ zk_final_price
  • String
  • 111
  • 到手价
  • └ cps_url
  • String
  • https://
  • 跳转地址
  • └ coupon_url
  • String
  • https://
  • 领券地址
  • └ shop_type
  • String
  • 天猫
  • 店铺类型
  • └ provcity
  • String
  • 地区
  • 地区
  • └ coupon
  • String
  • 5
  • 优惠券信息
  • └ icon_list
  • String []
  • 营销标签
result_msg String success 结果描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkDgImageEcognitionListQueryRequest req = new TbkDgImageEcognitionListQueryRequest();
req.setImg("base64xxxx");
req.setIdentifierValue("cdcadscads");
req.setAdzoneId(1123L);
req.setIdentifierType("OAID_MD5");
TbkDgImageEcognitionListQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tbk_dg_image_ecognition_list_query_response>
    <data>
        <item_infos>
            <item_info>
                <item_id>xxx-qqq</item_id>
                <img>http://img</img>
                <item_title>测试商品</item_title>
                <sale_price>112</sale_price>
                <zk_final_price>111</zk_final_price>
                <cps_url>https://</cps_url>
                <coupon_url>https://</coupon_url>
                <shop_type>天猫</shop_type>
                <provcity>地区</provcity>
                <coupon>5</coupon>
            </item_info>
        </item_infos>
    </data>
    <result_msg>success</result_msg>
</tbk_dg_image_ecognition_list_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部