{"schemaVersion":1,"resourceType":"connector","slug":"google","name":"Google APIs","catalog":"google","description":"Google Sheets, Drive, Calendar and YouTube, plus any Google API through Discovery","language":"Python","categories":["google"],"repository":"https://github.com/Query-farm/vgi-google","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.0","publishedAt":"2026-11-25T18:30:55Z","url":"https://github.com/Query-farm/vgi-google/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/google/","llms":"https://query.farm/products/orchard/connectors/google/llms.txt","markdown":"https://query.farm/products/orchard/connectors/google/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/google.json","objects":"https://query.farm/products/orchard/api/v1/connectors/google/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=google&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_service_account","description":"Google service-account credential (default auth for google_sheet / google_drive / google_calendar / google_call): the JSON key in key_json, optional subject for domain-wide delegation, optional scopes (space/comma list).","documentation":"https://cloud.google.com/iam/docs/keys-create-delete","parameters":[{"name":"key_json","type":"VARCHAR","required":false,"redact":true,"description":"Full JSON key file of the service account (IAM & Admin > Service Accounts > Keys)"},{"name":"subject","type":"VARCHAR","required":false,"redact":false,"description":"Optional user email to impersonate via domain-wide delegation"},{"name":"scopes","type":"VARCHAR","required":false,"redact":false,"description":"Optional OAuth scopes, space- or comma-separated; defaults per API"}],"requiredBy":["users","groups","group_members","org_units","domains","roles","role_assignments","chromeos_devices","mobile_devices","activities","usage_reports","alerts","group_settings","google_sheet","google_drive","google_calendar","google_youtube","google_call"],"createSql":"CREATE SECRET google_service_account (\n    TYPE google_service_account,\n    key_json '<GOOGLE_SERVICE_ACCOUNT_KEY_JSON>',  -- secret\n    subject  '<subject>',\n    scopes   '<scopes>'\n);"},{"type":"google_api_key","description":"Google API key for public-data APIs (google_youtube, public Sheets, google_call on keyed public APIs).","documentation":"https://cloud.google.com/docs/authentication/api-keys","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"API key from Google Cloud console > APIs & Services > Credentials"}],"requiredBy":["users","groups","group_members","org_units","domains","roles","role_assignments","chromeos_devices","mobile_devices","activities","usage_reports","alerts","group_settings","google_sheet","google_drive","google_calendar","google_youtube","google_call"],"createSql":"CREATE SECRET google_api_key (\n    TYPE google_api_key,\n    api_key '<GOOGLE_API_KEY_API_KEY>'  -- secret\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 'google' AS google (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-google@v0.5.0 vgi-google-worker'\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 'google' AS google (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-google:0.5.0'\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 'google' AS google (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-google@v0.5.0 vgi-google-worker'\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 'google' AS google (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-google:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-google","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","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 'google' AS google (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-google@v0.5.0 vgi-google-worker'\n);","attachOptions":[],"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 PDF documents in Google Drive","sql":"SELECT id, name FROM google.main.google_drive(query := \"mimeType='application/pdf'\", count := 100)","requiresCredentials":true,"note":null,"objects":[{"name":"google.main.google_drive","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/google/#obj-main-google_drive","markdown":"https://query.farm/products/orchard/connectors/google/objects/table_function.bWFpbg.Z29vZ2xlX2RyaXZl.md","json":"https://query.farm/products/orchard/api/v1/connectors/google/objects/table_function.bWFpbg.Z29vZ2xlX2RyaXZl.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":21,"index":"https://query.farm/products/orchard/api/v1/connectors/google/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=google&q={query}"},"agentTasks":["Using the google_apis discovery function, find the reachable Google API whose name is exactly 'sheets'. Return only its name, version and title columns.","Using the google_apis discovery function, what is the preferred version of the Google API whose name is exactly 'sheets'? Return only the version column for the row where name = 'sheets' and preferred is true.","Using the google_methods discovery function for the api 'drive' version 'v3', return the method and http_method columns for the method whose dotted name is exactly 'files.list'.","Using the google_apis discovery function, confirm the Google Calendar API is reachable. Return only the name and version columns for the API whose name is exactly 'calendar'.","Browse the worker's Google API directory view and return the name and version columns for the API whose name is exactly 'calendar'.","Using the google_methods discovery function for the api 'sheets' version 'v4', return only the http_method column for the method whose dotted name is exactly 'spreadsheets.values.get'.","Look up the preferred version of the Google API named exactly 'sheets' in the worker's Google API directory view, then use google_methods for that api and version to list the methods whose http_method is 'POST'. Return only the method column, ordered by method.","Compare the Drive API versions 'v2' and 'v3' with google_methods: count the dotted method names that exist in BOTH versions, grouped by the v3 http_method. Return two columns, http_method and n (the BIGINT count), ordered by http_method."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-google","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":2,"passed":2,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-google@v0.5.0 vgi-google-worker","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:11+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."]}