You need to enable JavaScript to run this app.
导航
GetAccessCoreTendencyStatistics - 获取项目中心-访问统计-核心指标趋势图
最近更新时间:2024.08.26 17:46:30首次发布时间:2024.07.10 15:50:06

请求说明

  • 请求方式:POST
  • 接口名称:GetAccessCoreTendencyStatistics
  • 请求地址:https://console.volcengine.com/cdp/open_platform/openapi

请求参数

参数

类型

是否必选

示例值

描述

Authorization

String

HMAC-SHA256 Credential=BDPP2952f97532xxxxxx/20240716/cn/openPlatform/request, SignedHeaders=host;x-content-sha256;x-date, Signature=131f3d297eb22a7xxxxxx

详细介绍请查阅调用方式文档

X-Tenant

String

1

项目ID

Query

参数

类型

是否必选

示例值

描述

ApiAction

String

GetAccessCoreTendencyStatistics

对应“请求说明”中的“接口名称”

ApiVersion

String

2023-08-08

版本号: 2023-08-08

Body

参数

类型

是否必选

示例值

描述

startDate

String

业务开始时期 (yyyy-MM-dd)

endDate

String

业务结束时期 (yyyy-MM-dd)

modules

Array

选择模块

excludeUsers

Array[str]

剔除用户ID

period

String

统计周期(默认 day)
day,week,month

indexName

String

指标值
totalUser(累计账号数)
newUser(新增账号数)
UV(活跃用户数)
PV(总访问数)
avgPV(人均访问次数)

返回参数

参数

类型

示例值

描述

code

Int

0

返回状态码 0表成功

msg

String

成功

成功 or错误信息

data

List

返回核心统计数据趋势

  • TendencyStatisticsResp

参数

类型

示例值

描述

lineName

String

totalUser

曲线名称

data

List

曲线数据

  • TendencyStatistics

参数

类型

示例值

描述

date

String

2023-06-20

日期

value

Number

6

数值

请求示例


返回示例

{
    "code": 0,
    "msg": "成功",
    "data": [
        {
            "lineName": "totalUser",
            "data": [
                {
                    "date": "2023-06-20",
                    "value": 6
                },
                {
                    "date": "2023-06-21",
                    "value": 6
                },
                {
                    "date": "2023-06-22",
                    "value": 6
                },
                {
                    "date": "2023-06-23",
                    "value": 6
                },
                {
                    "date": "2023-06-24",
                    "value": 6
                },
                {
                    "date": "2023-06-25",
                    "value": 6
                },
                {
                    "date": "2023-06-26",
                    "value": 6
                },
                {
                    "date": "2023-06-27",
                    "value": 6
                },
                {
                    "date": "2023-06-28",
                    "value": 6
                },
                {
                    "date": "2023-06-29",
                    "value": 6
                },
                {
                    "date": "2023-06-30",
                    "value": 7
                },
                {
                    "date": "2023-07-01",
                    "value": 7
                },
                {
                    "date": "2023-07-02",
                    "value": 7
                },
                {
                    "date": "2023-07-03",
                    "value": 7
                },
                {
                    "date": "2023-07-04",
                    "value": 7
                },
                {
                    "date": "2023-07-05",
                    "value": 7
                },
                {
                    "date": "2023-07-06",
                    "value": 7
                },
                {
                    "date": "2023-07-07",
                    "value": 7
                },
                {
                    "date": "2023-07-08",
                    "value": 7
                },
                {
                    "date": "2023-07-09",
                    "value": 7
                },
                {
                    "date": "2023-07-10",
                    "value": 7
                },
                {
                    "date": "2023-07-11",
                    "value": 8
                },
                {
                    "date": "2023-07-12",
                    "value": 8
                },
                {
                    "date": "2023-07-13",
                    "value": 8
                },
                {
                    "date": "2023-07-14",
                    "value": 8
                },
                {
                    "date": "2023-07-15",
                    "value": 8
                },
                {
                    "date": "2023-07-16",
                    "value": 8
                },
                {
                    "date": "2023-07-17",
                    "value": 8
                },
                {
                    "date": "2023-07-18",
                    "value": 8
                },
                {
                    "date": "2023-07-19",
                    "value": 8
                },
                {
                    "date": "2023-07-20",
                    "value": 8
                },
                {
                    "date": "2023-07-21",
                    "value": 8
                },
                {
                    "date": "2023-07-22",
                    "value": 8
                },
                {
                    "date": "2023-07-23",
                    "value": 8
                },
                {
                    "date": "2023-07-24",
                    "value": 8
                },
                {
                    "date": "2023-07-25",
                    "value": 8
                },
                {
                    "date": "2023-07-26",
                    "value": 8
                },
                {
                    "date": "2023-07-27",
                    "value": 8
                },
                {
                    "date": "2023-07-28",
                    "value": 8
                },
                {
                    "date": "2023-07-29",
                    "value": 8
                },
                {
                    "date": "2023-07-30",
                    "value": 8
                },
                {
                    "date": "2023-07-31",
                    "value": 8
                },
                {
                    "date": "2023-08-01",
                    "value": 8
                },
                {
                    "date": "2023-08-02",
                    "value": 8
                },
                {
                    "date": "2023-08-03",
                    "value": 8
                },
                {
                    "date": "2023-08-04",
                    "value": 8
                },
                {
                    "date": "2023-08-05",
                    "value": 8
                },
                {
                    "date": "2023-08-06",
                    "value": 8
                },
                {
                    "date": "2023-08-07",
                    "value": 8
                },
                {
                    "date": "2023-08-08",
                    "value": 8
                },
                {
                    "date": "2023-08-09",
                    "value": 8
                },
                {
                    "date": "2023-08-10",
                    "value": 8
                },
                {
                    "date": "2023-08-11",
                    "value": 8
                },
                {
                    "date": "2023-08-12",
                    "value": 8
                },
                {
                    "date": "2023-08-13",
                    "value": 8
                },
                {
                    "date": "2023-08-14",
                    "value": 8
                },
                {
                    "date": "2023-08-15",
                    "value": 8
                },
                {
                    "date": "2023-08-16",
                    "value": 8
                },
                {
                    "date": "2023-08-17",
                    "value": 8
                },
                {
                    "date": "2023-08-18",
                    "value": 8
                },
                {
                    "date": "2023-08-19",
                    "value": 8
                }
            ]
        }
    ]
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HTTP 状态码

错误码

错误信息

说明

400

invalidParameter

PARAMETER INVALID

参数非法,检查入参。