Skip to content

SerpApi (Google Search) node#

SerpApi (Google Search) 节点#

The SerpAPI node allows an agent in your workflow to call Google's Search API.

SerpAPI 节点允许您工作流程中的 代理 调用 Google 的搜索 API。

On this page, you'll find the node parameters for the SerpAPI node, and links to more resources.

在此页面上,您将找到 SerpAPI 节点的节点参数以及更多资源的链接。

Credentials

凭据

You can find authentication information for this node here.

您可以在 此处 找到此节点的身份验证信息。

子节点中的参数解析

子节点在使用表达式处理多个项目时的行为与其他节点不同。

大多数节点,包括根节点,接受任意数量的项目作为输入,处理这些项目,并输出结果。您可以使用表达式引用输入项目,节点会依次为每个项目解析表达式。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 会依次解析为每个名称。

在子节点中,表达式始终解析为第一个项目。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 始终解析为第一个名称。

Node options#

节点选项#

  • Country: Enter the country code you'd like to use. Refer to Google GL Parameter: Supported Google Countries for supported countries and country codes.
  • 国家:输入您要使用的国家代码。请参阅 Google GL 参数:支持的 Google 国家 了解支持的国家和国家代码。
  • Device: Select the device to use to get the search results.
  • 设备:选择用于获取搜索结果的设备。
  • Explicit Array: Choose whether to force SerpApi to fetch the Google results even if a cached version is already present (turned on) or not (turned off).
  • 显式数组:选择是否强制 SerpApi 获取 Google 结果,即使已存在缓存版本(开启)或不强制(关闭)。
  • Google Domain: Enter the Google Domain to use. Refer to Supported Google Domains for supported domains.
  • Google 域名:输入要使用的 Google 域名。请参阅 支持的 Google 域名 了解支持的域名。
  • Language: Enter the language code you'd like to use. Refer to Google HL Parameter: Supported Google Languages for supported languages and language codes.
  • 语言:输入您要使用的语言代码。请参阅 Google HL 参数:支持的 Google 语言 了解支持的语言和语言代码。

Templates and examples#

模板和示例#

AI agent chat

by n8n Team

View template details
✨🤖Automate Multi-Platform Social Media Content Creation with AI

by Joseph LePage

View template details
AI chatbot that can search the web

by n8n Team

View template details
Browse SerpApi (Google 搜索) integration templates, or search all templates

相关资源#

Refer to Serp's documentation for more information about the service. You can also view LangChain's documentation on their Serp integration.

请参阅 Serp 的文档 了解有关该服务的更多信息。您还可以查看 LangChain 关于其 Serp 集成的文档

查看 n8n 的高级 AI文档。

AI 术语表#

  • completion(完成/补全): 完成是由 GPT 等模型生成的响应。
  • hallucinations(幻觉): AI 中的幻觉是指大语言模型(LLM)错误地感知到不存在的模式或对象。
  • vector database(向量数据库): 向量数据库存储信息的数学表示。与嵌入和检索器一起使用,创建 AI 在回答问题时可以访问的数据库。
  • vector store(向量存储): 向量存储或向量数据库,存储信息的数学表示。与嵌入和检索器一起使用,创建 AI 在回答问题时可以访问的数据库。