{"schemaVersion":1,"resourceType":"connector","slug":"search","name":"Search","catalog":"search","description":"Query Brave, Tavily, Exa, SearXNG, DuckDuckGo, SerpAPI and Serper web search from SQL through one interface","language":"Python","categories":["web"],"repository":"https://github.com/Query-farm/vgi-search","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-25T17:43:14Z","url":"https://github.com/Query-farm/vgi-search/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/search/","llms":"https://query.farm/products/orchard/connectors/search/llms.txt","markdown":"https://query.farm/products/orchard/connectors/search/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/search.json","objects":"https://query.farm/products/orchard/api/v1/connectors/search/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=search&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":"brave","description":"Optional Brave Search API key for web_search(provider := brave) / web_answer. Falls back to the BRAVE_API_KEY environment variable.","documentation":"https://brave.com/search/api/","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"Brave Search API key, issued from your account at https://brave.com/search/api/"}],"requiredBy":["web_search","search_providers"],"createSql":"CREATE SECRET brave (\n    TYPE brave,\n    api_key '<BRAVE_API_KEY>'  -- secret\n);"},{"type":"tavily","description":"Optional Tavily Search API key for web_search(provider := tavily) / web_answer. Falls back to the TAVILY_API_KEY environment variable.","documentation":"https://app.tavily.com/","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"Tavily Search API key, issued from your account at https://app.tavily.com/"}],"requiredBy":["web_answer","web_search","search_providers"],"createSql":"CREATE SECRET tavily (\n    TYPE tavily,\n    api_key '<TAVILY_API_KEY>'  -- secret\n);"},{"type":"exa","description":"Optional Exa Search API key for web_search(provider := exa) / web_answer. Falls back to the EXA_API_KEY environment variable.","documentation":"https://dashboard.exa.ai/api-keys","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"Exa Search API key, issued from your account at https://dashboard.exa.ai/api-keys"}],"requiredBy":["web_search","search_providers"],"createSql":"CREATE SECRET exa (\n    TYPE exa,\n    api_key '<EXA_API_KEY>'  -- secret\n);"},{"type":"serpapi","description":"Optional SerpApi (opt-in; requires VGI_SEARCH_ENABLE_SERP=1) key for web_search(provider := serpapi) / web_answer. Falls back to the SERPAPI_API_KEY environment variable.","documentation":"https://serpapi.com/manage-api-key","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"SerpApi (opt-in; requires VGI_SEARCH_ENABLE_SERP=1) key, issued from your account at https://serpapi.com/manage-api-key"}],"requiredBy":["web_search","search_providers"],"createSql":"CREATE SECRET serpapi (\n    TYPE serpapi,\n    api_key '<SERPAPI_API_KEY>'  -- secret\n);"},{"type":"serper","description":"Optional Serper.dev (opt-in; requires VGI_SEARCH_ENABLE_SERP=1) key for web_search(provider := serper) / web_answer. Falls back to the SERPER_API_KEY environment variable.","documentation":"https://serper.dev/api-key","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"Serper.dev (opt-in; requires VGI_SEARCH_ENABLE_SERP=1) key, issued from your account at https://serper.dev/api-key"}],"requiredBy":["web_search","search_providers"],"createSql":"CREATE SECRET serper (\n    TYPE serper,\n    api_key '<SERPER_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 'search' AS search (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-search@v0.5.0 vgi-search-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 'search' AS search (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-search: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 'search' AS search (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-search@v0.5.0 vgi-search-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 'search' AS search (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-search:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-search","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=search","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 'search' AS search (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-search@v0.5.0 vgi-search-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":"Search the web from SQL","sql":"SELECT title, url, rank FROM search.main.web_search('python programming language', provider := 'ddg', count := 5) ORDER BY rank","requiresCredentials":null,"note":null,"objects":[{"name":"search.main.web_search","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/search/#obj-main-web_search","markdown":"https://query.farm/products/orchard/connectors/search/objects/table_function.bWFpbg.d2ViX3NlYXJjaA.md","json":"https://query.farm/products/orchard/api/v1/connectors/search/objects/table_function.bWFpbg.d2ViX3NlYXJjaA.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:21:29+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.0","sample":{"columns":["title","url","rank"],"types":["VARCHAR","VARCHAR","INTEGER"],"rows":[["Python (programming language)","https://en.wikipedia.org/wiki/Python_(programming_language)",1],["Python (programming language) Category","https://duckduckgo.com/c/Python_(programming_language)",2],["CPython","https://duckduckgo.com/CPython",3],["Cython","https://duckduckgo.com/Cython",4],["Jupyter","https://duckduckgo.com/Project_Jupyter",5]],"more":false}},"artifact":null},"objects":{"total":3,"index":"https://query.farm/products/orchard/api/v1/connectors/search/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=search&q={query}"},"agentTasks":["Show me the full directory of search providers this worker supports: every provider, with all of its columns, ordered by provider name.","Which of the search providers require an API key? List just their names, sorted.","Which providers can return a synthesized one-line answer for web_answer? List their names, sorted.","List the names of the search providers that are configured and ready to use right now, sorted.","Using the free, keyless DuckDuckGo (ddg) provider, search for 'python programming language' and return the titles and URLs of the top 5 results ordered by rank.","Get a single synthesized one-line answer for 'python programming language' using the free DuckDuckGo (ddg) provider, without any API key.","Using the free DuckDuckGo (ddg) provider, search for 'sqlite' and take the top 6 results. For each result's title, look up DuckDuckGo's synthesized answer with web_answer. How many of those 6 titles have a non-NULL answer? Save the count as a temporary view named sqlite_defined_titles with a single column n (one row)."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-search","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":3,"passed":3,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-search@v0.5.0 vgi-search-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:17:46+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."]}