get_search_analytics
Retrieve Search Console clicks, impressions, CTR, and position data by query, page, country, or device. Filter and segment results to diagnose traffic drops and find ranking opportunities.
Instructions
Retrieve Google Search Console search analytics data.
Args: dimensions: List of dimensions from: country, device, page, query, searchAppearance, date, brandedClassification start_date: Start date in YYYY-MM-DD format (defaults to 30 days ago) end_date: End date in YYYY-MM-DD format (defaults to 3 days ago) filters: List of filter objects (e.g., [{"dimension": "country", "operator": "equals", "expression": "usa"}]). Filter by brandedClassification with operator "equals" and expression BRANDED or NON_BRANDED; that cannot be combined with a query filter in the same request. filter_lists: Multi-value filters, several exact values for one dimension in one request (e.g., [{"dimension": "country", "expressions": ["usa", "gbr", "deu"]}, {"dimension": "device", "expressions": ["MOBILE", "TABLET"]}]). Dimension must be country or device; a dimension cannot appear in both filters and filter_lists. search_type: Type of search ('web', 'image', 'video', 'news', 'discover', 'googleNews', 'webMultimodal'). webMultimodal covers Google Lens, Circle to Search, and image uploads, and cannot be grouped by query. row_limit: Maximum number of rows to return (max 25000) start_row: Starting row for pagination (0-based) summary_only: If True, returns only aggregated totals (Token Efficient) intent: Short plain-English description of what the user is trying to learn/accomplish. site_url: Target site URL (e.g. 'sc-domain:example.com' or 'https://example.com/'). If omitted, uses configured site. data_state: 'final' (default, verified data ~72h delay) or 'all' (includes preliminary data from last 24-48h). fresh_data: If True, shorthand for data_state='all' to inspect recent preliminary search data.
Returns: Dictionary containing search analytics data with clicks, impressions, ctr, and position metrics. A 'caveat' string accompanies an empty brandedClassification result: branded data is served only to eligible properties, and the caveat says whether the property is eligible.
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": "get_search_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | No | ||
| filters | No | ||
| end_date | No | ||
| site_url | No | ||
| row_limit | No | ||
| start_row | No | ||
| data_state | No | final | |
| dimensions | No | ||
| fresh_data | No | ||
| start_date | No | ||
| search_type | No | web | |
| filter_lists | No | ||
| summary_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |