Site analytics
site_analyticsReturns owner-only cookieless counts for a slug: views per UTC day, top paths, top referrer hosts, and AI crawler counts by user-agent family. Inputs: slug, optional from and to as YYYY-MM-DD (default the last 7 days; up to 90 days per request on Free and Hobby, 365 on Pro), optional format (json, or csv on Pro), and token. A longer range or csv below Pro returns plan_required with a Pro upgrade link. The accuracy field describes under-counting. No raw IP or full user agent is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last UTC day, YYYY-MM-DD. Default is today. | |
| from | No | First UTC day, YYYY-MM-DD. Default is 6 days before to. | |
| slug | Yes | Slug you own. | |
| token | No | Bearer token returned by your first publish (deed_tok_...). Optional if the MCP client sends Authorization: Bearer. | |
| format | No | json (default) or csv (Pro). csv returns the same counts as text in the csv field, one row per day total, path, referrer host, and crawler family: date,kind,key,views. |