Skip to content

v0.1.0

Choose a tag to compare

@rustyconover rustyconover released this 14 Nov 16:22
· 7 commits to main since this release

First release of vgi-google-search-console, a read-only VGI worker that exposes Google Search Console search performance, sitemaps and URL index status as ordinary DuckDB tables. It only requests the webmasters.readonly scope, and a single HTTP chokepoint refuses every write endpoint.

Surface (gsc.main)

Object Returns
sites (table, backed by all_sites()) every property the credential can see
search_analytics(site_url, dimensions =>, …) clicks, impressions, CTR and position
sitemaps(site_url) submitted sitemaps with status, errors and contents
url_inspection(site_url, url) Google's index status for one URL

search_analytics and sitemaps accept '' to walk every readable property.

Composed examples

These are in the catalog as examples, readable from duckdb_functions() and duckdb_tables():

  • sites LEFT JOIN search_analytics(''): every property's kind with its 28-day clicks and impressions, with 0 where Google returned no rows.
  • sitemaps('') vs search_analytics(page): per property, the URLs listed in sitemaps against the pages that earned impressions.
  • search_analytics, then LATERAL url_inspection: the top pages Google has seen that are in no sitemap, with their coverage state.

A new agent test task, idle_properties (sites joined with search_analytics), is graded by check_sql.

Install

ATTACH 'gsc' (TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-google-search-console@v0.1.0 vgi-google-search-console');
CREATE SECRET gsc (TYPE google_search_console, service_account_json '<key file contents>');
-- or: ATTACH ... (credentials 'oauth') for browser sign-in on a local machine

This needs Haybarn 2.0.0rc11 or newer, which provides the VGI 3 extension. Older VGI 2 extensions cannot attach this worker.

Known limits

  • Every call needs Google credentials. There is no anonymous access, and CI tests against a fake API.
  • The worker is read-only. It cannot add sites or submit or delete sitemaps.
  • Google applies its own Search Console API quotas, and URL inspection has strict daily per-property limits.
  • This is a source-only release. Nothing is published to PyPI and no binaries are attached.