Top values of a dimension
get_breakdownVisitors and attributed revenue per value of one dimension. Defaults to visitors descending. Dimensions: channel, referrer, campaign, keyword, source, hostname, entry, exit, country, region, city, browser, os, device, page, goal, outbound. dim=page includes scroll: median maximum depth (percent), measured/tracked page-view counts, measurement coverage (fraction) and 25/50/75/100% milestone counts and shares of measured views (fractions). Missing depth is null, excluded from the median. Imported history has no scroll measurements. sort=scroll_depth only works with dim=page; unknown depths stay last in both directions. Use get_page_scroll for one exact page. Each row key can be used as a visit filter in other tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dim": "<dim>"
},
"name": "get_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive (YYYY-MM-DD). | |
| dim | Yes | The dimension to group by. | |
| from | No | First day (YYYY-MM-DD, site time zone). Use with to instead of period. | |
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| sort | No | Default visitors. scroll_depth sorts page medians only (dim=page), before limiting. | |
| limit | No | Rows to return. Default 10. | |
| period | No | Time range. Default 30d. today, yesterday, 24h, 7d, 30d, 90d, 12m, wtd, mtd, ytd, all. | |
| filters | No | Only visits that match every filter. A value is "is": {"country": "US"}; a list is "is any of": {"country": ["PT", "ES"]}; an object picks the operator: {"page": {"contains": "/blog"}}, {"channel": {"is_not": ["Direct", "Email"]}}, {"page": {"not_contains": "/admin"}}. Operators: is, is_not, contains, not_contains (case-insensitive). "visitor" is "new" or "returning". "ad" is an ad campaign as "google:<campaign id>" or "meta:<campaign id>" (the visits that the Ads page counts for it). Use "(none)" for empty values; countries take ISO codes or English names. | |
| sort_dir | No | Default desc. Unknown scroll depths stay last in either direction. |