{"schemaVersion":1,"resourceType":"connector","slug":"google-search-console","name":"Google Search Console","catalog":"gsc","description":"Search clicks, impressions, CTR and rankings for the sites you manage in Google Search Console","language":"Python","categories":["google"],"repository":"https://github.com/Query-farm/vgi-google-search-console","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.2.1","publishedAt":"2026-11-29T20:40:50Z","url":"https://github.com/Query-farm/vgi-google-search-console/releases/tag/v0.2.1"},"links":{"html":"https://query.farm/products/orchard/connectors/google-search-console/","llms":"https://query.farm/products/orchard/connectors/google-search-console/llms.txt","markdown":"https://query.farm/products/orchard/connectors/google-search-console/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/google-search-console.json","objects":"https://query.farm/products/orchard/api/v1/connectors/google-search-console/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=google-search-console&q={query}"},"authentication":{"mode":"required","guidance":"Supply your own service credentials or required connection options before querying protected data.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[{"type":"google_search_console","description":"Google Search Console credentials (scope webmasters.readonly). Provide ONE of: service_account_json (a service-account key, the account added to the Search Console property as a user); client_id + client_secret + refresh_token (an OAuth user grant); or access_token (short-lived). quota_project_id optionally bills API quota to a specific Google Cloud project.","documentation":"https://github.com/Query-farm/vgi-google-search-console#supplying-credentials-with-a-duckdb-secret","parameters":[{"name":"service_account_json","type":"VARCHAR","required":false,"redact":true,"description":"Contents of a service-account JSON key file."},{"name":"client_id","type":"VARCHAR","required":false,"redact":false,"description":"OAuth client id of a user grant."},{"name":"client_secret","type":"VARCHAR","required":false,"redact":true,"description":"OAuth client secret of a user grant."},{"name":"refresh_token","type":"VARCHAR","required":false,"redact":true,"description":"OAuth refresh token granting webmasters.readonly."},{"name":"access_token","type":"VARCHAR","required":false,"redact":true,"description":"Short-lived OAuth access token (about an hour)."},{"name":"quota_project_id","type":"VARCHAR","required":false,"redact":false,"description":"Google Cloud project to bill API quota to (optional)."}],"requiredBy":["all_sites","sitemaps","search_analytics","url_inspection"],"createSql":"CREATE SECRET google_search_console (\n    TYPE google_search_console,\n    service_account_json '<GOOGLE_SEARCH_CONSOLE_SERVICE_ACCOUNT_JSON>',  -- secret\n    client_id            '<client_id>',\n    client_secret        '<GOOGLE_SEARCH_CONSOLE_CLIENT_SECRET>',  -- secret\n    refresh_token        '<REFRESH_TOKEN>',  -- secret\n    access_token         '<ACCESS_TOKEN>',  -- secret\n    quota_project_id     '<quota_project_id>'\n);"}]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'gsc' AS gsc (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-google-search-console@v0.2.1 vgi-google-search-console'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'gsc' AS gsc (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-google-search-console:0.2.1'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'gsc' AS gsc (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-google-search-console@v0.2.1 vgi-google-search-console'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'gsc' AS gsc (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-google-search-console:0.2.1'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-google-search-console","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=google-search-console","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'gsc' AS gsc (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-google-search-console@v0.2.1 vgi-google-search-console'\n);","attachOptions":[{"name":"credentials","type":"VARCHAR","description":"Where credentials come from: 'auto' (default) uses the google_search_console secret and otherwise Application Default Credentials where the worker permits it; 'secret' requires the secret and never falls back; 'oauth' signs in locally through the browser to Query Farm's app and carries refreshable credentials in the client's opaque attach data.","required":false,"default":"auto"},{"name":"page_size","type":"BIGINT","description":"Rows fetched per search_analytics() API request, up to 25000 (the default).","required":false,"default":"25000"},{"name":"api_url","type":"VARCHAR","description":"Base URL of the Search Console API, for a proxy or a test double. Overriding it disables the Application Default Credentials fallback.","required":false,"default":"https://searchconsole.googleapis.com"}],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Find the search queries bringing visitors to your site","sql":"SELECT site_url, query, clicks, impressions, round(position, 1) AS position FROM gsc.main.search_analytics('', dimensions => ['query'], max_rows => 1000) ORDER BY clicks DESC LIMIT 25","requiresCredentials":true,"note":null,"objects":[{"name":"gsc.main.search_analytics","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/google-search-console/#obj-main-search_analytics","markdown":"https://query.farm/products/orchard/connectors/google-search-console/objects/table_function.bWFpbg.c2VhcmNoX2FuYWx5dGljcw.md","json":"https://query.farm/products/orchard/api/v1/connectors/google-search-console/objects/table_function.bWFpbg.c2VhcmNoX2FuYWx5dGljcw.json"}}],"evidence":{"status":"not_captured","note":"No executed result is recorded for this exact example. Catalog verification does not establish that this query ran."},"artifact":null},"objects":{"total":5,"index":"https://query.farm/products/orchard/api/v1/connectors/google-search-console/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=google-search-console&q={query}"},"agentTasks":["Which Google Search Console properties can I query, and what is my access to each?","How many clicks and impressions did each of my Search Console properties get from Google Search on each of the last 7 days?","How many clicks in total did each of my properties get from Google Search in the last 28 days?","What was the average position in Google Search of each of my properties over the last 28 days?","Which search queries brought the most clicks to my properties in the last 28 days?","Which pages across my properties got the most impressions in the last 28 days?","For searches made from the United States only, how do each property's clicks split between desktop, mobile and tablet?","How many clicks did each of my properties get yesterday, even if the number is not final?"],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-google-search-console","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed_with_credential_skips","total":6,"passed":1,"failed":0,"needs_credentials":5,"location":"uvx --from git+https://github.com/Query-farm/vgi-google-search-console@v0.2.1 vgi-google-search-console","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:13:24+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}