export_search_analytics
Exports Google Search Console Search Analytics rows to a CSV file with auto-pagination and returns the saved file path plus a preview.
Instructions
Bulk-export Search Analytics rows (auto-paginated, up to 500,000) to a CSV file on this computer and return its path plus a preview.
Args: site_url: Exact property (defaults to GSC_SITE_URL) dimensions: e.g. "query,page" or "date,page,device" days: Look-back window when start_date is omitted (default 90) start_date: YYYY-MM-DD (optional) end_date: YYYY-MM-DD (optional) search_type: web, image, video, news, discover, googleNews filters: Optional AND filters max_rows: Safety cap (default 100000, max 500000) file_name: Optional file name; saved in GSC_EXPORT_DIR (default ~/Documents/sam-gsc-exports)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| filters | No | ||
| end_date | No | ||
| max_rows | No | ||
| site_url | No | ||
| file_name | No | ||
| dimensions | No | query,page | |
| start_date | No | ||
| search_type | No | web |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |