Bucket Publication Analytics
bucket_publication_analyticsGet a bucket website's analytics with bucket_id, or pass publication_id from bucket_get, bucket_publish, or bucket_publication_list. Event instants are UTC; calendar boundaries use the returned account time_zone. 24h is live/hourly; 7d/30d/90d are daily. Exact inclusive windows use both from and to. The returned from/to are the effective retained window; retention_limited is true when a preset was shortened. totals.views excludes bots, totals.hits includes them, and totals.views_all_time is the durable lifetime human-view count even after detailed daily rows expire. visitors is privacy-safe daily uniqueness, so a return on another day counts again. previous_period is null, and comparison values are null, unless the complete preceding window is retained; never treat null as zero. Free returns Basic analytics for 30 days with totals plus up to three paths and sources; paths_truncated or sources_truncated indicates more results exist. Personal and Pro return Detailed analytics with one- and two-year Rails retention respectively. activity is the newest outcome timeline; paths contains page views, downloads explicit file downloads, and document_pages document-page engagement. Static support assets are excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Inclusive end date in YYYY-MM-DD format; requires from. | |
| from | No | Inclusive start date in YYYY-MM-DD format; requires to. | |
| range | No | Analytics window: all, 24h, 7d, 30d, or 90d. | 30d |
| bucket_id | No | Revdoku bucket id returned by bucket_list or bucket_get, for example bkt_... | |
| publication_id | No | Website publication id returned by bucket_publish, bucket_publication_list, or bucket_get. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| bots | No | ||
| from | No | ||
| daily | No | ||
| paths | No | ||
| range | No | ||
| totals | No | ||
| buckets | No | ||
| sources | No | ||
| activity | No | Newest outcomes in the selected range, including privacy-safe aggregate public-site views/downloads/clicks plus protected opens, document views, forms, and recipient-link views. | |
| countries | No | ||
| downloads | No | ||
| last_week | No | Previous complete Monday-Sunday outcome totals: views, visitors, downloads, form submissions, password unlocks, and unique Require Email unlock contacts. | |
| referrers | No | ||
| time_zone | No | IANA time zone used for calendar boundaries and labels. This is the account time zone; event instants are recorded in UTC. | |
| granularity | No | ||
| manual_refs | No | ||
| availability | No | ||
| last_event_at | No | ||
| analytics_tier | No | ||
| document_pages | No | ||
| external_links | No | ||
| first_event_at | No | ||
| retention_days | No | ||
| details_visible | No | ||
| paths_not_found | No | ||
| paths_truncated | No | ||
| previous_period | No | The immediately preceding equal-length comparison window. Null for range all or when that complete window is outside retained history. Daily dates are inclusive; hourly timestamps form a contiguous 24-hour window. | |
| retention_limited | No | ||
| sources_truncated | No | ||
| previous_period_totals | No | Totals for previous_period. views excludes bots; hits includes them. Detailed values are null when unavailable for the account, and live 24h comparison values are null when either hourly window is unavailable. | |
| diff_vs_previous_period | No | Signed current-minus-previous differences for views, hits, visitors, clicks, downloads, asset hits, missing-path hits, and bot hits. Positive means growth; negative means decline. Detailed values are null when unavailable for the account, and live 24h differences are null when either hourly window is unavailable; never treat null as zero. |