Get Traffic By Country Tool
get_traffic_by_country_toolRetrieve traffic breakdown by country for a Cloudflare zone, using zone ID or domain and optional date range, to analyze regional traffic patterns.
Instructions
Get traffic breakdown by country.
Provide either zone_id or zone_name, not both.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_traffic_by_country_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of countries (default: 20) | |
| since | No | Start date ISO format (default: 30 days ago) | |
| until | No | End date ISO format (default: today) | |
| zone_id | No | Zone ID (32-character hex string) | |
| zone_name | No | Zone name (domain like example.com) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||