https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4#
title: SerpApi (Google Search) 节点文档 description: 学习如何在 n8n 中使用 SerpApi (Google Search) 节点。遵循技术文档将 SerpApi (Google Search) 节点集成到您的工作流中。 contentType: [integration, reference] priority: high
SerpApi (Google Search) 节点#
SerpAPI 节点允许工作流中的代理调用 Google 的搜索 API。
本页将介绍 SerpAPI 节点的参数配置,并提供更多资源链接。
凭证
您可在此处查看该节点的认证信息。
/// 注意 | 子节点中的参数解析 子节点在使用表达式处理多个项目时的行为与其他节点不同。
大多数节点(包括根节点)会接收任意数量的输入项,处理这些项目,然后输出结果。您可以使用表达式来引用输入项,节点会依次为每个项目解析表达式。例如,给定五个 name
值作为输入,表达式 {{ $json.name }}
会依次解析为每个名称。
而在子节点中,表达式总是解析为第一个项目。例如,给定五个 name
值作为输入,表达式 {{ $json.name }}
总是解析为第一个名称。
///
节点选项#
- 国家/地区:输入要使用的国家/地区代码。请参考Google GL 参数:支持的 Google 国家/地区获取支持的国家/地区和对应代码。
- 设备:选择用于获取搜索结果的设备类型。
- 强制刷新:选择是否强制 SerpApi 重新获取 Google 结果(开启),即使已有缓存版本(关闭)。
- Google 域名:输入要使用的 Google 域名。请参考支持的 Google 域名获取支持的域名列表。
- 语言:输入要使用的语言代码。请参考Google HL 参数:支持的 Google 语言获取支持的语言和对应代码。
模板与示例#
相关资源#
更多服务信息请参考Serp 官方文档。您也可查看LangChain 的 Serp 集成文档。
查看 n8n 的高级 AI 文档。
AI glossary#
- completion: Completions are the responses generated by a model like GPT.
- hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
- vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
- vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.