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 key
,打開Open WebUI 管理面板
,點擊設定
分頁,然後點擊Web Search
。 - 啟用
Web search
並將Web Search Engine
設置為serpapi
。 - 使用從 SerpApi Dashboard 中複製的
API key
填寫SerpApi API Key
。 - [可選] 輸入您要查詢的
SerpApi engine
名稱。例如,google
、bing
、baidu
、google_news
、google_videos
、google_scholar
和google_patents
。默認情況下設置為google
。更多選項請參考 SerpApi 文件。 - 點擊
Save
。
注意
您必須在提示欄中啟用 Web search
以使用 SerpApi 引擎搜尋網頁。