get_search_analytics
Retrieve top search queries and pages with clicks, impressions, CTR, and position. Specify dimensions like query or page, or omit to get both.
Instructions
Get top search queries and pages with clicks, impressions, CTR and average position for a time period. Without explicit dimensions it returns both top queries and top pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Trailing window in days used when startDate/endDate are omitted (default 28). The window ends 2 days ago because Search Console data lags. | |
| endDate | No | End date (YYYY-MM-DD). | |
| siteUrl | Yes | Property URL exactly as registered in Search Console: "https://example.com/" for URL-prefix properties or "sc-domain:example.com" for domain properties | |
| rowLimit | No | Max rows to return (default 25). | |
| startDate | No | Start date (YYYY-MM-DD). Provide together with endDate, or omit both and use "days". | |
| dimensions | No | Dimensions to group by (e.g. ["query"], ["page"], ["query","page"]). Omit to get both top queries and top pages. |