二、商品相关接口
#.淘宝商品详情信息接口 描述:淘宝商品详情信息,获取商品信息、卖家信息、价格等信息
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_detail_info?itemId=671650645929&token=cdy
传参说明:token、itemId(淘宝商品id)
返回结构示例:
{
"api": "cdy.taobao.detail.new",
"data": {
"apiStack": [
{
"crawl_time": "2022-12-28 16:53:07",
"name": "esi",
"result": {},
"state": "上架",
"type": "pc detail"
}
],
"delivery": {
"deliveryFromAddr": "广东汕头",
"deliveryToAddr": "宿迁市 泗阳县",
"freight": "快递: 免运费"
},
"feature": null,
"item": {
"brandValueId": "47749981",
"cartUrl": "https://h5.m.taobao.com/awp/base/cart.htm",
"categoryId": "50012587",
"commentCount": "9080",
"countMultiple": [],
"exParams": {},
"favcount": "11266",
...
...
}
...
...
},
"v": "6.0",
"left_num": 40
}
#淘宝关键词搜索接口 描述:淘宝关键词搜索
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_keyword_search?keyword=鞋子&token=cdy&sort=sale-desc&page=1
传参说明:keyword: 搜索词;page: 页数;sort:排序方式:
1. credit-desc:信用降序
2. sale-desc:销量降序
3. price-asc:价格升序
4. price-desc:价格降序
5. total-asc:总价升序
6. total-desc:总价降序;
返回说明:
{
"api": "cdy.taobao.wsearch.appsearch",
"code": "success"
"data": [{
"biz30day": "37089",
"category": "50012028",
"categoryp": "50012028 201301735 50006843 0",
"comment_count": "4372",
"comment_url": "//detail.tmall.com/item.htm?id=682786204368&ns=1&abbucket=0&on_comment=1",
"detail_url": "//detail.tmall.com/item.htm?id=682786204368&ns=1&abbucket=0",
...
...
...
}],
"pager": [...],
"v": "4.0",
"left_num": 40
}
#天猫关键词搜索接口 描述:天猫关键词搜索
方式: GET
示例URL: https://52429306xf.zicp.fun/tm_keyword_search?keyword=鞋子&token=cdy&sort=sale-desc&page=1
传参说明:keyword: 搜索词;page: 页数;sort:排序方式:
1. sale-desc:销量降序
2. price-desc:价格降序
3. price-asc:价格升序;
返回说明:
{
"api": "cdy.taobao.wsearch.appsearch",
"code": "success"
"data": {
"currentPage": 1,
"itemList": [
{
"best_size": "",
"bucket_id": 0,
"cat_id": 201304408,
"comment_num": "25330",
"flowIcon": [],
"gid": "",
"i2i_similar": false,
"img": "//img.alicdn.com/bao/uploaded/i3/3430463052/O1CN01n4S68x1YPrXT1hM48_!!0-item_pic.jpg",
"is_cod": 0,
"is_promotion": true,
"item_id": 671373963950,
"listIcon": [],
"location": "浙江 温州",
"nick": "回力爱乐萌专卖店",
"original_price": "",
"post_fee": "0.00",
"price": "89.00",
"quantity": "4686884",
"recommend_description": "",
"seller_id": "3430463052",
"seller_loc": "",
"shipping": -1,
"shop_id": "3430463052",
"shop_name": "回力爱乐萌专卖店",
"sku_id": "5091110579473",
"sold": "3万+",
"spu_fst": "20220321",
"spu_id": 2365193266,
"title": "回力男鞋运动鞋男款2022冬季新款棉鞋男加绒保暖鞋子男休闲跑步鞋",
"titlePreIconFlowList": [],
"titlePreIconList": [],
"url": "//detail.tmall.com/item.htm?id=671373963950&skuId=5091110579473",
"user_rate": {
"description_match": "480",
"description_match_gap": "0.65%",
"send_speed": "486",
"send_speed_gap": "0.00%",
"service_quality": "484",
"service_quality_gap": "0.00%",
"show_flag": 0
},
"vimg": "",
"wm_price": ""
}
...
...
]},
"v": "3.0",
"left_num": 40
}
#淘宝商品优惠券信息接口 描述:淘宝商品优惠券信息
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_coupon_info?itemId=640856109376&token=cdy
传参说明:itemId:商品id;
返回说明:
{
"api": "cdy.taobao.detail.couponpage.newcouponpage",
"data": "couponFloatLayer2VO": {
"commonPromotions": [
{
"des": "淘金币",
"title": "淘金币可抵2.67元",
"type": 1006
}
],
"foldCoupons": false,
"promotions": [
{
"groups": [
{
"promotionIndex": [
0
],
"promotionTitle": "优惠"
}
],
"locator": "now",
"promotionIndex": [
0
],
"promotionTitle": "优惠"
}
],
"title": "优惠明细",
...
...
},
"v": "1.0",
"left_num": 40
}
#淘宝商品评论接口 描述:淘宝商品评论
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_item_rate?itemId=682786204368&token=cdy&page=1
传参说明:itemId:商品id;page:页码
返回说明:
{
"api": "cdy.taobao.taobao.item.rate",
"data": {
"abBucketName": "default_buckets#-1",
"abCode": "default_buckets",
"allowInteract": "true",
"canReport": "false",
"configMap": {
"card_version": "old",
"show_comments": "false"
},
"extraInfo": {
"impr_showtag": "回头客;88VIP;容易耐脏;防水;很保暖;尺码合适;不影响贴合度;质量一般",
"impr_showtag_attributeId": "0;0;40011621;40061065;40061043;40101000;40011286;40161003",
"impr_showtag_id": "rc;88;40011621-11;40061065-11;40061043-11;40101000-11;40011286-11;40161003-13",
"impr_showtag_sum": "91;92;5;21;116;102;2;6",
"newDetail": "false",
"newInteraction": "false",
"newList": "false"
},
"feedAllCount": "4605",
...
...
},
"v": "1.0",
"left_num": 40
}
#淘宝商品月销量接口 描述:淘宝商品月销量,可以显示具体月销量数值。
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_item_month_sale?itemId=640856109376&token=cdy
传参说明:itemId:商品id;
返回说明:
{
"biz30day": "1",
"code": "调用成功",
"left_nums": 46
}
#淘宝店铺搜索接口 描述:淘宝店铺搜索,用来搜索店铺,返回对应的旺旺id和昵称。
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_shop_search?keyword=衣服&token=cdy&shopType=taobao&ratesum=huang&page=1
传参说明:keyword:搜索词;page:页数;shopType:店铺类型,taobao:
淘宝店,tm:天猫店;ratesum:https://52429306xf.zicp.fun/taobao_item_desc?itemId=675789163767&token=cdy
淘宝店可以进行店铺等级筛选,jin:金冠店,huang:皇冠店,zhuan:钻石店,xin:心级店;
返回说明:
{
"api": "cdy.taobao.shop.search",
"code": "success",
"data": [
{
"goodratePercent": "99.14%",
"sellerNick": "鹿王羊绒制品专柜",
"shopId": "70708484",
"shopName": "妃漫高端女装",
"shopUrl": "https://shop70708484.taobao.com",
"userId": "839841065"
},
...
]
"left_nums": 38,
"v": "1.0"
}
#淘宝店铺列表接口(全店商品) 描述:淘宝店铺列表,用来获取淘宝店铺下所有商品数据
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_shop_item_list?shopId=116664920&token=cdy&sort=sale-desc&page=1
传参说明:shopId:店铺Id;page: 页数;sort:排序方式: 1. sale-desc:销量降序 2. price-desc:价格降序 3. price-asc:价格升序;
4. new:新品排序
返回说明:
{
"api": "cdy.taobao.wsearch.appsearch",
"data": {
"RN": "180c60cdfee745ba04222340f0078b2d",
"_cost": 82.002117,
"_host": "hippo.033040073073.ea119",
"abtest": "4",
"bucketId": "4",
"isJiaGou": true,
"itemsArray": [
{
"auctionUrl": "http://a.m.taobao.com/i667578330648.htm?&v=1.0&sid=15c6fdb1a37c854ec34c3818434656d3&jose=1",
"cardType": "item",
"clickUrl": "",
...
]
...
"left_nums": 38,
"v": "2.0"
}
#淘宝商品详情页面图片接口 描述:淘宝商品详情页面,可以获取到详情页面图片信息。
方式: GET
示例URL: https://52429306xf.zicp.fun/taobao_item_desc?itemId=675789163767&token=cdy
传参说明:itemId:商品Id;
返回说明:
{
"api": "cdy.taobao.detail.getdesc",
"data": {
"itemProperties": [
{
"name": "品牌",
"value": "other/其他"
},
{
"name": "尺码",
"value": "35,36,37,38,39"
},
{
"name": "图案",
"value": "纯色"
},
{
"name": "风格",
"value": "韩版"
...
...
]
...
...
}
"left_nums": 38,
"v": "1.0"
}
#1688商品详情接口 描述:1688商品详情信息页面,可以获取到1688商品价格等信息。
方式: GET
示例URL: https://52429306xf.zicp.fun/1688_item_detail_info?itemId=663440290104&token=cdy
传参说明:itemId:商品Id;
返回说明:
{
"api": "cdy.1688.detail.info",
"data": {
"attribute": {
"offerId": 663440290104,
"propUrl": "https://air.1688.com/pages/od/1688-drawer-layout/dx4c1wsd4/index.html?spm=a26g8.24198408.0.0.46af4989rkKRh9&__pageId__=1963053&wh_pid=1963053&pha_html=nativeodpop&heightRatio=0.8&bgColor=FFFFFF&bgColorStr=03000000",
"propsList": [
{
"name": "是否进口",
"show": false,
"value": "否"
},
{
"name": "品牌",
"show": false,
"value": "宇婷"
},
{
"name": "型号",
...
...
]
...
...
}
"left_nums": 38,
"v": "1.0"
}
#阿里巴巴速卖通商品详情接口 描述:阿里巴巴速卖通商品详情页面,可以获取到速卖通商品价格等信息。
方式: GET
示例URL: https://52429306xf.zicp.fun/ali_express_item_detail_info?itemId=1005004055450587&token=cdy
传参说明:itemId:商品Id;
返回说明:
{
"api": "cdy.ali.express.item.detail.info",
"data": {
"generalFreightInfo": {
"allowArouseLayer": false,
"freightExt": "[{\"p0\":\"12000027879736397\",\"p1\":\"1.88\",\"p3\":\"USD\",\"p4\":\"990000\",\"p5\":\"0\",\"itemScene\":\"default\",\"p6\":\"null\",\"p7\":\"{}\",\"p9\":\"US $1.88\",\"p10\":[110273,182210,182209,218119,82052,181770,84809,120715,120651,120650,120716,124181,124180,181658,182107,106459,181657,182110,182108,110174,182109,201379,124259,124258,183525,201380,73387,73386,124268,120817,120819,120818,120820,111478,182207,124350,63807]}]",
"hideShipFrom": true,
"i18n": {
"cod": "COD Available on APP",
"codContent": "Products delivered directly to your door.",
"estimated": "Estimated Delivery Time:{0} Days",
"fastShipping": "Fast Shipping",
"free": "Free Shipping",
"noShip": "This product can't be shipped to the selected country.",
"refund": "Delivered before {0} or full refund",
...
...
}
"left_nums": 38,
"v": "1.0"
}
#飞猪旅行酒店民俗评价接口 描述:阿里巴巴旗下飞猪平台酒店民俗评价页面,可以获取到飞猪酒店民宿评价内容、好评、差评等内容。
方式: GET
示例URL: https://52429306xf.zicp.fun/fpig_trip_item_rate?itemId=67336093&token=cdy&sort=time&page=1
传参说明:itemId:酒店Id;sort:排序,默认排序 default,时间排序 time;page:页面
返回说明:
{
"api": "cdy.fpig.hotel.trip.rate",
"data": {
"backLinkUrl": "https://market.m.taobao.com/app/trip/h5-hotel-detail/pages/detail/index.html?shid=67336093",
"currentUserIcon": "https://wwc.alicdn.com/avatar/getAvatar.do?userIdStr=vCNuv8lzvF9hPHgYP0guOFN4OmxYXFZePGxLXFQGM07-vkZeXF8LP88YPmQ4XFNS&type=sns",
"degrade": "false",
"filters": [
...
...
}
"left_nums": 38,
"v": "1.0"
}