xcdn统计
更新时间:2026-05-18
全局数据查询接口
本接口用于查询XCDN带宽流量统计信息。
| Method | Path | 说明 |
|---|---|---|
| POST | /v2/xcdn/stat/query | 查询XCDN统计,不同的统计指标由post参数中的metric指定 |
请求体
| 参数 | 可选 | 类型 | 说明 |
|---|---|---|---|
| metric | 必选 | string | 指定查询统计指标类型,当前只支持metric为flow的查询,对应的指标有流量和带宽 |
| endTime | 可选 | timestamp | 查询的时间范围结束值,默认为当前时间,时间跨度最长90天。UTC时间 |
| startTime | 可选 | timestamp | 查询的时间范围起始值,默认为endTime前推24小时。UTC时间 |
| period | 可选 | int | 查询结果的粒度,单位秒,可选值为60、300、3600、86400,默认值为300 |
| keyType | 可选 | int | 标识keys内容,可选值为0、1,分别表示域名、userId,默认值为0 |
| keys | 可选 | []string | 域名或userId,最多只能查询100个域名,查询userId时只能查询当前账号(keyType=1时,keys为空) |
| groupByKey | 可选 | boolean | 查询结果是否根据key聚合,true返回按照key聚合后的结果,false返回整体结果,默认值为false |
| productType | 可选 | string | 合法值为xcdn-302、xcdn-sdk、xcdn、cdn、all,分别表示查询xcdn-302统计、xcdn-sdk统计、xcdn统计(302+sdk),cdn统计、xcdn+cdn统计数据,默认值为xcdn |
响应体
| 参数 | 类型 | 说明 |
|---|---|---|
| status | string | 正常返回的时候为"ok" |
| count | int | details中打点数据条数 |
| details | []DetailItem | 统计打点数据 |
| summary | Summary | 请求时间段内的总流量和峰值带宽 |
| days | []DayInfo | 请求时间段内按天分割的总流量和峰值带宽 |
DetailItem 类型如下
| 参数 | 类型 | 说明 |
|---|---|---|
| timestamp | timestamp | 时间点。UTC时间 |
| key | string | 数据聚合粒度,值为域名、userId或者total,分别表示按照域名聚合数据,按照userId聚合数据以及求和数据 |
| flow | int | 流量,单位:B |
| bps | int | 带宽,单位:bps |
Summary 类型如下
| 参数 | 类型 | 说明 |
|---|---|---|
| totalFlow | int | 请求时段的总流量 |
| peakBandwidth | int | 请求时段的峰值带宽 |
DayInfo 类型如下
| 参数 | 类型 | 说明 |
|---|---|---|
| date | string | YYYY-MM-DD格式北京时间 |
| totalFlow | int | date时间段内的总流量 |
| peakBandwidth | int | date时间段内的峰值带宽 |
| peakBandwidthTime | string | YYYY-MM-DDTHH:mm:ssZ格式UTC时间 |
请求示例
Plain Text
1POST /v2/xcdn/stat/query HTTP/1.1
2Host: cdn.baidubce.com
3
4{
5 "startTime": "2023-04-12T10:00:00Z",
6 "endTime": "2023-04-13T10:00:00Z",
7 "period": 3600,
8 "metric": "flow",
9 "groupByKey":true,
10 "productType": "xcdn-sdk",
11 "keys": [
12 "test.baidu.com"
13 ]
14}
响应示例
Plain Text
1HTTP/1.1 200 OK
2Server: nginx/1.16.1
3Date:Fri, 14 Apr 2023 09:23:57 GMT
4Content-Type: application/json; charset=utf-8
5Transfer-Encoding: chunked
6Connection: keep-alive
7X-Powered-By: PHP/7.1.15
8x-bce-request-id: 91505d6e-4a9b-c10a-4187-bf7ffcd50ea
9
10{
11 "status": "ok",
12 "details": [
13 {
14 "timestamp": "2023-04-12T10:00:00Z",
15 "key": "test.baidu.com",
16 "flow": 19882,
17 "bps": 44
18 },
19 {
20 "timestamp": "2023-04-12T11:00:00Z",
21 "key": "test.baidu.com",
22 "flow": 20651,
23 "bps": 45
24 },
25 {
26 "timestamp": "2023-04-12T12:00:00Z",
27 "key": "test.baidu.com",
28 "flow": 12800,
29 "bps": 28
30 },
31 {
32 "timestamp": "2023-04-12T13:00:00Z",
33 "key": "test.baidu.com",
34 "flow": 16559,
35 "bps": 36
36 },
37 {
38 "timestamp": "2023-04-12T14:00:00Z",
39 "key": "test.baidu.com",
40 "flow": 19611,
41 "bps": 43
42 },
43 {
44 "timestamp": "2023-04-12T15:00:00Z",
45 "key": "test.baidu.com",
46 "flow": 16877,
47 "bps": 37
48 },
49 {
50 "timestamp": "2023-04-12T16:00:00Z",
51 "key": "test.baidu.com",
52 "flow": 33426,
53 "bps": 74
54 },
55 {
56 "timestamp": "2023-04-12T17:00:00Z",
57 "key": "test.baidu.com",
58 "flow": 27513,
59 "bps": 61
60 },
61 {
62 "timestamp": "2023-04-12T18:00:00Z",
63 "key": "test.baidu.com",
64 "flow": 34756,
65 "bps": 77
66 },
67 {
68 "timestamp": "2023-04-12T19:00:00Z",
69 "key": "test.baidu.com",
70 "flow": 30811,
71 "bps": 68
72 },
73 {
74 "timestamp": "2023-04-12T20:00:00Z",
75 "key": "test.baidu.com",
76 "flow": 34372,
77 "bps": 76
78 },
79 {
80 "timestamp": "2023-04-12T21:00:00Z",
81 "key": "test.baidu.com",
82 "flow": 46220,
83 "bps": 102
84 },
85 {
86 "timestamp": "2023-04-12T22:00:00Z",
87 "key": "test.baidu.com",
88 "flow": 31795,
89 "bps": 70
90 },
91 {
92 "timestamp": "2023-04-12T23:00:00Z",
93 "key": "test.baidu.com",
94 "flow": 29757,
95 "bps": 66
96 },
97 {
98 "timestamp": "2023-04-13T00:00:00Z",
99 "key": "test.baidu.com",
100 "flow": 29448,
101 "bps": 65
102 },
103 {
104 "timestamp": "2023-04-13T01:00:00Z",
105 "key": "test.baidu.com",
106 "flow": 32179,
107 "bps": 71
108 },
109 {
110 "timestamp": "2023-04-13T02:00:00Z",
111 "key": "test.baidu.com",
112 "flow": 30548,
113 "bps": 67
114 },
115 {
116 "timestamp": "2023-04-13T03:00:00Z",
117 "key": "test.baidu.com",
118 "flow": 27476,
119 "bps": 61
120 },
121 {
122 "timestamp": "2023-04-13T04:00:00Z",
123 "key": "test.baidu.com",
124 "flow": 21258,
125 "bps": 47
126 },
127 {
128 "timestamp": "2023-04-13T05:00:00Z",
129 "key": "test.baidu.com",
130 "flow": 30985,
131 "bps": 68
132 },
133 {
134 "timestamp": "2023-04-13T06:00:00Z",
135 "key": "test.baidu.com",
136 "flow": 31801,
137 "bps": 70
138 },
139 {
140 "timestamp": "2023-04-13T07:00:00Z",
141 "key": "test.baidu.com",
142 "flow": 34067,
143 "bps": 75
144 },
145 {
146 "timestamp": "2023-04-13T08:00:00Z",
147 "key": "test.baidu.com",
148 "flow": 24996,
149 "bps": 55
150 },
151 {
152 "timestamp": "2023-04-13T09:00:00Z",
153 "key": "test.baidu.com",
154 "flow": 20546,
155 "bps": 45
156 }
157 ],
158 "count": 24,
159 "summary": {
160 "totalFlow": 658334,
161 "peakBandwidth": 102
162 },
163 "days": [
164 {
165 "date": "2023-04-12",
166 "totalFlow": 106380,
167 "peakBandwidth": 45,
168 "peakBandwidthTime": "2023-04-12T11:00:00Z"
169 },
170 {
171 "date": "2023-04-13",
172 "totalFlow": 551954,
173 "peakBandwidth": 102,
174 "peakBandwidthTime": "2023-04-12T21:00:00Z"
175 }
176 ]
177}
95带宽查询接口
本接口用于查询XCDN月95峰值带宽。
| Method | Path | 说明 |
|---|---|---|
| POST | /v2/xcdn/stat/billing | XCDN月95峰值带宽查询 |
请求体
| 参数 | 可选 | 类型 | 说明 |
|---|---|---|---|
| domains | 可选 | []string | 查询的域名列表,当该列表为空是查询该用户的所有域名的数据 |
| endTime | 可选 | timestamp | 查询的时间范围结束值,默认为当前时间,时间跨度最长90天。UTC时间 |
| startTime | 可选 | timestamp | 查询的时间范围起始值,默认为endTime前推24小时。UTC时间 |
| productType | 可选 | string | 合法值为xcdn-302、xcdn-sdk、xcdn、cdn、all,分别表示查询xcdn-302统计、xcdn-sdk统计、xcdn统计(302+sdk),cdn统计、xcdn+cdn统计数据,默认值为xcdn |
响应体
| 参数 | 可选 | 类型 | 说明 |
|---|---|---|---|
| billingDetails | 必选 | billingDetail | 查询的数据 |
billingDetail 类型说明
| 参数 | 可选 | 类型 | 说明 |
|---|---|---|---|
| billBand | 必选 | int | 95峰值带宽值 |
| billTime | 必选 | string | 该数据点的时间,UTC格式 |
请求示例
Plain Text
1POST /v2/xcdn/stat/billing HTTP/1.1
2Host: cdn.baidubce.com
3
4{
5 "domains" : [
6 "test.baidu.com"
7 ],
8 "startTime": "2023-04-12T10:00:00Z",
9 "endTime": "2023-04-13T10:00:00Z",
10 "productType": "xcdn-sdk"
11}
响应示例
Plain Text
1HTTP/1.1 200 OK
2Server: nginx/1.16.1
3Fri, 14 Apr 2023 09:58:30 GMT
4Content-Type: application/json; charset=utf-8
5Transfer-Encoding: chunked
6Connection: keep-alive
7X-Powered-By: PHP/7.1.15
8x-bce-request-id: c6993174-1d52-ad10-d81a-7d46a804049b
9
10{
11 "billingDetails": {
12 "billBand": 135,
13 "billTime": "2023-04-12T18:35:00Z"
14 }
15}
多条件维度数据查询
本接口用于查询多维度条件 XCDN 统计数据,例如对分省份运营商、特定传输协议、特定通信协议等条件下的统计数据查询。
| Method | Path | 说明 |
|---|---|---|
| POST | /v2/xcdn/stat/query | 查询多维度条件 XCDN 统计数据 |
Query 参数
variousConditions=1
请求体
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| metric | string | 是 | 指定查询统计指标类型,当前支持如下类型: xcdn_uflow:边缘流量、带宽 xcdn_upv:边缘请求数、QPS xcdn_flow_hit:流量命中率 xcdn_request_hit:请求命中率 xcdn_ucode:边缘状态码 |
| startTime | string | 否 | UTC时间,查询的时间范围起始值,默认为endTime 前推24小时。示例:2025-12-01T08:00:00Z。。 |
| endTime | string | 否 | UTC时间,查询的时间范围结束值,默认为当前时间。 |
| period | string | 否 | 查询结果的粒度,单位秒,可选值为60、300、3600、86400,默认值为300。 |
| keyType | int | 否 | 标识keys内容,可选值为0、1,分别表示域名、userId,默认值为0。 |
| keys | string[] | 否 | 域名或userId,最多只能查询100个域名,查询userId时只能查询当前账号(keyType=1时,keys为空)。 |
| groupByKey | boolean | 否 | 查询结果是否根据key聚合,true返回按照key聚合后的结果,false返回整体结果,默认值为 false。 |
| productType | string | 否 | 当前仅支持 xcdn-302。 |
| extra | ExtraEntry | 否 | 额外的查询条件,如查询分省份运营商数据、分协议传输数据、分通信协议数据。 |
查询时间范围限制:
- startTime 和 endTime 之间的时间范围不大于 365 天;
- 当查询的 period 为 60 时,startTime 和 endTime 之间的时间范围不大于 7 天;
- 当查询的 period 小于等于 300 时,startTime 和 endTime 之间的时间范围不大于 30天。
ExtraEntry 类型:
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| prov | string | 否 | 查询的省份全拼,默认为空,查询全国数据。 |
| isp | string | 否 | 查询的运营商代码,默认为空,查询所有运营商数据。 |
| protocol | string | 否 | 查询的传输协议,可填写http、https、all,默认all。 |
| ipVersion | string | 否 | 查询的通信协议,可填写 ipv4、ipv6、all,默认all。 |
响应体
基本数据结构:
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| details | DetailItem[] | 是 |
DetailItem 类型:
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| key | string | 是 | 一般为域名,当查询的是聚合数据时,此项值为 "total"。 |
| data | Data[] | 是 |
Data 类型:
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| timestamp | string | 是 | UTC 时间字符串,举例:2025-12-01T08:00:00Z。 |
| values | Value[] | 否 | 当查询全局数据时,values 只有一项;当查询分区域 (prov + isp) 数据时,存在多项。 |
Value 类型:
| 字段 | 类型 | 说明 |
|---|---|---|
| flow | int | 传输字节数。 |
| bps | float | 平均传输速率,单位:bps(bits per second)。 |
| isp | string | 因特网服务提供商,如电信(ct)、移动(cmnet)、联通(cnc)等。 |
| prov | string | 省份,如北京(beijing)、山东(shandong)等。 |
| codes | map[string]int | 状态码详情。 |
| codexx | map[string]int | 分类别的状态码聚合详情,如 2xx、4xx、5xx 等。 |
| pv | int | 请求数。 |
| qps | float | 每秒请求数。 |
| hitrate | float | 命中率。 |
注:应使用指针类型接收其中的基础数据,比如:用 *int 作为 flow 字段的类型,当其值为 null 时,表示未查询该指标,用以和零值进行区分。
请求响应示例
全部查询 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true
16}
17
18## 响应体
19[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:40:00Z","values":[{"flow":6133020,"bps":163547}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"flow":20596452,"bps":549238}]}]}]
全部查询 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true
16}
17
18## 响应体
19{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:40:00Z","values":[{"pv":0}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"pv":0}]}]}]}
全部查询 | 请求命中率
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_request_hit",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true
16}
17
18## 响应体
19{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:40:00Z","values":[{"hitrate":51116.25}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"hitrate":50489.25}]}]}]}
全部查询 | 流量命中率
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_flow_hit",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true
16}
17
18
19## 响应体
20{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:40:00Z","values":[{"hitrate":0.5}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"hitrate":0.5}]}]}]}
全部查询 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true
16}
17
18## 响应体
19{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"codes":{"400":600036,"200":600030},"codexx":{"4xx":600036,"2xx":600030}}]},{"timestamp":"2026-04-03T02:55:00Z","values":[{"codes":{"400":10562202,"200":10562100},"codexx":{"4xx":10562202,"2xx":10562100}}]},{"timestamp":"2026-04-03T02:50:00Z","values":[{"codes":{"200":46328232,"400":46328688},"codexx":{"2xx":46328232,"4xx":46328688}}]},{"timestamp":"2026-04-03T02:45:00Z","values":[{"codes":{"200":5410260,"400":5410314},"codexx":{"2xx":5410260,"4xx":5410314}}]}]}]}
省份 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","flow":300009,"bps":8000}]},{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","flow":3003330,"bps":80088}]}]}]}
省份 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","pv":300045}]},{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","pv":3003870}]}]}]}
省份 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","codes":{"200":4501710,"400":4501755},"codexx":{"2xx":4501710,"4xx":4501755}}]}]}]}
运营商 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "isp":"ct"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"isp":"ct","flow":2002210,"bps":53392}]},{"timestamp":"2026-04-03T03:00:00Z","values":[{"isp":"ct","flow":200005,"bps":5333}]}]}]}
运营商 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "isp":"ct"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"isp":"ct","pv":2002570}]},{"timestamp":"2026-04-03T03:00:00Z","values":[{"isp":"ct","pv":200029}]}]}]}
运营商 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "isp":"ct"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"isp":"ct","codes":{"200":3001110,"400":3001140},"codexx":{"2xx":3001110,"4xx":3001140}}]}]}]}
通信协议 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:40:00Z","values":[{"flow":3066705,"bps":81778}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"flow":10298889,"bps":274637}]}]}]}
通信协议 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"pv":800064}]},{"timestamp":"2026-04-03T02:40:00Z","values":[{"pv":3066885}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"pv":10299501}]},{"timestamp":"2026-04-03T02:50:00Z","values":[{"pv":5102601}]}]}]}
通信协议 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"codes":{"400":5280795,"200":5280744},"codexx":{"4xx":5280795,"2xx":5280744}}]},{"timestamp":"2026-04-03T02:50:00Z","values":[{"codes":{"200":23162748,"400":23162976},"codexx":{"2xx":23162748,"4xx":23162976}}]},{"timestamp":"2026-04-03T02:45:00Z","values":[{"codes":{"200":2704968,"400":2704995},"codexx":{"2xx":2704968,"4xx":2704995}}]}]}]}
传输协议 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "protocol":"https"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"flow":800056,"bps":21334}]},{"timestamp":"2026-04-03T02:40:00Z","values":[{"flow":3066645,"bps":81777}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"flow":10298685,"bps":274631}]},{"timestamp":"2026-04-03T02:50:00Z","values":[{"flow":5102550,"bps":136068}]}]}]}
传输协议 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "protocol":"https"
18 }
19}
20
21## 响应体
22{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-03-31T18:45:00Z","values":[{"pv":5147}]},{"timestamp":"2026-04-02T16:10:00Z","values":[{"pv":11288}]}]}]}
省份 | 运营商 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg",
18 "isp":"ct"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","isp":"ct","flow":1001110,"bps":26696}]},{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","isp":"ct","flow":100003,"bps":2666}]}]}]}
省份 | 运营商 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg",
18 "isp":"ct"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","isp":"ct","pv":1001290}]}]}]}
省份 | 运营商 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg",
18 "isp":"ct"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","isp":"ct","codes":{"400":1500585,"200":1500570},"codexx":{"4xx":1500585,"2xx":1500570}}]}]}]}
省份 | 通信协议 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6",
18 "isp":"ct"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"isp":"ct","flow":2002330,"bps":53395}]},{"timestamp":"2026-04-03T03:00:00Z","values":[{"isp":"ct","flow":200041,"bps":5334}]}]}]}
省份 | 通信协议 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6",
18 "isp":"ct"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-01T10:10:00Z","values":[{"isp":"ct","pv":11406}]},{"timestamp":"2026-04-01T11:25:00Z","values":[{"isp":"ct","pv":16637}]}]}]}
省份 | 通信协议 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6",
18 "isp":"ct"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"isp":"ct","codes":{"200":1200924,"400":1200936},"codexx":{"2xx":1200924,"4xx":1200936}}]}]}]}
运营商 | 通信协议 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6",
18 "prov":"nmg"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","flow":300063,"bps":8001}]},{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","flow":3003510,"bps":80093}]}]}]}
运营商 | 通信协议 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6",
18 "prov":"nmg"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","pv":300027}]},{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","pv":3003690}]}]}]}
运营商 | 通信协议 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "ipVersion":"ipv6",
18 "prov":"nmg"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","codes":{"200":1801404,"400":1801422},"codexx":{"2xx":1801404,"4xx":1801422}}]}]}]}
通信协议 | 传输协议 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "protocol":"https",
18 "ipVersion":"ipv6"
19 }
20}
21
22## 响应体
23{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:40:00Z","values":[{"flow":3066735,"bps":81779}]},{"timestamp":"2026-04-03T02:35:00Z","values":[{"flow":10298991,"bps":274639}]}]}]}
省份 | 运营商 | 通信协议 | 流量带宽
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_uflow",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg",
18 "isp":"ct",
19 "ipVersion":"ipv6"
20 }
21}
22
23## 响应体
24{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","isp":"ct","flow":1001170,"bps":26697}]},{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","isp":"ct","flow":100021,"bps":2667}]}]}]}
省份 | 运营商 | 通信协议 | 请求数
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_upv",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg",
18 "isp":"ct",
19 "ipVersion":"ipv6"
20 }
21}
22
23## 响应体
24{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T02:55:00Z","values":[{"prov":"nmg","isp":"ct","pv":1001230}]}]}]}
省份 | 运营商 | 通信协议 | 状态码
Plain Text
1## 请求
2POST https://cdn.baidubce.com/v2/xcdn/stat/query?variousConditions=1
3
4## 请求体
5{
6 "startTime": "2026-03-31T16:00:00Z",
7 "endTime": "2026-04-03T16:00:00Z",
8 "period": 300,
9 "metric": "xcdn_ucode",
10 "productType": "xcdn-302",
11 "keyType": 0,
12 "keys": [
13 "test.baidu.com"
14 ],
15 "groupByKey": true,
16 "extra":{
17 "prov":"nmg",
18 "isp":"ct",
19 "ipVersion":"ipv6"
20 }
21}
22
23## 响应体
24{"details":[{"key":"test.baidu.com","data":[{"timestamp":"2026-04-03T03:00:00Z","values":[{"prov":"nmg","isp":"ct","codes":{"400":600474,"200":600468},"codexx":{"4xx":600474,"2xx":600468}}]}]}]}
评价此篇文章
