index.md
7.93 KB
接口描述
1、首页总览
请求方法
get http://run.yohops.com/data-analysis-web/index/queryIndexOverview?type=ios
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
type | String | true | android/ios/all | 客户端类类型 |
响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"yesterday": {
"cancleAmount": 448304.68,
"cancleAmountRate": 0.2787,
"grossMarginRate": 0.3441,
"orderCount": 4122,
"paymentAmount": 1152268.34,
"paymentAmountRate": 0.7163,
"profitAmount": 532488.65,
"profitWithoutCouponAmount": 463378.65,
"pv": 6131964,
"totalAmount": 1608555.02,
"uv": 81401
},
"today": {
"cancleAmount": 350969.55,
"cancleAmountRate": 0.2355,
"grossMarginRate": 0.3463,
"orderCount": 4000,
"paymentAmount": 1090100.78,
"paymentAmountRate": 0.7314,
"profitAmount": 507176.94,
"profitWithoutCouponAmount": 441937.94,
"pv": 6102618,
"totalAmount": 1490365.01,
"uv": 81940
},
"lastWeek": {
"cancleAmount": 487967.84,
"cancleAmountRate": 0.2606,
"grossMarginRate": 0.3357,
"orderCount": 5036,
"paymentAmount": 1384180.14,
"paymentAmountRate": 0.7394,
"profitAmount": 623928.9,
"profitWithoutCouponAmount": 532820.9,
"pv": 7352676,
"totalAmount": 1872147.98,
"uv": 90234
}
},
"md5": "5d6598712b93f1a8c912ea552dfd5b5c",
"message": "success!"
}
2、首页趋势
请求方法
get http://run.yohops.com/data-analysis-web/index/queryIndexTrend?type=ios
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
type | String | true | android/ios/all | 客户端类类型 |
响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"msg": "查询成功",
"yesterday": [
{
"date": "17",
"grossMarginRate": 0.3594,
"uv": 0,
"profitAmount": 44720.26,
"cancleOrderCount": 74,
"pv": 0,
"orderCount": 364,
"oldScanUser": 0,
"paymentAmount": 91742.51,
"channelNewScanUser": 0,
"totalAmount": 124896.78,
"useCouponAmount": 5763.52,
"cancleAmount": 33154.27,
"cancleAmountRate": 0.2033,
"paymentAmountRate": 0.7967,
"paymentOrderCount": 290,
"profitWithoutCouponAmount": 38956.74,
"newScanUser": 0
},
{
"date": "18",
"grossMarginRate": 0.3479,
"uv": 0,
"profitAmount": 43744.49,
"cancleOrderCount": 94,
"pv": 0,
"orderCount": 369,
"oldScanUser": 0,
"paymentAmount": 91768.69,
"channelNewScanUser": 0,
"totalAmount": 126204.05,
"useCouponAmount": 5669.87,
"cancleAmount": 34435.36,
"cancleAmountRate": 0.2547,
"paymentAmountRate": 0.7453,
"paymentOrderCount": 275,
"profitWithoutCouponAmount": 38074.62,
"newScanUser": 0
},
{
"date": "19",
"grossMarginRate": 0.3178,
"uv": 0,
"profitAmount": 34610.83,
"cancleOrderCount": 82,
"pv": 0,
"orderCount": 316,
"oldScanUser": 0,
"paymentAmount": 73819.12,
"channelNewScanUser": 0,
"totalAmount": 108912.48,
"useCouponAmount": 4796.18,
"cancleAmount": 35093.36,
"cancleAmountRate": 0.2595,
"paymentAmountRate": 0.7405,
"paymentOrderCount": 234,
"profitWithoutCouponAmount": 29814.65,
"newScanUser": 0
}
],
"success": true,
"today": [
{
"date": "17",
"grossMarginRate": 0.3637,
"uv": 0,
"profitAmount": 52137.23,
"cancleOrderCount": 107,
"pv": 0,
"orderCount": 381,
"oldScanUser": 0,
"paymentAmount": 94640.81,
"channelNewScanUser": 0,
"totalAmount": 143236.19,
"useCouponAmount": 4901.3,
"cancleAmount": 48595.38,
"cancleAmountRate": 0.2808,
"paymentAmountRate": 0.7192,
"paymentOrderCount": 274,
"profitWithoutCouponAmount": 47235.93,
"newScanUser": 0
},
{
"date": "18",
"grossMarginRate": 0.3649,
"uv": 0,
"profitAmount": 39033.41,
"cancleOrderCount": 67,
"pv": 0,
"orderCount": 321,
"oldScanUser": 0,
"paymentAmount": 83513.62,
"channelNewScanUser": 0,
"totalAmount": 106980.65,
"useCouponAmount": 5276.96,
"cancleAmount": 23467.03,
"cancleAmountRate": 0.2087,
"paymentAmountRate": 0.7913,
"paymentOrderCount": 254,
"profitWithoutCouponAmount": 33756.45,
"newScanUser": 0
},
{
"date": "19",
"grossMarginRate": 0.3515,
"uv": 0,
"profitAmount": 39465.72,
"cancleOrderCount": 82,
"pv": 0,
"orderCount": 330,
"oldScanUser": 0,
"paymentAmount": 77428.15,
"channelNewScanUser": 0,
"totalAmount": 112265,
"useCouponAmount": 4627.99,
"cancleAmount": 34836.85,
"cancleAmountRate": 0.2485,
"paymentAmountRate": 0.7515,
"paymentOrderCount": 248,
"profitWithoutCouponAmount": 34837.73,
"newScanUser": 0
}
]
},
"md5": "fb29d48d2857a90c326804d930b96dad",
"message": "success!"
}
3、终端分布
请求方法
get http://run.yohops.com/data-analysis-web/index/queryUvAndOrdersGroupByPlatform
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
date | String | false | 2010-01-01 | 时间,不传默认当天 |
响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"androidUv": 0.2505,
"iosUv": 0.7495,
"iosOrders": 0.7434,
"androidOrders": 0.2566
},
"md5": "ca7644e4590bc8c289489becb6e068cd",
"message": "success!"
}
4、新老客占比
请求方法
get http://run.yohops.com/data-analysis-web/index/queryUserDistribution
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
date | String | false | 2010-01-01 | 时间,不传默认当天 |
响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"newUser": 0.1799,
"oldScanUser": 0.9406,
"oldUser": 0.8201,
"newScanUser": 0.0594
},
"md5": "c425e91b00ab090bf3f3f2c738cc6a75",
"message": "success!"
}