Get analytics summary
get_analytics_summaryGet a summary of account performance over a trailing window: page views, gross and net revenue (in cents), and active subscribers. Use for 'how did I do this month' questions covering the entire account.
Instructions
Summarise the account's performance over a trailing window: page views, gross and net revenue, and active subscriber count.
Use it for 'how did I do this month' style questions. These are whole-account totals — it cannot break results down per article, and it covers a trailing window ending today rather than an arbitrary date range.
Reads only. Requires an API key. Revenue is returned in cents (revenue_cents gross, revenue_net_cents after fees) with a formatted revenue_usd added for convenience — read the cents fields when doing arithmetic. Zero views is a real answer, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Size of the trailing window in days, ending today. 1-365, defaults to 30. Use 7 for a week, 365 for a year. |