Get analytics for a host
get_host_analyticsFetch headless web analytics for a single verified host. Returns totals or daily page views and unique visitors.
Instructions
Get headless web analytics for one host/subdomain the app owns (e.g. a tenant's subdomain). Returns page views and unique visitors with totals; granularity='day' adds a daily series. The host MUST be a verified origin of the project, or the request is rejected (403). Use for per-tenant or per-subdomain traffic questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days (1–90, default 30). | |
| host | Yes | The host to read, e.g. 'wes.example.com'. Must be a verified origin of the selected app. | |
| project | No | The app to read, as a project id from list_projects (e.g. 'proj_3a8f137bccdd4f'). With a workspace key (cd_wk_) this is required unless you've set a default via use_project; with a single-app key it is ignored. | |
| granularity | No | 'total' (default) for totals only, or 'day' for a daily series. |