get_timeseries
Retrieve historical Plausible timeseries data for visitors and pageviews over a chosen date range and interval to plot trendline charts.
Instructions
Get historical timeseries trendlines (visitors, pageviews) over time for plotting charts.
Args: site_id: Domain name of the site in Plausible (e.g. 'surendranb.com'). date_range: Time period ('day', '7d', '30d', 'month', '6mo', '12mo', or 'YYYY-MM-DD,YYYY-MM-DD'). Default '30d'. interval: Aggregation bucket: 'date' (daily) or 'month' (monthly). Default 'date'. token: Optional Plausible API token. If omitted, uses PLAUSIBLE_API_KEY environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | ||
| site_id | Yes | ||
| interval | No | date | |
| date_range | No | 30d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |