cloudflare_get_zone_analytics
Retrieves daily and total traffic analytics for a Cloudflare zone over a chosen period of up to 30 days, covering requests, cached requests, bandwidth, threats, page views, and unique visitors.
Instructions
A zone's traffic for the last N days (default 7, at most 30) from the GraphQL Analytics API: requests, cached requests, bandwidth, threats, page views and unique visitors, per day and in total. Older days may be missing on Free plans.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"zone": "<zone>"
},
"name": "cloudflare_get_zone_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days to cover, ending today (UTC). Default 7. | |
| zone | Yes | The zone: its name (example.com.au) or its 32-character zone ID. |