Query Search Analytics
search_analyticsRetrieve raw Google Search performance data—clicks, impressions, CTR, and average position—grouped by query, page, country, device, or date with filters, for custom questions other tools do not answer.
Instructions
Raw Google Search performance data (clicks, impressions, CTR, average position) grouped by any dimensions, with filters. Use for custom questions the other tools do not answer, e.g. clicks by date for one page, queries containing a word, or country breakdowns. Rows are sorted by clicks (or by date when grouped by date). Final data lags 2-3 days; with dataState "all" the default range ends today and includes fresh, still-changing data.
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": "search_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of the period in days, ending on the latest day with final data. Default 28. | |
| site | No | Search Console property, e.g. "sc-domain:example.com", "https://www.example.com/", or just "example.com" (matched to your properties). Optional when you have one property or GSC_DEFAULT_SITE is set. | |
| endDate | No | End date (YYYY-MM-DD, Pacific Time). Defaults to the latest day with final data (usually 2-3 days ago). | |
| filters | No | All filters must match (AND). Country uses alpha-3 codes ("usa"); device is DESKTOP, MOBILE or TABLET. | |
| rowLimit | No | Rows to return. Default 100. | |
| startRow | No | Zero-based offset for paging. | |
| dataState | No | "final" (default) or "all" to include fresh, still-changing data. | |
| startDate | No | Start date (YYYY-MM-DD, Pacific Time). Overrides days. Data goes back about 16 months. | |
| dimensions | No | Group by these dimensions, e.g. ["query"], ["page","query"], ["date"]. "hour" switches to hourly data (last 10 days by default). Omit for totals. | |
| searchType | No | Default "web". | |
| aggregationType | No |