Top values of one dimension
get_breakdownRanks one dimension by visits over a window: pages (all, entry, exit), traffic sources or UTM campaigns, countries/regions/cities, devices/browsers/OSes, languages, outbound clicks, custom events. Combine with filters to segment ("countries of visits from google.com"). Beyond visits: crawlers (AI and search bots by requests), links (short links by clicks), event_properties (the properties of one custom event, with event_name). Rows past limit are dropped; raise limit (max 200) rather than calling twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive, YYYY-MM-DD; default today | |
| from | No | First day, YYYY-MM-DD; overrides period | |
| limit | No | Rows to return, at most 200 | |
| detail | No | detailed adds columns and splits; concise costs fewer tokens | concise |
| period | No | Window ending now; days are whole days in the timezone. Ignored when from is set. | 30d |
| crawler | No | With crawlers: one bot from that ranking, to list the paths it requested | |
| filters | No | Keep only matching traffic; values of one dimension are OR-ed, dimensions AND-ed | |
| site_id | Yes | site_id from list_sites; a site name, slug or domain also resolves | |
| timezone | No | IANA zone for day boundaries; default the user's | |
| dimension | Yes | ||
| event_name | No | For event_properties |