Google Search Console integration

Query Search Console, archive its data in a local SQLite file and join it with crawl evidence per URL. Access is read-only and uses your own Google credentials.

What it does

Connect read-only

SpiderHead uses the read-only Search Console scope only. There are three ways to supply access, and you choose one. provider-verify then checks access to the property separately, because a valid login does not prove you can read a given site.

  • Browser consent with your own Desktop OAuth client, through scripts/gsc_oauth_login.py. The refresh token is stored in your local config folder.
  • A Google service account that you add as a user on the property.
  • A ready access token in the GSC_ACCESS_TOKEN setting.

Local history

gsc-archive queues a date range and fetches it in small, resumable batches into a SQLite file you name. sources-sync keeps daily history per project and fetches only missing days. Nothing goes to a hosted service, and the files are created with owner-only permissions.

  • Dates are inclusive and use Pacific Time.
  • Different grains (totals, pages, queries) are separate datasets and are never summed.
  • Archives can hold queries and URLs, so keep them out of public reports and Git.

URL inspection

gsc-query with mode inspect_url returns Google's own index verdict for one URL. It stays on its own line, apart from the crawler's checks. Inside sf run, --gsc-inspect inspects a deterministic sample of up to 50 URLs, with local rate limits of 600 a minute and 2,000 per 24 hours.

  • Only the indexed version of a page can be inspected.
  • Google's per-site limits apply on top of the local ones.
  • Uninspected URLs stay unknown.

Three steps, one saved scan

  1. Connect one read-only grant

    Connect a read-only Google grant for a property you own. Check its status at any time.

  2. Archive it locally

    Queue a date range and run it in small, bounded batches into a SQLite file on your machine. Re-runs fetch only the missing days.

  3. Join it to each URL

    Clicks, impressions, position and CTR join to crawl pages by URL. Google's own index verdict for one URL stays on its own line.

One command

bash
spiderhead gsc-query --site-url sc-domain:example.com --start-date 2026-09-01 --end-date 2026-09-30

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A Search Console property you own or can read (a domain property or a URL prefix)
  • One credential: OAuth consent, a service account or an access token (all read-only)
  • A date range, within about the last 16 months
  • Optional: a crawl or scan to join the rows to

Limits

  • Google keeps about 16 months of data.
  • Anonymized queries are omitted and rows can be capped. A capped job is marked and is not a full export.
  • Clicks, impressions, CTR and position are not summed across grains.
  • The index verdict covers only the URLs you inspect.

Questions

Does my data go to a hosted service?
No. Requests go from your machine straight to the Google Search Console API, using your own grant. Results are stored in local SQLite files with owner-only permissions. Keep those files out of public reports and Git, because they can contain queries and URLs.
Can it change my Search Console property?
No. The grant is read-only. The tool only reads search analytics and URL inspection results.
How far back does the data go?
About 16 months, which is Google's available history. Dates are inclusive and use Pacific Time.
Why do some queries seem to be missing?
Google omits anonymized queries and can cap returned rows. A capped job is not a full export, and the tool marks it that way.
Does Google's index verdict replace the crawl checks?
No. Google's verdict for one URL comes from gsc-query in inspect_url mode. The crawler's own checks (metadata, headers, robots, redirects, structured data, render) run with inspect-url. The two results stay separate.
What does it cost, and what is stored locally?
The API is free within Google's quotas. SpiderHead stores your refresh token or service-account path in your local config folder, and the archive and history files where you point it. No token is written to the history files.

Try it on your own site