Traffic over time
Visitors, pageviews, sessions, revenue and conversions per time bucket across a period: use it for trends, peaks, “which day” questions and anything drawn as a line. granularity is hour, day, week or month and defaults to a sensible size for the period; at most 400 buckets are returned, so pick a coarser granularity for long periods. Visitors are unique within each bucket and do not add up across buckets: use get_stats for a period total. The last bucket may be marked partial because it is still filling. Takes range (a preset) or from and to, optional compare and filters. Includes days the site imported from another tool (its Plausible history: daily totals, visitors counted per day) unless imported is false; hostnames, regions and cities start on the first recorded day. Money is integer minor units (cents) in currency; rates are 0..1; durations are seconds; timestamps are ISO-8601 UTC.
Authorizations
Path Parameters
Query Parameters
Preset period: today (today), yesterday (yesterday), 24h (last 24 hours), 7d (last 7 days), 30d (last 30 days), 90d (last 90 days), mtd (month to date), last_month (last month), ytd (year to date), 12m (last 12 months), all (all time). Defaults to 30d. Use either this or from and to.
today, yesterday, 24h, 7d, 30d, 90d, mtd, last_month, ytd, 12m, all Narrow the data. Repeat the parameter to add filters; all must match. Format: dimension:op:value, for example country:is:DE. Dimensions: page, entry_page, exit_page, hostname, channel, source, referrer, utm_source, utm_medium, utm_campaign, utm_term, utm_content, country, region, city, browser, os, device, language, event, ai_assistant. Operators: is, is_not, contains.