Search Analytics Report
gsc_search_analyticsRetrieve Google Search Console performance data—clicks, impressions, CTR, and average position—by query, page, date, device, or country for a property and date range.
Instructions
Search Analytics (performance) report: clicks, impressions, CTR and average position grouped by dimensions, for a property and date range. Typical combos: daily trend [dimensions=["date"]], top queries [dimensions=["query"]], top pages [dimensions=["page"]], queries on one page [dimensions=["query"], filters=[{dimension:"page",expression:"...",operator:"equals"}]], device split [dimensions=["device"]], country split [dimensions=["country"]], query×page [dimensions=["query","page"]]. Dimensions: date, hour, query, page, country (ISO-3166 alpha-3), device (DESKTOP/MOBILE/TABLET), searchAppearance. Search type (type): web (default), image, video, news, discover, googleNews. Aggregation: auto (default), byPage, byProperty. Filter operators: contains, equals (default), notContains, notEquals, includingRegex (RE2), excludingRegex (RE2). Data lags ~2 days (dataState "all" includes fresher partial data). Max 25,000 rows per call; paginate with startRow. Results are top-N, sorted by clicks (by date when grouping by date); sortBy/sortOrder re-sort and minImpressions/minPosition/maxPosition filter the returned rows, e.g. page-two opportunities: dimensions ["query","page"], rowLimit 5000, minPosition 11, maxPosition 20, minImpressions 100, sortBy impressions.
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_search_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Search type: web (default), image, video, news, discover, googleNews. | |
| sortBy | No | Re-sort returned rows by clicks, impressions, ctr or position (the API itself orders by clicks). | |
| endDate | No | YYYY-MM-DD (PT). Overrides dateRange when both dates are given. | |
| filters | No | Filters, all ANDed: {dimension, expression, operator?}. | |
| siteUrl | No | Property like https://www.example.com/ or sc-domain:example.com. Omit if the account has exactly one property. | |
| rowLimit | No | 1-25000, default 1000. | |
| startRow | No | Zero-based row offset for pagination. | |
| dataState | No | all (fresher, partial) or final (default). | |
| dateRange | No | TODAY, YESTERDAY, LAST_7_DAYS, LAST_30_DAYS, MONTH_TO_DATE, YEAR_TO_DATE, LAST_MONTH (default LAST_30_DAYS) — sugar over explicit dates. | |
| sortOrder | No | desc or asc; default desc, but asc (best first) for position. | |
| startDate | No | YYYY-MM-DD (PT). Overrides dateRange when both dates are given. | |
| dimensions | No | Grouping dimensions, see tool description; default ["date"]. | |
| saveToPath | No | Write the result as CSV to this file instead of returning a table (recommended above ~200 rows); returns the path and a preview. | |
| maxPosition | No | Keep only rows with average position <= this (e.g. 20). | |
| minPosition | No | Keep only rows with average position >= this (e.g. 11 for page two). | |
| minImpressions | No | Keep only rows with at least this many impressions. | |
| aggregationType | No | auto (default), byPage, byProperty. |