淘宝和阿里妈妈相关接口信息

阅读 (2027)
做淘宝客必备接口

1.获取商品详情H5页面接口

https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=%7B"itemNumId"%3A"10031645140"%7D&qq-pf-to=pcqq.group

2.获取阿里妈妈后台订单详情的接口

https://pub.alimama.com/report/getTbkPaymentDetails.json?startTime=2017-05-22&endTime=2017-08-19&payStatus=&queryType=1&toPage=1&perPageSize=20&total=&t=1503223605295&pvid=&_tb_token_=pTK7Mfldfvq&_input_charset=utf-8

 

3.阿里妈妈快捷登录地址

https://login.taobao.com/member/login.jhtml?style=mini&newMini2=true&from=alimama&redirectURL=http%3A%2F%2Flogin.taobao.com%2Fmember%2Ftaobaoke%2Flogin.htm%3Fis_login%3d1&full_redirect=true
 

4.检测阿里妈妈是否掉线

http://pub.alimama.com/common/getUnionPubContextInfo.json
 

如果掉线了,返回的json数据是:

{"data":{"loginUrlPrefix":"http://www.alimama.com/member/login.htm?forward=","env":"product","noLogin":true,"ip":"112.53.64.182"},"info":{"message":null,"ok":true},"ok":true,"invalidKey":null}
 

如果在线,返回的json数据是:

{"data":{"imgUrlPrefix":"//img.alicdn.com/tfscom","loanLimit":0,"memberid":13387364,"tkMemberRank":3,"newVersion":1,"hasPubPermission":"1","env":"product","avatar":"//img.alicdn.com/bao/uploaded/i4/T1EqLjXnJgXXb1upjX.jpg","mmNick":"wangxukun","ip":"112.53.64.180"},"info":{"message":null,"ok":true},"ok":true,"invalidKey":null}
 

5.获取淘宝宝贝详情图片的接口

https://hws.m.taobao.com/cache/mtop.wdetail.getItemDescx/4.1/?data=%7Bitem_num_id%3A"40545413689"%7D&type=jsonp&dataType=jsonp
 

6.阿里妈妈超级搜索接口

https://pub.alimama.com/items/search.json?q=连衣裙&_t=1504343936005&toPage=1&dpyhq=1&auctionTag=&perPageSize=40&shopTag=yxjh%2Cdpyhq&t=1504343953946&_tb_token_=1z542p7H7yq&pvid=10_118.206.186.134_602_1504343947270
7.淘口令解析
https://acs.m.taobao.com/h5/mtop.alimama.union.hsf.coupon.get/1.0/?jsv=2.4.0&appKey=12574478&t=1529482976065&sign=ba59b048cda1b2be7d599b74d033b994&api=mtop.alimama.union.hsf.coupon.get&v=1.0&AntiCreep=true&AntiFlood=true&type=jsonp&dataType=jsonp&callback=mtopjsonp1&data=%7B%22e%22%3A%22xxIs2A%2FYZUQGQASttHIRqW5G%2Fx4rSwZYLKHbu8BwQo8iXbaqQIVRhZg4Cf1Oag9w46m0jpcyz7HA3YvQTpsOrUhMrwC97%2FSyi4Kkxr5dr46wksixcOKrLoSwiZqM5gkNiqCZgD7nTxY%2Fox6EUhTrAA%3D%3D%22%2C%22activityId%22%3A%22dfb01362442a49b2af761ae233d28b33%22%2C%22pid%22%3A%22mm_15651857_7836228_26630934%22%2C%22src%22%3A%22cn666_com%22%7D
// $_m_h5_tk:为访问mtop.alimama.union.hsf.coupon.get接口链接时,返回的cookies数据,注,返回cookies数据格式为:_m_h5_tk= 686f2b1c9018b5846e211a220e5f301b_1529482976065,这里只使用前半部分,在这里是686f2b1c9018b5846e211a220e5f301b
$_m_h5_tk='686f2b1c9018b5846e211a220e5f301b';//$match[1];
$time='1529482976065'; // 时间戳
// sign生成规则
$signParam = [];
$signParam[] = $_m_h5_tk;
$signParam[] = $time;
$signParam[] = '12574478';
$signParam[] = '{"e":"xxIs2A/YZUQGQASttHIRqW5G/x4rSwZYLKHbu8BwQo8iXbaqQIVRhZg4Cf1Oag9w46m0jpcyz7HA3YvQTpsOrUhMrwC97/Syi4Kkxr5dr46wksixcOKrLoSwiZqM5gkNiqCZgD7nTxY/ox6EUhTrAA==","activityId":"dfb01362442a49b2af761ae233d28b33","pid":"mm_15651857_7836228_26630934","src":"cn666_com"}';//data;
$sign = strtolower(md5(implode('&', $signParam)));
echo $sign;
exit;

该接口调用方式似乎已变更

更新于:2019-09-03 11:16:21

留言

发表评论

标记为*的字段是必填项(邮箱地址不会被公开), 由于国内舆论控制, 评论需要管理员审核通过方可展示

返回顶部