后妈常用协议分析

一、阿里妈妈登录

登录地址:

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

这个地址是可以使用快捷登录的,登录完成后跳转到后妈

二、阿里妈妈产品搜索

根据商品详情链接搜索:

http://pub.alimama.com/items/search.json?q=https%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fid%3D543152183686&_t=1483512422876&auctionTag=&perPageSize=40&shopTag=&t=1483512422881&_tb_token_=RfiZ1q2XRBq&pvid=10_61.232.11.197_2386_1483512404015

参数说明:

q:  商品详情链接,需要encode
_t: 时间戳
auctionTag=     //不知道干啥,填空吧
perPageSize //返回记录数

返回数据

{
    "data": {
        "head": {
            "version": "1.0",
            "status": "OK",
            "pageSize": 40,
            "pageNo": 1,
            "searchUrl": null,
            "pvid": "100_10.103.34.36_160745_1488178070327022493",
            "docsfound": 1,
            "errmsg": null,
            "fromcache": null,
            "processtime": 3580,
            "ha3time": 3331,
            "docsreturn": 1,
            "responseTxt": null
        },
        "condition": {
            "userType": null,
            "queryType": null,
            "sortType": null,
            "loc": null,
            "includeDxjh": null,
            "auctionTag": null,
            "hasUmpBonus": null,
            "isBizActivity": null,
            "jhs": null,
            "subOeRule": null,
            "freeShipment": null,
            "startTkRate": null,
            "endTkRate": null,
            "startTkTotalSales": null,
            "startPrice": null,
            "endPrice": null,
            "startRatesum": null,
            "endRatesum": null,
            "startQuantity": null,
            "startBiz30day": null,
            "startPayUv30": null,
            "hPayRate30": null,
            "hGoodRate": null,
            "startDsr": null,
            "lRfdRate": null,
            "startSpay30": null,
            "hSellerGoodrat": null,
            "hSpayRate30": null,
            "startRlRate": null,
            "shopTag": null,
            "npxType": null,
            "picQuality": null,
            "selectedNavigator": null,
            "typeTagName": null
        },
        "paginator": {
            "length": 1,
            "offset": 0,
            "page": 1,
            "beginIndex": 1,
            "endIndex": 1,
            "items": 1,
            "lastPage": 1,
            "itemsPerPage": 40,
            "previousPage": 1,
            "nextPage": 1,
            "pages": 1,
            "firstPage": 1,
            "slider": [
                1
            ]
        },
        "pageList": [
            {
                "tkSpecialCampaignIdRateMap": {
                    "44923459": "30.00"
                },
                "eventCreatorId": 0,
                "rootCatId": 0,
                "leafCatId": 50012042,
                "debugInfo": null,
                "rootCatScore": 0,
                "sellerId": 1055467631,
                "userType": 0,
                "shopTitle": "果儿小鞋铺",
                "pictUrl": "http://img04.taobaocdn.com/bao/uploaded/i4/1055467631/TB2n5PHdipnpuFjSZFIXXXh2VXa_!!1055467631.jpg",
                "title": "2017韩版一脚蹬女鞋厚底女帆布鞋平底平跟懒人鞋原宿风休闲小白鞋",
                "auctionId": 544360622299,
                "tkRate": 5,
                "tkCommFee": 1.95,
                "totalNum": 60,
                "totalFee": 476.25,
                "couponActivityId": null,
                "reservePrice": 128,
                "auctionUrl": "http://item.taobao.com/item.htm?id=544360622299",
                "couponLink": "",
                "couponLinkTaoToken": "",
                "dayLeft": -17224,
                "tk3rdRate": null,
                "biz30day": 454,
                "rlRate": 69.53,
                "nick": "果儿丶叶",
                "hasRecommended": 0,
                "hasSame": 0,
                "zkPrice": 39,
                "sameItemPid": "-1826827696",
                "couponTotalCount": 0,
                "couponLeftCount": 0,
                "includeDxjh": 1,
                "auctionTag": "587 907 1163 1483 2059 2123 4491 4550 4555 6603 11083 11339 11531 12491 13707 13771 21505 25282 30977 33153 33665 34305 35521 36161 40897 50370 52290 53121 53185 54209 54337 59073 59137 61954 104514 105474",
                "couponAmount": 0,
                "eventRate": null,
                "couponShortLink": null,
                "couponInfo": "无",
                "couponStartFee": 0,
                "couponEffectiveStartTime": "",
                "couponEffectiveEndTime": "",
                "hasUmpBonus": null,
                "isBizActivity": null,
                "umpBonus": null,
                "rootCategoryName": null,
                "couponOriLink": null,
                "userTypeName": null
            }
        ],
        "navigator": null,
        "extraInfo": null
    },
    "info": {
        "message": null,
        "pvid": "10_61.232.11.197_392_1488178070020",
        "ok": true
    },
    "ok": true,
    "invalidKey": null
}

pageList 节点就是要查询的商品信息了

三、定向计划

获取定向计划链接:

http://pub.alimama.com/pubauc/getCommonCampaignByItemId.json?itemId=539687986962&t=1483501922274&_tb_token_=RfiZ1q2XRBq&pvid=21_61.232.11.197_487_1483501787541

参数:

itemId:商品的id
t:时间戳
_tb_token:cookie里可以获取到,可以省略用cookies代替
pvid:不知道是干啥的

返回格式为JSON:

{
"data": [
{
"commissionRate": 20,
"CampaignID": 23510768,
"ExistStatus": 2,
"CampaignName": "求推广",
"CampaignType": "定向推广计划",
"AvgCommission": "15.71 %",
"Exist": true,
"manualAudit": 0,                       //审核方式,0:自动,1:手动
"ShopKeeperID": 84728879,
"Properties": "否"
}
],
"info": {
"message": null,
"ok": true
},
"ok": true,
"invalidKey": null
}

提交定向计划链接:

http://pub.alimama.com/pubauc/applyForCommonCampaign.json

该请求为post方式,参数:

campId: 23510768  // 活动ID
keeperid: 84728879  //shopKeeperID
applyreason:1234阿斯蒂芬  //申请文案
t:1483501922133  //时间戳
_tb_token_:RfiZ1q2XRBq  //token
pvid:21_61.232.11.197_487_1483501787541  // unknown

四、高佣查询

http://pub.alimama.com/items/channel/qqhd.json?q=http%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fid%3D538100161031&channel=qqhd

关键参数

q= 要搜索的产品链接

返回的数据和普通搜索一样

你可能感兴趣的:(后妈常用协议分析)