以下是行业内了解到的一些情况,本帖只展示部分代码
以淘宝为例
item_get-获得淘宝产品详情测试
Oneboun测试
请求参数
请求参数:num_iid=520813250866&is_promotion=1
参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价
请求示例
CurlPHPPHPsdkJAVAC#Python
<?php// 请求示例 url 默认请求参数已经URL编码处理// 本示例代码未加密secret参数明文传输,若要加密请参考:/help/demo/sdk/demo-sign.php$method = "GET";$url = "https://api-/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866&is_promotion=1";$curl = curl_init();curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);curl_setopt($curl, CURLOPT_FAILONERROR, false);curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);curl_setopt($curl, CURLOPT_HEADER, true);curl_setopt($curl, CURLOPT_ENCODING, "gzip");var_dump(curl_exec($curl));?>
Request address:https://api-/taobao/item_get/?key=&&num_iid=678037674324&is_promotion=1&&lang=zh-CN&secret=---------------------------------------Result Object:---------------------------------------{"item": {"num_iid": "678037674324","title": "【享6期免息】realme真我GT2大师探索版全新骁龙8+旗舰芯新一代x7独显芯片100W秒充5G手机旗舰学生官方正品","desc_short": "","price": "3499","orginal_price": "3799.00","nick": "realme官方旗舰店","num": "200","pic_url": "///imgextra/i1/266936524/O1CN0163sGFe1y42hdkaAyO_!!0-item_pic.jpg","brand": "realme(手机)","brandId": "2965867101","rootCatId": "1512","cid": "1512","crumbs": [],"detail_url": "/item.htm?id=678037674324","desc": "<p><img src=\"/imgextra/i2/266936524/O1CN01sFKsDt1y42heHN6zQ_!!266936524.jpg\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN016FIxXV1y42hXzNVDY_!!266936524.jpg\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01Pkuhpn1y42hcnVxQw_!!266936524.jpg\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN01JqJPyG1y42hjWPMjL_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN01js0wq31y42hTimRqC_!!266936524.jpg\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01SyPgAZ1y42UQszlpl_!!266936524.jpg\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN01pHQaQ11y42hYaCUvT_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN01wGh24E1y42hYaBgyB_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN01VSMEQt1y42hRotcmu_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN01aCfQSr1y42hTasbRE_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN01GfOXxM1y42hLJXdtM_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01OiIpyC1y42hPuWoq8_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN011uHCfN1y42hNhUckH_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN01XUn8Oa1y42hNaYYm1_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN01l131aL1y42hQjB2HY_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01RpiSRK1y42hQjCqYK_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN012crmli1y42hYaChLg_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN01F7E6s31y42hPuaqK5_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN01d6TcK01y42hPuZMsP_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01Orvlcw1y42hYaAHdv_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01bLNKuq1y42hGQwfYd_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN016t0BRY1y42hNaaZWH_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01cIazYL1y42hLJWhjE_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN011Cb7rh1y42hTaswHv_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01T7GYlc1y42hMqceI4_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01LwMfwf1y42hSHbUlh_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN01DgQKpW1y42hXMr10m_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01IEEtXc1y42hZR8QvV_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN01UXiHRW1y42hSHbpY9_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN01WxP5Qa1y42hGQws2u_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN01ZsU72R1y42hQ1dUU7_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN01VBLrU81y42hXMrkks_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN016JvctA1y42hPuaAn6_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i3/266936524/O1CN01cemrcg1y42hTasbVk_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN01FeJlLG1y42hQ1dMBK_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN01aHw7q61y42hUWs7ln_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01GrxtSL1y42hUWuwOz_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i1/266936524/O1CN01rA1g2c1y42hRowi97_!!266936524.png\" align=\"absmiddle\" /><img src=\"/imgextra/i2/266936524/O1CN01HAIP7E1y42YFVvTiA_!!266936524.jpg\" align=\"absmiddle\" /><img src=\"/imgextra/i4/266936524/O1CN013mWCxB1y42gAC5jfE_!!266936524.jpg\" align=\"absmiddle\" /></p><img src=\"/i.php?t.png&rid=gw-4.62e4855412e85&p=2526969020&k=96463&t=1659143509\" style=\"display:none\" />","item_imgs": [{"url": "///imgextra/i1/266936524/O1CN0163sGFe1y42hdkaAyO_!!0-item_pic.jpg"},{"url": "///imgextra/i4/266936524/O1CN01nRsTmP1y42hmFnjjZ_!!266936524.jpg"},{"url": "///imgextra/i2/266936524/O1CN011ik7qM1y42hSkP8Ac_!!266936524.jpg"},{"url": "///imgextra/i3/266936524/O1CN01wUXP1y1y42hQwxFYc_!!266936524.jpg"},{"url": "///imgextra/i1/266936524/O1CN01pgYEvl1y42hZN6zqD_!!266936524.jpg"}],"item_weight": 0,"location": "广东东莞","post_fee": " 免运费","express_fee": 0,"ems_fee": 0,"shipping_to": "","has_discount": "true","video": [],"is_virtual": "","sample_id": "","is_promotion": "true","prop_imgs": {"prop_img": [{"properties": "1627207:21560582070","url": "///imgextra/O1CN012laaji26ATBVEHMp2_!!6000000007621-0-remus.jpg"},{"properties": "1627207:3617288","url": "///imgextra/O1CN01RrRNqw1yuFqevBeRj_!!6000000006638-0-remus.jpg"},{"properties": "1627207:606792517","url": "///imgextra/O1CN01N63F3a1Rwebap6fWz_!!6000000002176-0-remus.jpg"}]},"property_alias": "","props": [{"name": "网络类型","value": "5G全网通"},{"name": "品牌","value": "realme(手机)"},{"name": "型号","value": "真我gt2大师探索版"},{"name": "售后服务","value": "全国联保"},{"name": "分辨率","value": "FHD+ 2412*1080"},{"name": "机身颜色","value": "硬箱·旷野 冰岛 苍岩"},{"name": "套餐类型","value": "官方标配"},{"name": "后置摄像头","value": "主摄5000万+超广角5000万+显微镜200万"},{"name": "生产企业","value": "RealMe重庆移动通信有限公司"},{"name": "存储容量","value": "8GB+128GB 8GB+256GB 12GB+256GB"},{"name": "屏幕材质","value": "AMOLED"},{"name": "手机类型","value": "游戏手机 , 智能手机 , 拍照手机 , 直板手机 , 5G手机"},{"name": "摄像头类型","value": "四摄像头(前一后三)"},{"name": "网络模式","value": "双卡双待"},{"name": "电信设备进网许可证编号","value": "00-D545-228509"},{"name": "屏幕刷新率","value": "120Hz"},{"name": "版本类型","value": "中国大陆"},{"name": "CPU品牌","value": "高通"},{"name": "上市时间","value": "-07"},{"name": "屏幕尺寸","value": "6.7英寸"},{"name": "电池容量","value": "5000mAh"},{"name": "CPU型号","value": "第一代骁龙8+旗舰芯片"},{"name": "充电功率","value": "100W"},{"name": "前置摄像头像素","value": "1600万像素"},{"name": "3C证书编号","value": "202606478497"}],"props_name": "1627207:21560582070:机身颜色:硬箱·旷野;1627207:3617288:机身颜色:冰岛;1627207:606792517:机身颜色:苍岩;5919063:6536025:套餐类型:官方标配;12304035:145747:存储容量:8GB+128GB;12304035:1708543179:存储容量:8GB+256GB;12304035:3017674673:存储容量:12GB+256GB;122216431:27772:版本类型:中国大陆","total_sold": 3260000,"skus": {"sku": [{"price": "3499","total_price": 0,"orginal_price": "3499","properties": "1627207:21560582070;5919063:6536025;12304035:145747;122216431:27772","properties_name": "1627207:21560582070:机身颜色:硬箱·旷野;5919063:6536025:套餐类型:官方标配;12304035:145747:存储容量:8GB+128GB;122216431:27772:版本类型:中国大陆","quantity": "105","sku_id": "4864639360960"},{"price": "3799","total_price": 0,"orginal_price": "3799","properties": "1627207:21560582070;5919063:6536025;12304035:1708543179;122216431:27772","properties_name": "1627207:21560582070:机身颜色:硬箱·旷野;5919063:6536025:套餐类型:官方标配;12304035:1708543179:存储容量:8GB+256GB;122216431:27772:版本类型:中国大陆","quantity": "200","sku_id": "4864639360961"},{"price": "3999","total_price": 0,"orginal_price": "3999","properties": "1627207:21560582070;5919063:6536025;12304035:3017674673;122216431:27772","properties_name": "1627207:21560582070:机身颜色:硬箱·旷野;5919063:6536025:套餐类型:官方标配;12304035:3017674673:存储容量:12GB+256GB;122216431:27772:版本类型:中国大陆","quantity": "200","sku_id": "4864639360962"},{"price": "3799","total_price": 0,"orginal_price": "3799","properties": "1627207:3617288;5919063:6536025;12304035:1708543179;122216431:27772","properties_name": "1627207:3617288:机身颜色:冰岛;5919063:6536025:套餐类型:官方标配;12304035:1708543179:存储容量:8GB+256GB;122216431:27772:版本类型:中国大陆","quantity": "177","sku_id": "4866907452407"},{"price": "3999","total_price": 0,"orginal_price": "3999","properties": "1627207:3617288;5919063:6536025;12304035:3017674673;122216431:27772","properties_name": "1627207:3617288:机身颜色:冰岛;5919063:6536025:套餐类型:官方标配;12304035:3017674673:存储容量:12GB+256GB;122216431:27772:版本类型:中国大陆","quantity": "171","sku_id": "4866907452408"},{"price": "3999","total_price": 0,"orginal_price": "3999","properties": "1627207:606792517;5919063:6536025;12304035:3017674673;122216431:27772","properties_name": "1627207:606792517:机身颜色:苍岩;5919063:6536025:套餐类型:官方标配;12304035:3017674673:存储容量:12GB+256GB;122216431:27772:版本类型:中国大陆","quantity": "136","sku_id": "4866907452409"}]},"seller_id": "266936524","shop_id": "379355248","props_list": {"1627207:21560582070": "机身颜色:硬箱·旷野","1627207:3617288": "机身颜色:冰岛","1627207:606792517": "机身颜色:苍岩","5919063:6536025": "套餐类型:官方标配","12304035:145747": "存储容量:8GB+128GB","12304035:1708543179": "存储容量:8GB+256GB","12304035:3017674673": "存储容量:12GB+256GB","122216431:27772": "版本类型:中国大陆"},"seller_info": {"nick": "realme官方旗舰店","item_score": "4.7 ","score_p": "4.8 ","delivery_score": "4.8 ","shop_type": "B","user_num_id": "266936524","sid": "379355248","title": "realme官方旗舰店","zhuy": "/","shop_name": "realme官方旗舰店"},"tmall": true,"update_time": "-07-30 09:11:49","data_update": "-07-30 09:11:49","data_f": "xdl","data_from": "hid","promo_type": null,"props_img": {"1627207:21560582070": "///imgextra/O1CN012laaji26ATBVEHMp2_!!6000000007621-0-remus.jpg","1627207:3617288": "///imgextra/O1CN01RrRNqw1yuFqevBeRj_!!6000000006638-0-remus.jpg","1627207:606792517": "///imgextra/O1CN01N63F3a1Rwebap6fWz_!!6000000002176-0-remus.jpg"},"error": null,"format_check": "ok","sales": 0,"desc_img": ["/imgextra/i2/266936524/O1CN01sFKsDt1y42heHN6zQ_!!266936524.jpg","/imgextra/i2/266936524/O1CN016FIxXV1y42hXzNVDY_!!266936524.jpg","/imgextra/i1/266936524/O1CN01Pkuhpn1y42hcnVxQw_!!266936524.jpg","/imgextra/i4/266936524/O1CN01JqJPyG1y42hjWPMjL_!!266936524.png","/imgextra/i2/266936524/O1CN01js0wq31y42hTimRqC_!!266936524.jpg","/imgextra/i1/266936524/O1CN01SyPgAZ1y42UQszlpl_!!266936524.jpg","/imgextra/i2/266936524/O1CN01pHQaQ11y42hYaCUvT_!!266936524.png","/imgextra/i3/266936524/O1CN01wGh24E1y42hYaBgyB_!!266936524.png","/imgextra/i3/266936524/O1CN01VSMEQt1y42hRotcmu_!!266936524.png","/imgextra/i2/266936524/O1CN01aCfQSr1y42hTasbRE_!!266936524.png","/imgextra/i2/266936524/O1CN01GfOXxM1y42hLJXdtM_!!266936524.png","/imgextra/i1/266936524/O1CN01OiIpyC1y42hPuWoq8_!!266936524.png","/imgextra/i4/266936524/O1CN011uHCfN1y42hNhUckH_!!266936524.png","/imgextra/i2/266936524/O1CN01XUn8Oa1y42hNaYYm1_!!266936524.png","/imgextra/i4/266936524/O1CN01l131aL1y42hQjB2HY_!!266936524.png","/imgextra/i1/266936524/O1CN01RpiSRK1y42hQjCqYK_!!266936524.png","/imgextra/i1/266936524/O1CN012crmli1y42hYaChLg_!!266936524.png","/imgextra/i4/266936524/O1CN01F7E6s31y42hPuaqK5_!!266936524.png","/imgextra/i3/266936524/O1CN01d6TcK01y42hPuZMsP_!!266936524.png","/imgextra/i1/266936524/O1CN01Orvlcw1y42hYaAHdv_!!266936524.png","/imgextra/i1/266936524/O1CN01bLNKuq1y42hGQwfYd_!!266936524.png","/imgextra/i3/266936524/O1CN016t0BRY1y42hNaaZWH_!!266936524.png","/imgextra/i1/266936524/O1CN01cIazYL1y42hLJWhjE_!!266936524.png","/imgextra/i4/266936524/O1CN011Cb7rh1y42hTaswHv_!!266936524.png","/imgextra/i1/266936524/O1CN01T7GYlc1y42hMqceI4_!!266936524.png","/imgextra/i1/266936524/O1CN01LwMfwf1y42hSHbUlh_!!266936524.png","/imgextra/i3/266936524/O1CN01DgQKpW1y42hXMr10m_!!266936524.png","/imgextra/i1/266936524/O1CN01IEEtXc1y42hZR8QvV_!!266936524.png","/imgextra/i4/266936524/O1CN01UXiHRW1y42hSHbpY9_!!266936524.png","/imgextra/i4/266936524/O1CN01WxP5Qa1y42hGQws2u_!!266936524.png","/imgextra/i3/266936524/O1CN01ZsU72R1y42hQ1dUU7_!!266936524.png","/imgextra/i3/266936524/O1CN01VBLrU81y42hXMrkks_!!266936524.png","/imgextra/i2/266936524/O1CN016JvctA1y42hPuaAn6_!!266936524.png","/imgextra/i3/266936524/O1CN01cemrcg1y42hTasbVk_!!266936524.png","/imgextra/i4/266936524/O1CN01FeJlLG1y42hQ1dMBK_!!266936524.png","/imgextra/i2/266936524/O1CN01aHw7q61y42hUWs7ln_!!266936524.png","/imgextra/i1/266936524/O1CN01GrxtSL1y42hUWuwOz_!!266936524.png","/imgextra/i1/266936524/O1CN01rA1g2c1y42hRowi97_!!266936524.png","/imgextra/i2/266936524/O1CN01HAIP7E1y42YFVvTiA_!!266936524.jpg","/imgextra/i4/266936524/O1CN013mWCxB1y42gAC5jfE_!!266936524.jpg","/i.php?t.png&rid=gw-4.62e4855412e85&p=2526969020&k=96463&t=1659143509"],"shop_item": [],"relate_items": []},"error": "","secache": "716a6db5c60ba639b6ee1f57ada6e4b3","secache_time": 1659686924,"secache_date": "-08-05 16:08:44","translate_status": "","translate_time": 0,"language": {"default_lang": "cn","current_lang": "cn"},"reason": "","error_code": "0000","cache": 0,"api_info": "today:106 max:10100 all[224=106+62+56];expires:2030-12-31","execution_time": "0.302","server_time": "Beijing/-08-05 16:08:44","client_ip": "106.6.33.227","call_args": {"num_iid": "678037674324","is_promotion": "1"},"api_type": "taobao","translate_language": "zh-CN","translate_engine": "google_new","server_memory": "5.93MB","request_id": "gw-1.62ecd00c0a8e4","last_id": "1129454119"}
如果觉得《各大电商平台商品详情api接口 淘宝API 拼多多API 1688API 爬虫程序数据获取 PHP示例说明》对你有帮助,请点赞、收藏,并留下你的观点哦!