# 边缘流量

`GET /cdn/data/{domain}/traffic`

按时间段统计 CDN 边缘节点向访问者输出的流量。

Base URL: https://api.bitiful.com

Authentication: API key in header `Authorization`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | CDN 加速域名。 |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `start_time` | integer | yes | 统计起始时间，Unix 时间戳，单位**秒**。 |
| `end_time` | integer | yes | 统计截止时间，Unix 时间戳，单位**秒**。 |
| `period` | enum | yes | 统计粒度：按小时、按天或按月聚合。 |

## Example request

```bash
curl -X GET https://api.bitiful.com/cdn/data/cdn.example.com/traffic
```

## Responses

- **200**: 按 `period` 聚合的统计数据（JSON）。
