# 实时日志

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

查询 CDN 域名的实时访问日志，仅支持查询 **3 天内** 的日志。

单次最多返回 1000 条；需要更多时，把返回结果中最后一条的时间戳作为下一次请求的 `start_time` 继续翻页。

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 | no | 起始时间，Unix 时间戳，单位**纳秒**；同时用作分页游标。 |
| `codes` | enum | no | 按 HTTP 状态码过滤。 |
| `limit` | integer | no | 单次返回的条数。 |

## Example request

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

## Responses

- **200**: 日志列表（JSON）。
