pages.statistics
Get CDN traffic for one static website this Vee3 account hosts.
Returns request count, bandwidth, cache hit rate, and bandwidth by country for a UTC date range. Request count includes every file the CDN served, not unique visitors. The range is inclusive. When the user or agent omits dates, the last 7 UTC days including today are used. The range can be at most 31 days.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | Inclusive UTC end date (YYYY-MM-DD). Defaults to today UTC. | |
| page_id | Yes | Page id returned by pages.create. | |
| date_from | No | Inclusive UTC start date (YYYY-MM-DD). Defaults to 6 days before date_to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | Inclusive UTC end date actually used (YYYY-MM-DD). | |
| page_id | No | Unique identifier for the page. | |
| date_from | No | Inclusive UTC start date actually used (YYYY-MM-DD). | |
| request_count | No | CDN requests served in the range, including HTML, CSS, images, and other files. Not unique visitors. | |
| cache_hit_rate | No | Fraction of requests served from cache, from 0 to 1. | |
| bandwidth_bytes | No | Total bytes the CDN served in the range. | |
| traffic_by_country | No | Bandwidth by country code, largest first. Omits countries with no traffic. |