Get visitors over time
get_timeseriesVisitors and pageviews over time. By default per hour (periods of 2 days or less), per day up to four months, per week up to a year, then per month; pass interval to choose (weeks start on Monday), for example a year month by month. A week or a month is its days added up. revenue gives the net revenue of the buckets that have payments, per currency, cut the same way (empty without Stripe); it starts on the site's first measured day. The last bucket may be in progress. measured_since says when the site received its first event: buckets before it are zero because Bearing was not installed, not because nobody came.
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": "<site>"
},
"name": "get_timeseries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (site timezone), included. | |
| from | No | Start date YYYY-MM-DD (site timezone), with `to`. | |
| site | Yes | The site: its domain (example.com), its id, or its public id. See list_sites. | |
| period | No | A preset period ending today: today, 7d, 30d, 90d, 1y (one year) or all (everything since the site's first visit, five years at most). Default 30d. Ignored when from/to are given. | |
| interval | No | hour, day, week or month. Default: hour for 2 days or less, day up to four months, week up to a year, month beyond. |