SerpApi
警告
本教程由社区贡献,不获得 Open WebUI 团队的支持。它仅作为演示,说明如何根据您的特定用例定制 Open WebUI。想要贡献?请查看贡献教程。
SerpApi API
SerpApi 使用我们快速、便捷、完整的 API 抓取 Google 和其他搜索引擎的数据。支持任何现有或即将推出的返回 organic_results
的 SERP 引擎。默认网络搜索引擎是 google
,但可以更改为 bing
、baidu
、google_news
、google_scholar
、google_patents
等。
设置
- 前往 SerpApi,登录或创建新账户。
- 前往
Dashboard
并复制 API 密钥。 - 使用
API 密钥
,打开Open WebUI 管理面板
,点击设置
选项卡,然后点击网页搜索
。 - 启用
网页搜索
并将网页搜索引擎
设置为serpapi
。 - 在
SerpApi API 密钥
中填入您在第 2 步从 SerpApi 仪表盘复制的API 密钥
。 - [可选] 输入您要查询的
SerpApi 引擎
名称。例如,google
、bing
、baidu
、google_news
、google_videos
、google_scholar
和google_patents
。默认情况下,它设置为google
。在 SerpApi 文档 中查找更多选项。 - 点击
保存
。
注意
您必须在提示字段中启用 网页搜索
,才能使用 SerpApi 引擎进行网页搜索。