Get top pages or referrers for a host
get_host_top_pagesRetrieve the most-viewed pages or top referrers for a specific host, ranked by views with pagination.
Instructions
Get the top pages or top referrers for one host the app owns, ranked and paginated. Returns rows of { key, views } highest-first, where key is a page path (default) or a referrer. Set dimension='top_referrers' for traffic sources. The host must belong to the selected app. Use for 'most-viewed pages on this subdomain' or 'where its traffic comes from'.
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 belong to the selected app. | |
| limit | No | Max rows to return (1–100, default 25), highest-first. | |
| 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. | |
| dimension | No | What to rank: 'top_pages' (default) or 'top_referrers'. |