get_search_analytics
Query raw Google Search Console search analytics with custom dates, dimensions, filters, and row limits when prebuilt reports lack the breakdown you need.
Instructions
Query raw Google Search Console search analytics with explicit dates, dimensions, filters, search type, row limit, and data state. Use when the user needs a custom breakdown that the shaped reports do not offer. Call get_performance_summary for a period overview, call get_top_queries or get_top_pages for a ranking, and call compare_periods for two named date ranges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | End date in YYYY-MM-DD format | |
| filters | No | Dimension filters to apply | |
| siteUrl | Yes | The site URL exactly as it appears in Google Search Console (e.g., "https://example.com/" or "sc-domain:example.com") | |
| rowLimit | No | Maximum rows to return (1-25000) | |
| dataState | No | "final" = finalized data only (the API's own default; the newest days are simply absent until they settle), "all" = also includes the freshest days, whose numbers may still change | all |
| startDate | Yes | Start date in YYYY-MM-DD format | |
| dimensions | No | Dimensions to group by (e.g. query, page, date, country, device, searchAppearance) | |
| searchType | No | Search type to analyze | web |
| aggregationType | No | auto |