# Usage statistics

> View a bucket's capacity, data transfer, and request curves, and learn about the query range and how the numbers are counted.

The **Statistics (统计)** tab shows a bucket's capacity, data transfer, and requests by day. Use it to watch growth trends and locate traffic anomalies.

To get there, go to **Object Storage (对象存储) › [Bucket list (桶列表)](https://console.bitiful.com/buckets)** › click the bucket name › **Statistics**.

## The three charts

| Chart                                  | Curves                                                                                                              | Unit  |
| :------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----- |
| **Bucket capacity statistics (桶容量统计)** | The bucket's storage                                                                                                | MB    |
| **Data transfer statistics (流量使用统计)**  | **S4 traffic (S4 流量)**; the traffic and origin fetch traffic of each CDN domain that uses this bucket as its origin | MB    |
| **Request statistics (请求数统计)**         | **S4 requests (S4 请求数)**; the requests and origin fetch requests of each CDN domain                                 | Count |

Hover over a curve to see that day's value. Capacity and data transfer are calculated in units of 1000 (1 GB = 1000 MB).

## Choose a time range

You can choose dates for each chart separately. Click **Search (搜索)** to query and **Reset (重置)** to restore the defaults.

| Item                    | Description                                                                                          |
| :---------------------- | ---------------------------------------------------------------------------------------------------- |
| Default range           | About the last month                                                                                 |
| Span of a single query  | Up to 31 days. Longer ranges show "查询时间跨度不可超过31天" (the query span can't exceed 31 days)              |
| Earliest queryable time | Within 90 days. Earlier dates show "仅支持查询90天内的数据" (only data within the last 90 days can be queried) |
| Day boundaries          | Beijing time                                                                                         |

## How the numbers are counted

- **Capacity** takes the value from the last sample of the day, so the current day's data changes over time. Early in the morning, it may carry over the previous day's value.
- **S4 traffic and S4 requests** are the part generated by direct access to the bucket.
- **CDN traffic and requests** are the part generated by visitors accessing CDN domains.
- **Origin fetch traffic and origin fetch requests** are the part where a CDN node misses its cache and fetches the file from the bucket.
- The charts are for watching trends. For charges, the [billing statement (扣费账单)](https://docs.bitiful.com/en/prices/handbook/bills.md) is authoritative.

For more detailed statistics on CDN domains, see [CDN statistics](https://docs.bitiful.com/en/cdn/handbook/statistics.md). For per-request details, see [Access logs](https://docs.bitiful.com/en/console/access-logs.md).

## Get data with the API

The [Object storage API](https://docs.bitiful.com/en/developer/api/s4.md) can query a bucket's capacity, file count, and access logs, and the [Static CDN API](https://docs.bitiful.com/en/developer/api/cdn.md) can query a CDN domain's data transfer and requests. They suit feeding your own monitoring system.

## FAQ

<details>
<summary>The capacity in the bucket list doesn't match the statistics chart</summary>

The bucket list is near-real-time data, while the chart is sampled hourly and shown by day, so they can differ for a short time.

</details>

<details>
<summary>Traffic suddenly rose</summary>

First check whether it's S4 traffic or the traffic of a specific CDN domain, then investigate by source in the [access logs](https://docs.bitiful.com/en/console/access-logs.md). Handle hotlinking with [access control](https://docs.bitiful.com/en/bitiful-s4/handbook/anti-leech.md) or the CDN's [access control](https://docs.bitiful.com/en/cdn/handbook/access-control.md).

</details>

<details>
<summary>Origin fetch traffic is close to CDN traffic</summary>

This means the cache hit rate is low. Check your [cache rules](https://docs.bitiful.com/en/cdn/handbook/cache.md) and whether URLs carry frequently changing parameters.

</details>

<details>
<summary>The data for July 12, 2025 is low</summary>

The S4 egress and origin fetch statistics for that day were abnormal. See the [changelog](https://docs.bitiful.com/en/changelog/overview.md) for details.

</details>
