search_analytics
Query Google Search Console search analytics to retrieve clicks, impressions, CTR, and average position for a site, with filters by query, page, country, device, and date range.
Instructions
Query search analytics data from Google Search Console. Returns clicks, impressions, CTR, and position for your site.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteUrl": "<siteUrl>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "search_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | End date in YYYY-MM-DD format | |
| siteUrl | Yes | Site URL exactly as it appears in Search Console (e.g. https://example.com/ or sc-domain:example.com) | |
| rowLimit | No | Max rows to return (default 100, max 25000) | |
| startDate | Yes | Start date in YYYY-MM-DD format | |
| dimensions | No | Comma-separated dimensions: query, page, country, device, searchAppearance, date | |
| pageFilter | No | Filter by page URL. Prefix with regex: for regex matching. | |
| searchType | No | Type of search results to query | web |
| queryFilter | No | Filter by search query. Prefix with regex: for regex matching. | |
| deviceFilter | No | Filter by device type | |
| countryFilter | No | Filter by country (ISO 3166-1 alpha-3, e.g. USA, GBR) |