Peak hours
get_peak_hoursVisits, sales and revenue by weekday and hour in the site's time zone, and the busiest three hours when the data is enough to say.
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_peak_hours"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | A custom range's last day (YYYY-MM-DD), with from. | |
| from | No | A custom range's first day (YYYY-MM-DD), with to. Up to 366 days, not past today. | |
| site | No | The site's id. Optional: the API key's site is the one read. | |
| period | No | A preset period, in the site's time zone. Leave out for the tool's default, or give from and to instead. | |
| filters | No | Visits that match every filter (AND). Each dimension at most once. |