Search Console: Query Search Analytics
gsc_query_search_analyticsReport organic Google Search performance for one Search Console property of the user's connected Google login: clicks, impressions, CTR and average position, grouped by query, page, country, device, search appearance and/or date over a date window, with filters (one landing page, non-brand queries, one country, a URL pattern) and the search surface (web, image, video, news, Discover). Typical uses: top queries, clicks by landing page, daily trend, mobile vs desktop, which queries send traffic to one URL. Rows come back one object per row keyed by the dimension names, ordered by clicks; one page per call, up to 5000 rows (default 100), pass start_row for the next page. Search Console counts organic results only — never present its clicks as paid traffic or compare them with ad clicks as like for like. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gsc_query_search_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | Row filters, all ANDed: each {dimension, operator, expression}. Examples: one landing page {"dimension":"page","operator":"equals","expression":"https://example.com/pricing"}; non-brand queries {"dimension":"query","operator":"notContains","expression":"acme"}; one country {"dimension":"country","operator":"equals","expression":"usa"}; mobile only {"dimension":"device","operator":"equals","expression":"MOBILE"}; a URL pattern {"dimension":"page","operator":"includingRegex","expression":"/blog/.*"}. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex (RE2 syntax). A filtered dimension need not be a grouping dimension. | |
| end_date | No | Last day, YYYY-MM-DD or relative. The last 2-3 days are partial unless data_state is all. Default: 3 days ago. | |
| site_url | No | The Search Console property: sc-domain:example.com (a domain property) or https://example.com/ (a URL-prefix property), as gsc_list_sites lists it. A bare domain is matched against both forms. May be omitted when the connected login reaches exactly one property. | |
| row_limit | No | Rows per call, 1-5000 (default 100), ordered by clicks descending. Pass start_row to page. | |
| start_row | No | Row to start at, counting from 0; for paging. | |
| data_state | No | final (default) returns only finalised days; all includes the last 2-3 partial days. | |
| dimensions | No | Group rows by any of: query (the search term), page (the landing URL), country (ISO 3166-1 alpha-3, e.g. usa), device (DESKTOP, MOBILE, TABLET), searchAppearance (rich-result type), date. Omit for one totals row. Order is the key order in each row. | |
| start_date | No | First day, YYYY-MM-DD or relative (yesterday, 7daysAgo, 28daysAgo). Dates are Pacific time, as Search Console counts them. Default: 28 days ending 3 days ago, the freshest window whose data is final. | |
| search_type | No | Which search surface: web (default), image, video, news, discover, googleNews. Discover and Google News allow no query dimension. | |
| aggregation_type | No | How clicks and impressions are counted: auto (default — by page when page is a dimension or filter, else by property), byPage, byProperty. Impressions by property count a result once per query; by page once per URL shown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | One object per row: each dimension by name, then clicks, impressions, ctr, position. Ordered by clicks descending. | |
| site | Yes | The property read, as Google spells it. | |
| totals | Yes | Sums over the returned rows only. | |
| endDate | Yes | Last day of the window, YYYY-MM-DD. | |
| startRow | Yes | The first row's offset; pass returnedRows + startRow to continue. | |
| startDate | Yes | First day of the window, YYYY-MM-DD. | |
| dimensions | Yes | Dimension names, in row key order. | |
| returnedRows | Yes | Rows in `rows`. | |
| responseAggregationType | No | How Google aggregated: byPage or byProperty. |