kpi.md
26.9 KB
接口描述
1、获取top10下拉
请求方法
get http://ap2.yohobuy.com/data-analysis-web/resources_analysis/recommendedSelect
响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"text": "男首-猜你喜欢",
"code": "100001"
},
{
"text": "女首-猜你喜欢",
"code": "100002"
},
{
"text": "购物车-为您优选",
"code": "100003"
},
{
"text": "我的-为您优选",
"code": "100004"
},
{
"text": "查看物流-买了又买",
"code": "100005"
},
{
"text": "查看物流-猜你喜欢",
"code": "100006"
},
{
"text": "支付成功-猜你喜欢",
"code": "100007"
},
{
"text": "yoho币-猜你喜欢",
"code": "100008"
},
{
"text": "yoho币-猜你喜欢",
"code": "100009"
},
{
"text": "商品详情页-为你优选",
"code": "100013"
}
],
"md5": "48ee1287db61a4c822d67dcff3b0cf1c",
"message": "SUCCESS"
}
2、获取top20下拉
请求方法
get http://ap2.yohobuy.com/data-analysis-web/resources_analysis/top20Select
响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"third": [
{
"code": "0",
"text": "默认"
},
{
"code": "1",
"text": "销量"
},
{
"code": "2",
"text": "最新"
},
{
"code": "3",
"text": "价格"
},
{
"code": "4",
"text": "折扣"
},
{
"code": "5",
"text": "本日上新"
},
{
"code": "6",
"text": "本周上新"
},
{
"code": "7",
"text": "个性化排序"
}
],
"first": [
{
"code": "1",
"text": "男生"
},
{
"code": "2",
"text": "女生"
},
{
"code": "3",
"text": "潮童"
},
{
"code": "4",
"text": "创意生活"
}
],
"second": [
{
"code": "3",
"text": "搜索"
},
{
"code": "1",
"text": "品牌"
},
{
"code": "2",
"text": "品类"
},
{
"code": "4",
"text": "新品到着"
},
{
"code": "5",
"text": "店铺页"
}
]
},
"md5": "8c3dabc02dc9a45368afbb2a09b784e2",
"message": "SUCCESS"
}
2、获取推荐top10
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
appType | String | true | android/ios/wap/web/all | 客户端类类型 |
appEdition | String | true | 客户端版本:AB | |
date | date | false | 2016-12-26 | 时间类型(默认当天) |
cid | int | true | 下拉的值 |
请求方法
get http://ip:port/data-analysis-web/resources_analysis/recommendedTop10?appType=ios&date=2015-12-26&cid=1&appEdition=A
响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 1,
"orderNum": 0,
"pvNum": 161,
"sortNum": 0,
"typeNum": 0,
"uvNum": 142
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 1,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 2,
"orderNum": 1,
"pvNum": 155,
"sortNum": 0,
"typeNum": 0,
"uvNum": 144
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 3,
"orderNum": 0,
"pvNum": 154,
"sortNum": 0,
"typeNum": 0,
"uvNum": 141
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 4,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 4,
"orderNum": 0,
"pvNum": 165,
"sortNum": 0,
"typeNum": 0,
"uvNum": 149
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 5,
"orderNum": 0,
"pvNum": 113,
"sortNum": 0,
"typeNum": 0,
"uvNum": 107
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 6,
"orderNum": 5,
"pvNum": 102,
"sortNum": 0,
"typeNum": 0,
"uvNum": 91
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 7,
"orderNum": 0,
"pvNum": 111,
"sortNum": 0,
"typeNum": 0,
"uvNum": 100
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 1,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 8,
"orderNum": 0,
"pvNum": 108,
"sortNum": 0,
"typeNum": 0,
"uvNum": 101
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 9,
"orderNum": 0,
"pvNum": 86,
"sortNum": 0,
"typeNum": 0,
"uvNum": 80
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 3,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 10,
"orderNum": 0,
"pvNum": 109,
"sortNum": 0,
"typeNum": 0,
"uvNum": 97
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 3,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 11,
"orderNum": 0,
"pvNum": 11,
"sortNum": 0,
"typeNum": 0,
"uvNum": 9
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 12,
"orderNum": 0,
"pvNum": 16,
"sortNum": 0,
"typeNum": 0,
"uvNum": 15
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 13,
"orderNum": 0,
"pvNum": 10,
"sortNum": 0,
"typeNum": 0,
"uvNum": 8
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 14,
"orderNum": 0,
"pvNum": 11,
"sortNum": 0,
"typeNum": 0,
"uvNum": 11
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 15,
"orderNum": 0,
"pvNum": 13,
"sortNum": 0,
"typeNum": 0,
"uvNum": 12
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 16,
"orderNum": 0,
"pvNum": 9,
"sortNum": 0,
"typeNum": 0,
"uvNum": 9
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 17,
"orderNum": 0,
"pvNum": 11,
"sortNum": 0,
"typeNum": 0,
"uvNum": 11
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 18,
"orderNum": 0,
"pvNum": 8,
"sortNum": 0,
"typeNum": 0,
"uvNum": 8
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 19,
"orderNum": 0,
"pvNum": 7,
"sortNum": 0,
"typeNum": 0,
"uvNum": 7
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 20,
"orderNum": 0,
"pvNum": 6,
"sortNum": 0,
"typeNum": 0,
"uvNum": 5
}
],
"md5": "ecf1e9c581018a18abd8fcbf7fb56991",
"message": "SUCCESS"
}
3、2级入口分析
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
appType | String | true | yohobuy_android/yohobuy_ios/wap/web/all | 客户端类类型 |
appEdition | String | true | 客户端版本:AB | |
date | date | false | 2016-12-26 | 时间类型(默认当天) |
channel | int | true | 1-男生 2-女生 3-潮童 4-创意生活 | 频道 |
请求方法
get http://ap2.yohobuy.com/data-analysis-web/resources_analysis/secondLevelEntryAnalysis?appType=yohobuy_ios&channel=1&typeNum=2&sortNum=4&appEdition=A&date=2017-02-25
响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 69,
"eventCode": "1_5_1",
"iconName": "新品到着",
"outCount": 543,
"outRate": "10.01%",
"totalCount": 5423
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 137,
"eventCode": "1_5_10",
"iconName": "折扣专区",
"outCount": 1411,
"outRate": "42.25%",
"totalCount": 3340
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 66,
"eventCode": "1_5_2",
"iconName": "潮流优选",
"outCount": 2197,
"outRate": "59.28%",
"totalCount": 3706
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 87,
"eventCode": "1_5_3",
"iconName": "早春新著",
"outCount": 591,
"outRate": "10.08%",
"totalCount": 5864
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 60,
"eventCode": "1_5_4",
"iconName": "明星原创",
"outCount": 1206,
"outRate": "56.01%",
"totalCount": 2153
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 122,
"eventCode": "1_5_5",
"iconName": "全部分类",
"outCount": 2494,
"outRate": "40.87%",
"totalCount": 6102
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 99,
"eventCode": "1_5_6",
"iconName": "人气搭配",
"outCount": 1263,
"outRate": "24.75%",
"totalCount": 5104
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 78,
"eventCode": "1_5_7",
"iconName": "潮流话题",
"outCount": 157,
"outRate": "23.36%",
"totalCount": 672
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 133,
"eventCode": "1_5_8",
"iconName": "全球购",
"outCount": 1524,
"outRate": "39.64%",
"totalCount": 3845
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 42,
"eventCode": "1_5_9",
"iconName": "限定发售",
"outCount": 2211,
"outRate": "12.78%",
"totalCount": 17305
}
],
"md5": "c3aa9ca20837f614fd184e849e59c86f",
"message": "SUCCESS"
}
4、top20分析
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
appType | String | true | yohobuy_android/yohobuy_ios/wap/web/all | 客户端类类型 |
appEdition | String | true | 客户端版本:AB | |
date | date | false | 2016-12-26 | 时间类型(默认当天) |
cid | int | true | ||
typeNum | int | true | ||
sortNum | int | true | d |
请求方法
get http://127.0.0.1:8080/resources_analysis/dlist_analysis?appType=yohobuy_ios&cid=1&typeNum=2&sortNum=4&appEdition=A&date=2017-02-25
响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 1,
"orderNum": 0,
"pvNum": 18,
"sortNum": 4,
"typeNum": 2,
"uvNum": 9
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 2,
"orderNum": 0,
"pvNum": 11,
"sortNum": 4,
"typeNum": 2,
"uvNum": 7
},
{
"appEdition": "A",
"appType": "android",
"carNum": 2,
"cid": 1,
"date": "2017-02-25",
"indexNum": 3,
"orderNum": 0,
"pvNum": 10,
"sortNum": 4,
"typeNum": 2,
"uvNum": 5
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 4,
"orderNum": 0,
"pvNum": 4,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 5,
"orderNum": 0,
"pvNum": 14,
"sortNum": 4,
"typeNum": 2,
"uvNum": 7
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 6,
"orderNum": 0,
"pvNum": 10,
"sortNum": 4,
"typeNum": 2,
"uvNum": 5
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 7,
"orderNum": 0,
"pvNum": 8,
"sortNum": 4,
"typeNum": 2,
"uvNum": 5
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 8,
"orderNum": 0,
"pvNum": 7,
"sortNum": 4,
"typeNum": 2,
"uvNum": 4
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 9,
"orderNum": 0,
"pvNum": 2,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 10,
"orderNum": 0,
"pvNum": 7,
"sortNum": 4,
"typeNum": 2,
"uvNum": 4
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 11,
"orderNum": 0,
"pvNum": 2,
"sortNum": 4,
"typeNum": 2,
"uvNum": 1
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 12,
"orderNum": 0,
"pvNum": 4,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 13,
"orderNum": 0,
"pvNum": 6,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 15,
"orderNum": 0,
"pvNum": 3,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 16,
"orderNum": 0,
"pvNum": 8,
"sortNum": 4,
"typeNum": 2,
"uvNum": 4
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 17,
"orderNum": 0,
"pvNum": 4,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 18,
"orderNum": 0,
"pvNum": 5,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 2,
"cid": 1,
"date": "2017-02-25",
"indexNum": 19,
"orderNum": 0,
"pvNum": 6,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 20,
"orderNum": 0,
"pvNum": 5,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 18,
"cid": 1,
"date": "2017-02-25",
"indexNum": 1,
"orderNum": 2,
"pvNum": 741,
"sortNum": 4,
"typeNum": 2,
"uvNum": 587
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 26,
"cid": 1,
"date": "2017-02-25",
"indexNum": 2,
"orderNum": 5,
"pvNum": 624,
"sortNum": 4,
"typeNum": 2,
"uvNum": 518
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 3,
"orderNum": 1,
"pvNum": 481,
"sortNum": 4,
"typeNum": 2,
"uvNum": 402
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 14,
"cid": 1,
"date": "2017-02-25",
"indexNum": 4,
"orderNum": 1,
"pvNum": 440,
"sortNum": 4,
"typeNum": 2,
"uvNum": 376
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 3,
"cid": 1,
"date": "2017-02-25",
"indexNum": 5,
"orderNum": 0,
"pvNum": 352,
"sortNum": 4,
"typeNum": 2,
"uvNum": 298
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 12,
"cid": 1,
"date": "2017-02-25",
"indexNum": 6,
"orderNum": 0,
"pvNum": 314,
"sortNum": 4,
"typeNum": 2,
"uvNum": 275
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 13,
"cid": 1,
"date": "2017-02-25",
"indexNum": 7,
"orderNum": 2,
"pvNum": 356,
"sortNum": 4,
"typeNum": 2,
"uvNum": 307
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 17,
"cid": 1,
"date": "2017-02-25",
"indexNum": 8,
"orderNum": 2,
"pvNum": 297,
"sortNum": 4,
"typeNum": 2,
"uvNum": 261
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 11,
"cid": 1,
"date": "2017-02-25",
"indexNum": 9,
"orderNum": 0,
"pvNum": 280,
"sortNum": 4,
"typeNum": 2,
"uvNum": 246
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 14,
"cid": 1,
"date": "2017-02-25",
"indexNum": 10,
"orderNum": 2,
"pvNum": 269,
"sortNum": 4,
"typeNum": 2,
"uvNum": 242
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 1,
"date": "2017-02-25",
"indexNum": 11,
"orderNum": 2,
"pvNum": 291,
"sortNum": 4,
"typeNum": 2,
"uvNum": 247
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 6,
"cid": 1,
"date": "2017-02-25",
"indexNum": 12,
"orderNum": 0,
"pvNum": 245,
"sortNum": 4,
"typeNum": 2,
"uvNum": 216
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 1,
"date": "2017-02-25",
"indexNum": 13,
"orderNum": 0,
"pvNum": 217,
"sortNum": 4,
"typeNum": 2,
"uvNum": 185
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 14,
"orderNum": 1,
"pvNum": 216,
"sortNum": 4,
"typeNum": 2,
"uvNum": 197
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 7,
"cid": 1,
"date": "2017-02-25",
"indexNum": 15,
"orderNum": 2,
"pvNum": 182,
"sortNum": 4,
"typeNum": 2,
"uvNum": 165
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 15,
"cid": 1,
"date": "2017-02-25",
"indexNum": 16,
"orderNum": 3,
"pvNum": 190,
"sortNum": 4,
"typeNum": 2,
"uvNum": 174
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 7,
"cid": 1,
"date": "2017-02-25",
"indexNum": 17,
"orderNum": 1,
"pvNum": 202,
"sortNum": 4,
"typeNum": 2,
"uvNum": 179
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 8,
"cid": 1,
"date": "2017-02-25",
"indexNum": 18,
"orderNum": 1,
"pvNum": 182,
"sortNum": 4,
"typeNum": 2,
"uvNum": 163
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 19,
"orderNum": 1,
"pvNum": 180,
"sortNum": 4,
"typeNum": 2,
"uvNum": 164
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 20,
"orderNum": 1,
"pvNum": 171,
"sortNum": 4,
"typeNum": 2,
"uvNum": 150
}
],
"md5": "83ee8d377fa07fcc59efece6a90a8706",
"message": "SUCCESS"
}