SerpApi(Google 搜索)节点#
¥SerpApi (Google Search) node
SerpAPI 节点允许工作流中的 agent 调用 Google 搜索 API。
¥The SerpAPI node allows an agent in your workflow to call Google's Search API.
本页提供 SerpAPI 节点的参数以及更多资源的链接。
¥On this page, you'll find the node parameters for the SerpAPI node, and links to more resources.
Parameter resolution in sub-nodes
Sub-nodes behave differently to other nodes when processing multiple items using an expression.
Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.
In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.
节点选项#
¥Node options
- 国家/地区:输入你要使用的国家/地区代码。有关支持的国家/地区和国家/地区代码,请参阅 Google GL 参数:支持的 Google 国家/地区。
¥Country: Enter the country code you'd like to use. Refer to Google GL Parameter: Supported Google Countries for supported countries and country codes.
- 设备:选择用于获取搜索结果的设备。
¥Device: Select the device to use to get the search results.
- 显式数组:选择是否强制 SerpApi 获取 Google 搜索结果(即使已存在缓存版本)(已开启)或不强制(已关闭)。
¥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).
- Google Domains:输入要使用的 Google 域名。有关支持的域名,请参阅 支持的 Google 域名。
¥Google Domain: Enter the Google Domain to use. Refer to Supported Google Domains for supported domains.
- 语言:输入要使用的语言代码。有关支持的语言和语言代码,请参阅 Google HL 参数:支持的 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.
模板和示例#
¥Templates and examples
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Serp 文档。你还可以查看 LangChain 的 Serp 文档集成。
¥Refer to Serp's documentation for more information about the service. You can also view LangChain's documentation on their Serp integration.
View n8n's Advanced AI documentation.