Skip to content

Latest commit

 

History

History
308 lines (111 loc) · 5.27 KB

淘宝接口参数.md

File metadata and controls

308 lines (111 loc) · 5.27 KB

淘宝接口参数

一. 直播间

观看:

api: mtop.taobao.powermsg.msg.subscribe

v:1.0

data: 主要参数 topic,role,namespace,sdkVersion (目前使用四个参数即能刷观看)

​ 完整参数:{"appKey":"21646297","ext":"%s","from":"%s","id":"%s","namespace":1,"role":3,"sdkVersion":"0.3.0","tag":"tb","timestamp":%s,"topic":"b132e16e-59c6-4248-be90-d15eb2f83cd1","utdId":"XpF17gMK9P0DAM5H9D8NAKDU"}

前置条件: role=-999,sdkVersion=0.3.0

namespace 为 1 效果最好, 当namespace为3时,观看量不动

role 似乎值并不对刷观看有影响,取值为0

sdkVersion 不可缺少的参数,但目前对刷观看没有影响

二. 商品信息

​ web端: 淘宝

​ 获取商品详情页面,包含价格,交易数量等

​ api: https://detailskip.taobao.com/service/getData/1/p1/item/detail/sib.htm?itemId=618643453334&sellerId=107691187&modules=dynStock,qrcode,viewer,price,duty,xmpPromotion,delivery,activity,fqg,zjys,couponActivity,soldQuantity,page,originalPrice,tradeContrac

​ 更改内容为 itemId 与 sellerId

​ 可子定制模块返回

​ 模块:

​ dynStock ,返回商品库存情况。

​ qrcode,返回手机购买二维码图地址

​ viewer {'code': {'code': 0, 'message': 'SUCCESS'}, 'data': {'viewer': {'admin': False, 'bs': '39', 'buyDomain': 'buy.taobao.com', 'buyerId': '2990638377', 'cartDomain': 'cart.taobao.com', 'cc': False, 'countryCode': 'CN', 'ctUser': False, 'lgin': True, 'serviceTab': 'ITEM', 'tkn': '353513fb73fea'}}} # 未知

​ price 获取商品原价

​ duty 返回空

​ xmpPromotion ,返回商品促销信息

​ delivery 快递信息

​ activity 目前返回空

​ fqg 分期还能就获取分给它

​ zjys 返回空

​ couponActivity 返回优惠券信息

​ page 返回空

​ originalPrice 返回历史数据

​ soldQuantity 返回30天销售件数

​ tradeContract ....

​ upp 获取淘金币

web端:商品详情(天猫)

api: https://mdskip.taobao.com/core/initItemDetail.htm?itemId=625461897633

需要cookie

参数 itemId 商品ID

h5 获取商品详情:

https://h5api.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=%7B%22itemNumId%22%3A%22618913345252%22%7D

data = {"itemNumId":"618913345252"} 频繁访问会被挤爆了

h5 获取商品产品参数、尺码及图片等信息:

https://h5api.m.taobao.com/h5/mtop.taobao.detail.getdesc/6.0/?data=%7B%22spm%22%3A%22a230r.1.14.214.722f3f56ZXcIf3%22%2C%22id%22%3A%22624147492540%22%2C%22ns%22%3A%221%22%2C%22abbucket%22%3A%226%22%2C%22type%22%3A%220%22%7D

{"spm":"a230r.1.14.214.722f3f56ZXcIf3","id":"624147492540","ns":"1","abbucket":"6","type":"0"}

id 为商品id

APP端 获取商品页面中店铺的图片

api: mtop.tmall.detail.shopcard.brandevent

version: 1.0

host: guide-acs.m.taobao.com

data: {"detail_v": "3.3.2", "itemId": "577114607980", "sellerId": "92688455"}


web端:商品推荐(淘宝)

​ api: https://tui.taobao.com/recommend?seller_id=1776233834&item_ids=618643453334&floorId=42296&callback=detail_pine&appid=6862

参数: seller_id 卖家id item_id 商品id floorId 未知,必不可少, 其次appid也尤为重要。

web端:商品推荐(天猫)

api:https://aldcdn.tmall.com/recommend.htm?itemId=610561300754&sellerId=848014414&shopId=70937915&appId=03054

参数: itemId sellerId shopId appId 必不可少

APP端:商品推荐

api: mtop.relationrecommend.wirelessrecommend.recommend

host:guide-acs.m.taobao.com

data:

{"appId": "10777",
                   "params": "{\"detail_v\":\"3.3.2\",\"flag\":\"true\",\"itemId\":\"610561300754\",\"sellerid\":\"848014414\",\"ttid\":\"2016@taobao_android_7.7.2\"}"}

修改两个参数: itemId 与 sellId

APP端:商品推荐2 只返回 推荐商品的 itemId

api : mtop.taobao.detail.getrecomservice

host: guide-acs.m.taobao.com

data:

{"detail_v": "3.3.2", "itemId": "613517566791", "recomIdFlag": "1", "ttid": "2016@taobao_android_7.7.2"}


web端:商品评价信息

需要cookie

https://rate.tmall.com/list_detail_rate.htm?itemId=576714440550&callback=jsonp3497&sellerId=92688455&currentPage=1

itemId 商品id sellerId 卖家id currentPage 当前评价页面

APP端:商品评价印象特征获取

api: mtop.alibaba.rate.impressions.get

data:

{"targetId": "577114607980", "source": "ali.china.taobao"}

host: guide-acs.m.taobao.com

version: 1.0

https://guide-acs.m.taobao.com/gw/mtop.alibaba.rate.impressions.get/1.0/?data=%7B%22targetId%22%3A+%22577114607980%22%2C+%22source%22%3A+%22ali.china.taobao%22%7D

APP端:商品评价获取

api: mtop.taobao.rate.detaillist.get

host:guide-acs.m.taobao.com

version:5.0

data :

{"pageSize": "100",
                   "pageNo": "1", "auctionNumId": "577114607980"}

pageSize 返回的评价数量大小

pageNo 第几页

auctionNumId 商品Id


三. 店铺信息

WEB端:获取商铺开店时间:

api: https://shop.taobao.com/getShopInfo.htm?shopId=114029974

data: shopId 商铺id

需要cookie

APP端:获取商铺信息

api: mtop.taobao.shop.impression.intro.get

version: 1.0

host: guide-acs.m.taobao.com

data : r'{"sellerId":"92688455","shopId":"57299736"}'

需要使用Cookie