Run Report
wsp_run_report_gscRun flexible Google Search Console search analytics reports with custom dimensions, date ranges, filters, sorting, and pagination up to 25,000 rows.
Instructions
Flexible search analytics: choose dimensions, date range, search type, filters, sorting and pagination (up to 25,000 rows).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | JSON array of filter objects for AND logic across multiple dimensions. Overrides filter_dimension/filter_operator/filter_expression when provided. Each object must have 'dimension', 'operator', and 'expression' keys. Valid dimensions: query, page, country, device. Valid operators: contains, equals, notContains, notEquals. Example: [{"dimension":"country","operator":"equals","expression":"usa"},{"dimension":"device","operator":"equals","expression":"MOBILE"}] | |
| sort_by | No | Metric to sort by (clicks, impressions, ctr, position). Applied client-side to the returned rows, since Google only sorts by clicks. | clicks |
| end_date | No | End date in YYYY-MM-DD format (defaults to today) | |
| site_url | Yes | Exact GSC property URL from wsp_list_websites_gsc (e.g. "https://example.com/" or "sc-domain:example.com"). Domain properties cover all subdomains — use the domain property as site_url and filter by page to analyze a specific subdomain. | |
| row_limit | No | Maximum number of rows to return (max 25000) | |
| start_row | No | Starting row for pagination | |
| data_state | No | Data freshness — "all" (default, matches GSC dashboard) or "final" (confirmed data only, 2-3 day lag) | |
| dimensions | No | Dimensions to group by, comma-separated (e.g., "query,page,device") | query |
| start_date | No | Start date in YYYY-MM-DD format (defaults to 28 days ago) | |
| search_type | No | Type of search results (WEB, IMAGE, VIDEO, NEWS, DISCOVER) | WEB |
| sort_direction | No | Sort direction (ascending or descending). For position, ascending puts the best (lowest) average position first. | descending |
| filter_operator | No | Single filter operator (contains, equals, notContains, notEquals) | contains |
| filter_dimension | No | Single filter dimension (query, page, country, device). Use 'filters' instead for multiple filters. | |
| filter_expression | No | Single filter expression value |