Get daily visitors and pageviews
get_daily_seriesOne row per day for one site over a period, in the site's timezone: visitors, pageviews, and the per-visit averages, on every day whatever its size (metrics_withheld is always false). Each day's visitors figure counts every visitor once for that day, so adding days up counts a returning reader once per day. A null average means not measured. Costs ceil(days/7) × 2 units. A range can include history imported from another analytics tool: imported says whether it is included and for which days, and each day's instrument says whether Pulse measured it or it was imported.
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_daily_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive, YYYY-MM-DD, in the site's timezone. | |
| from | No | First day, YYYY-MM-DD, in the site's timezone. Use with to, instead of period, only for a range period cannot express. At most 366 days. | |
| period | No | 7d = today and the 6 days before it; 30d = today and the 29 days before it; month = this calendar month so far; year = this calendar year so far. All in the site's timezone. Use this rather than computing dates. Omit together with from/to for 7d. | |
| site_id | Yes | The site's id, a UUID, from list_sites. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| range | Yes | ||
| site_id | Yes | ||
| imported | No | Present only when the range includes days imported from another analytics tool: whether the days include them (included), which days (from, through), the tool (source), and why they were left out (reason). Absent means no imported day is involved. | |
| min_cell_size | Yes | ||
| withheld_days | Yes |