Skip to main content

google-search-console

Export Google Search Console page metrics to CSV for 7d, 28d, and 3m windows.

Usage

  • worai google-search-console --site <property> --client-secrets <path> [options]

Options

OptionTypeDefaultDescription
--sitestringrequiredGSC property to query (e.g., sc-domain:example.com or https://example.com/).
--client-secretsstringrequiredPath to OAuth client secrets JSON file.
--tokenstringgsc_token.jsonPath to store OAuth token.
--portint0Local redirect port for OAuth flow (0 = random).
--outputstringgsc_pages.csvOutput CSV path.
--row-limitint25000Row limit for GSC API pagination.
--typechoicewebSearch type: web, image, video, news, discover.
--data-statechoiceallData state: all or final.

Examples

  • worai google-search-console --site sc-domain:example.com --client-secrets ./client_secrets.json
  • worai google-search-console --site https://example.com/ --client-secrets ./client_secrets.json --output gsc.csv