900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > 淘宝tmall 1688 京东 拼多多等平台以图搜索商品接口采集方法

淘宝tmall 1688 京东 拼多多等平台以图搜索商品接口采集方法

时间:2020-10-20 02:14:59

相关推荐

淘宝tmall 1688 京东 拼多多等平台以图搜索商品接口采集方法

以图搜索商品接口采集方法:

1.请求参数

请求参数:imgid=http://g-/img/bao/uploaded/i4/O1CN01IDpcD81zHbpHs1YgT_!!211456689.jpg&cat=

参数说明:imgid:图片地址(支持淘宝或天猫图片地址,外部地址先调用上传图片(upload_img)接口,返回图片地址)

如:/imgextra/i3/15353738/TB2HDHAqN9YBuNjy0FfXXXIsVXa_!!15353738-0-beehive-scenes.jpg

2.公共参数

3.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python…)

# coding:utf-8"""Compatible for python2.x and python3.xrequirement: pip install requests"""from __future__ import print_functionimport requests# 请求示例 url 默认请求参数已经做URL编码url = "https://wx19970108018/taobao/item_search_img/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&imgid=http://g-/img/bao/uploaded/i4/O1CN01IDpcD81zHbpHs1YgT_!!211456689.jpg&cat="headers = {"Accept-Encoding": "gzip","Connection": "close"}if __name__ == "__main__":r = requests.get(url, headers=headers)json_obj = r.json()print(json_obj)

4.响应示例

