淘客如何通过淘宝商品的ID查产品标题呢?有这方面的API吗?

时间:2018-06-05 22097 主题:淘客开发教程
导读《淘客如何通过淘宝商品的ID查产品标题呢?有这方面的API吗?》要点:淘客开发时,如何何通过淘宝商品的ID查产品标题呢?有这方面的接口API吗?

淘客开发时,如何何通过淘宝商品的ID查产品标题呢? 有这方面的接口API吗?

答:

有,官方接口:http://open.taobao.com/docs/api.htm?apiId=24518

这个接口可以返回商品信息,但不会返回优惠券和二合一链接。


接口调用:

$c = new TopClient;

$c->appkey = $appkey;

$c->secretKey = 

$secret;

$req = new TbkItemInfoGetRequest;

$req->setNumIids("123,456");

$req->setPlatform("1");

$req->setIp("11.22.33.43");

$resp = $c->execute($req);


返回值:


<tbk_item_info_get_response>
    <results>
        <n_tbk_item>
            <cat_name>女装</cat_name>
            <num_iid>123</num_iid>
            <title>连衣裙</title>
            <pict_url>http://gi4.md.alicdn.com/bao/uploaded/i4/xxx.jpg</pict_url>
            <small_images>
                <string>http://gi4.md.alicdn.com/bao/uploaded/i4/xxx.jpg</string>
            </small_images>
            <reserve_price>102.00</reserve_price>
            <zk_final_price>88.00</zk_final_price>
            <user_type>1</user_type>
            <provcity>杭州</provcity>
            <item_url>http://detail.m.tmall.com/item.htm?id=xxx</item_url>
            <seller_id>123</seller_id>
            <volume>1</volume>
            <nick>xx旗舰店</nick>
            <cat_leaf_name>情趣内衣</cat_leaf_name>
            <is_prepay>true</is_prepay>
            <shop_dsr>23</shop_dsr>
            <ratesum>13</ratesum>
            <i_rfd_rate>true</i_rfd_rate>
            <h_good_rate>true</h_good_rate>
            <h_pay_rate30>true</h_pay_rate30>
            <free_shipment>true</free_shipment>
        </n_tbk_item>
    </results>
</tbk_item_info_get_response>

接口返回值字段含义:

└ cat_name String 女装一级类目名称
└ num_iid Number 123商品ID
└ title String 连衣裙商品标题
└ pict_url String http://gi4.md.alicdn.com/bao/uploaded/i4/xxx.jpg商品主图
└ small_images String [] http://gi4.md.alicdn.com/bao/uploaded/i4/xxx.jpg商品小图列表
└ reserve_price String 102.00商品一口价格
└ zk_final_price String 88.00商品折扣价格
└ user_type Number 1卖家类型,0表示集市,1表示商城
└ provcity String 杭州商品所在地
└ item_url String http://detail.m.tmall.com/item.htm?id=xxx商品链接
└ seller_id Number 123卖家id
└ volume Number 130天销量
└ nick String xx旗舰店店铺名称
└ cat_leaf_name String 情趣内衣叶子类目名称
└ is_prepay Boolean true是否加入消费者保障
└ shop_dsr Number 23店铺dsr 评分
└ ratesum Number 13卖家等级
└ i_rfd_rate Boolean true退款率是否低于行业均值
└ h_good_rate Boolean true好评率是否高于行业均值
└ h_pay_rate30 Boolean true成交转化是否高于行业均值
└ free_shipment Boolean true是否包邮
转载请注明本页网址:https://www.veapi.cn/taokelianmeng/95.html
淘客/抖客/多多进宝专题

暂无淘宝客专题教程


在线
客服

会员请加QQ群交流:

微信
咨询

加微信咨询
顶部