get_traffic
Retrieve website traffic analytics including visitors, pageviews, and more. Filter by time range and group by source or other dimensions.
Instructions
Get traffic analytics for a site using structured parameters
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": {
"site_id": "<site_id>"
},
"name": "get_traffic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The website domain to analyze (e.g., 'example.com') | |
| time_range | No | Time period to analyze | 7d |
| metrics | No | Metrics to calculate | |
| dimensions | No | Properties to group results by | |
| filters | No | Filter conditions to apply (e.g., [['is', 'visit:country', ['US']]]) |