{"items": {"pagecount": 1,"total_results": 31,"real_total_results": 31,"item": [{"title": "篮球实战专业训练男女中长筒夏毛巾底冷感数字潮流袜子球星科比袜","pic_url": "http://g./img/bao/uploaded/i4//i4/2228990050/O1CN01zJZaVh1CEwZVcNStX_!!0-saturn_solar.jpg","promotion_price": "21","price": "21","sales": 18,"num_iid": "678834960739","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "常州","detail_url": "///item.htm?id=678834960739","cid": null},{"title": "一双起订球队个人专属个性文字图案号码加厚立体吸汗篮球袜定制","pic_url": "http://g./img/bao/uploaded/i4/O1CN01XY1RWZ1X42yPwiLfQ_!!3182112869.jpg","promotion_price": "15","price": "15","sales": 13,"num_iid": "615604968155","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "绍兴","detail_url": "///item.htm?id=615604968155","cid": "50017261"},{"title": "4双 中厚款专业篮球袜子中筒运动纯棉潮袜街头工装男女儿童学生","pic_url": "http://g./img/bao/uploaded/i4/O1CN01solxba1HJ8BRbEvtg_!!120820736.jpg","promotion_price": "29.8","price": "29.8","sales": 5,"num_iid": "624404446361","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "重庆","detail_url": "///item.htm?id=624404446361","cid": "50006846"},{"title": "STANCE 儿童篮球袜运动中筒袜时尚运动袜男女袜子FEEL100","pic_url": "http://g./img/bao/uploaded/i4/O1CN01kWrhWi1tUXWf9k33T_!!2958825905.jpg","promotion_price": "138","price": "138","sales": 11,"num_iid": "674328104659","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "上海","detail_url": "///item.htm?id=674328104659","cid": "50017261"},{"title": "St专业篮球袜精英篮球袜美国队中筒毛巾底男袜防臭吸汗加厚运动袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN01JJ0Df91ynNswhTrvH_!!2212656286623.jpg","promotion_price": "30.8","price": "30.8","sales": 1,"num_iid": "669956799574","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "杭州","detail_url": "///item.htm?id=669956799574","cid": "50017261"},{"title": "篮人篮球袜男长筒精英袜专业运动袜高帮加厚毛巾底实战跑步袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01M2xwbQ1GQAbzMEuTX_!!2825340616.jpg","promotion_price": "29","price": "29","sales": 0,"num_iid": "631479759070","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "泉州","detail_url": "///item.htm?id=631479759070","cid": "50017261"},{"title": "斗牛专业实战球员版精英篮球袜子男中高筒加厚毛巾底高帮运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01VTawJd21LqsWGi84J_!!1983416969.jpg","promotion_price": "11.2","price": "11.2","sales": 158,"num_iid": "647075735380","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=647075735380","cid": "50017261"},{"title": "精英篮球袜子男短袜夏季薄款中筒美式实战毛巾底专业跑步运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01l5Yeex24zBkhH55PQ_!!2207298697461.jpg","promotion_price": "8.4","price": "8.4","sales": 11,"num_iid": "611069068828","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=611069068828","cid": "50017261"},{"title": "李宁篮球袜 赞助CBA联赛全明星运动袜专业训练袜男 高筒毛圈加厚","pic_url": "http://g./img/bao/uploaded/i4/TB2zAp_slNkpuFjy0FaXXbRCVXa_!!718171966.jpg","promotion_price": "15.5","price": "15.5","sales": 1,"num_iid": "545324064298","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "上海","detail_url": "///item.htm?id=545324064298","cid": "81801"},{"title": "篮球袜子中长筒短筒高帮跑步袜男士户外专业运动加厚毛巾底精英袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN01tiizk31ph7k5Vutd4_!!271045391.jpg","promotion_price": "6.8","price": "6.8","sales": 7,"num_iid": "600321872541","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "杭州","detail_url": "///item.htm?id=600321872541","cid": "50017261"},{"title": "夏季篮球袜男中筒专业羽毛球袜实战防滑跑步健身袜毛巾底运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01yJFfPs21eAnOHeMj6_!!3496367009.jpg","promotion_price": "24","price": "24","sales": 2,"num_iid": "679452078187","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=679452078187","cid": "50017261"},{"title": "库里30号儿童袜成年毛巾底篮球袜中高筒专业精英袜球星同号篮球袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN01l4uY4F1ynNsh0abNx_!!2212656286623.jpg","promotion_price": "19.9","price": "19.9","sales": 0,"num_iid": "669165045112","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "长沙","detail_url": "///item.htm?id=669165045112","cid": "50017261"},{"title": "UA库里8联名篮球袜子男中筒专业芝麻街实战毛巾底勇士精英Nba高筒","pic_url": "http://g./img/bao/uploaded/i4/TB2X.okp4uTBuNkHFNRXXc9qpXa_!!2770454550.jpg","promotion_price": "19.9","price": "19.9","sales": 66,"num_iid": "647766251110","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "杭州","detail_url": "///item.htm?id=647766251110","cid": "50017261"},{"title": "羽毛球袜子男篮球美式专业实战精英中筒袜秋冬季骑行跑步运动袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN013gQW9q1SzgrADx3DS_!!2212372842318.jpg","promotion_price": "21.19","price": "21.19","sales": 3,"num_iid": "681156817555","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "绍兴","detail_url": "///item.htm?id=681156817555","cid": "50006846"},{"title": "nba篮球袜子男中长筒高帮防滑跑步袜专业运动袜加厚毛巾底精英袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN014fih0e1ph7k55hIpc_!!271045391.jpg","promotion_price": "4.8","price": "4.8","sales": 14,"num_iid": "599809806834","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "杭州","detail_url": "///item.htm?id=599809806834","cid": "50017261"},{"title": "球员版精英篮球袜男女中长筒高帮专业毛巾底棉花糖闪击七运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01Vic8Wa1TJNmyHB6Pk_!!1575692361.jpg","promotion_price": "16","price": "16","sales": 20,"num_iid": "643708468558","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "杭州","detail_url": "///item.htm?id=643708468558","cid": "50015374"},{"title": "男秋冬跑步篮球袜中筒高筒足球加厚毛巾底篮球袜子男运动袜中高筒","pic_url": "http://g./img/bao/uploaded/i4/O1CN01wtJzt51R4bffJuJZ1_!!1970922058.jpg","promotion_price": "25","price": "25","sales": 1,"num_iid": "606054584068","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=606054584068","cid": "50017261"},{"title": "儿童成年运动袜篮球袜中高筒专业精英袜库里30号袜球星同号篮球袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN018f4IHg27Z21e0Ouzf_!!707747810.jpg","promotion_price": "29.4","price": "29.4","sales": 1,"num_iid": "673600294372","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "台州","detail_url": "///item.htm?id=673600294372","cid": "50013204"},{"title": "斗牛篮球袜男中长筒实战球员版专业短袜高帮加厚毛巾底精英运动袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN01VgmkVF21Lqt5NlqDn_!!1983416969.jpg","promotion_price": "6.8","price": "6.8","sales": 1,"num_iid": "655739838575","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=655739838575","cid": "50017261"},{"title": "包邮篮球袜毛巾底训练运动袜长筒中筒科比库里欧文精英袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN017omHSM1bBbzChQV2e_!!3463663427.jpg","promotion_price": "11","price": "11","sales": 5,"num_iid": "641902863701","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "衡水","detail_url": "///item.htm?id=641902863701","cid": "50017261"},{"title": "篮球袜子男科比詹姆斯杜兰特球员毛巾底高帮防臭专业运动长筒袜qw","pic_url": "http://g./img/bao/uploaded/i4/O1CN01D9WCM31ciQ3MgQknV_!!3551793634.jpg","promotion_price": "16.8","price": "16.8","sales": 48,"num_iid": "672390666724","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "佛山","detail_url": "///item.htm?id=672390666724","cid": "50017261"},{"title": "准胜篮球袜男中筒高帮长袜美式毛巾底专业球员版实战精英运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01DQ8zQH24zBk1qAgyI_!!2207298697461.jpg","promotion_price": "13","price": "13","sales": 151,"num_iid": "649590061904","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=649590061904","cid": "50017261"},{"title": "st nba精英高帮篮球袜精英袜联名款毛巾底防滑缓震运动比赛","pic_url": "http://g./img/bao/uploaded/i4/O1CN01oVIXDB1aKTzJ7SIL8_!!251133311.jpg","promotion_price": "41.1","price": "41.1","sales": 1,"num_iid": "624515685398","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "宜昌","detail_url": "///item.htm?id=624515685398","cid": "50017261"},{"title": "斗牛2.0篮球袜子男精英高帮运动实战专业长中筒精英袜子训练美式","pic_url": "http://g./img/bao/uploaded/i4/O1CN0100cOWb2LY1nuMmtN5_!!3937219703.jpg","promotion_price": "16.8","price": "16.8","sales": 9,"num_iid": "683053576425","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "杭州","detail_url": "///item.htm?id=683053576425","cid": "50017261"},{"title": "迪卡侬专业篮球袜男高帮中长筒球员版毛巾底美式斗牛实战精英袜运","pic_url": "http://g./img/bao/uploaded/i4/O1CN01G0B4fO1WBXwoQROSN_!!3033622750.jpg","promotion_price": "40","price": "40","sales": 1,"num_iid": "677740817308","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "北京","detail_url": "///item.htm?id=677740817308","cid": "50017261"},{"title": "专业实战球员版篮球袜子男高帮中筒毛巾底美式斗牛精英袜运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01LC0U5Y23PB2c2zsaB_!!4006617247.jpg","promotion_price": "24.8","price": "24.8","sales": 1,"num_iid": "673729631138","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "金华","detail_url": "///item.htm?id=673729631138","cid": "50015374"},{"title": "UZIS清货 拓荒者飞翼专业篮球袜男高筒男实战精英袜长筒运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01ure9Al240H3GY8p8J_!!909767328.png","promotion_price": "29.99","price": "29.99","sales": 1,"num_iid": "615361789140","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=615361789140","cid": "50017261"},{"title": "准者球员实战专业篮球球袜男中筒高帮防滑毛巾底精英跑步运动袜子","pic_url": "http://g./img/bao/uploaded/i4/O1CN01ti6eKd1TrH7ClCL0p_!!2181532435.jpg","promotion_price": "22.9","price": "22.9","sales": 267,"num_iid": "636707057961","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "泉州","detail_url": "///item.htm?id=636707057961","cid": "50015374"},{"title": "精英袜高帮篮球袜子男加厚毛巾底专业运动长筒中筒毛巾袜夏季","pic_url": "http://g./img/bao/uploaded/i4/O1CN011WgXPf1tqWFtWxVDL_!!2252305953.png","promotion_price": "15.3","price": "15.3","sales": 0,"num_iid": "582447606838","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "广州","detail_url": "///item.htm?id=582447606838","cid": "50017261"},{"title": "库里勇士队汤普森篮球袜男高帮精英实战curry长筒运动专业毛巾袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN01iInesG1pYskQxCMeA_!!552855373.jpg","promotion_price": "25","price": "25","sales": 4,"num_iid": "648241921818","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "青岛","detail_url": "///item.htm?id=648241921818","cid": "50017261"},{"title": "实战专业篮球袜子毛巾底高筒运动精英男女中筒高帮长筒加厚训练袜","pic_url": "http://g./img/bao/uploaded/i4/O1CN01ljafP01GPiG9wxMH2_!!2878470615.jpg","promotion_price": "7.5","price": "7.5","sales": 0,"num_iid": "644171077024","post_fee": null,"sample_id": "","seller_nick": null,"is_tmall": "false","area": "宜春","detail_url": "///item.htm?id=644171077024","cid": "50017261"}],"data_from": "app_t"},"error_code": "0000","reason": "ok","secache": "805dd061d51a733c7a85711ba0a36267","secache_time": 1663661156,"secache_date": "-09-20 16:05:56","translate_status": "","translate_time": 0,"language": {"default_lang": "cn","current_lang": "cn"},"error": "","cache": 0,"api_info": "today:122 max:10100 all[228=122+54+52];expires:2030-12-31","execution_time": "2.937","server_time": "Beijing/-09-20 16:05:56","client_ip": "106.6.39.60","call_args": {"imgid": "http://g-/img/bao/uploaded/i4/O1CN01IDpcD81zHbpHs1YgT_!!211456689.jpg"},"api_type": "taobao","translate_language": "zh-CN","translate_engine": "google_new","server_memory": "6.26MB","request_id": "gw-1.63297461a036b","last_id": "1228192943"}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。