[PR #4623] [MERGED] Add SerpApi web search #4692

Closed
opened 2026-02-22 18:36:20 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4623
Author: @alexbarron
Created: 11/6/2025
Status: Merged
Merged: 11/20/2025
Merged by: @timothycarambat

Base: masterHead: feature/add-serpapi-web-search


📝 Commits (2)

  • d5fdf01 Add SerpApi web search
  • 37289cc Merge branch 'master' into feature/add-serpapi-web-search

📊 Changes

9 files changed (+356 additions, -0 deletions)

View changed files

📝 .vscode/settings.json (+1 -0)
📝 docker/.env.example (+4 -0)
📝 frontend/src/pages/Admin/Agents/WebSearchSelection/SearchProviderOptions/index.jsx (+74 -0)
frontend/src/pages/Admin/Agents/WebSearchSelection/icons/serpapi.png (+0 -0)
📝 frontend/src/pages/Admin/Agents/WebSearchSelection/index.jsx (+10 -0)
📝 server/.env.example (+4 -0)
📝 server/models/systemSettings.js (+3 -0)
📝 server/utils/agents/aibitat/plugins/web-browsing.js (+252 -0)
📝 server/utils/helpers/updateENV.js (+8 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

Docs update: https://github.com/Mintplex-Labs/anythingllm-docs/pull/200

What is in this change?

  • Adds SerpApi as a web search provider
  • Adds support for multiple SerpApi APIs including Google, Google News, Google Maps, Amazon, Baidu, and a few more
  • Selects most relevant response fields for each API
  • Adds AGENT_SERPAPI_API_KEY and AGENT_SERPAPI_ENGINE as environment variable options

Additional Information

The user can select from several supported search engines. Many of these engines share similar fields, but to make them most useful to end users, I've implemented custom field selection for each engine. This enables someone using, for example, Google Shopping or Amazon to receive relevant fields like the price, rating, and link where they can buy the product.

If any questions, concerns, or requests for API updates, please email contact@serpapi.com.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4623 **Author:** [@alexbarron](https://github.com/alexbarron) **Created:** 11/6/2025 **Status:** ✅ Merged **Merged:** 11/20/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `feature/add-serpapi-web-search` --- ### 📝 Commits (2) - [`d5fdf01`](https://github.com/Mintplex-Labs/anything-llm/commit/d5fdf017238733e89bf9bedae33132bd253ef12f) Add SerpApi web search - [`37289cc`](https://github.com/Mintplex-Labs/anything-llm/commit/37289cc1fe3c1a4e4dd12d9c3e018026c1d14e4b) Merge branch 'master' into feature/add-serpapi-web-search ### 📊 Changes **9 files changed** (+356 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.vscode/settings.json` (+1 -0) 📝 `docker/.env.example` (+4 -0) 📝 `frontend/src/pages/Admin/Agents/WebSearchSelection/SearchProviderOptions/index.jsx` (+74 -0) ➕ `frontend/src/pages/Admin/Agents/WebSearchSelection/icons/serpapi.png` (+0 -0) 📝 `frontend/src/pages/Admin/Agents/WebSearchSelection/index.jsx` (+10 -0) 📝 `server/.env.example` (+4 -0) 📝 `server/models/systemSettings.js` (+3 -0) 📝 `server/utils/agents/aibitat/plugins/web-browsing.js` (+252 -0) 📝 `server/utils/helpers/updateENV.js` (+8 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> Docs update: https://github.com/Mintplex-Labs/anythingllm-docs/pull/200 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Adds SerpApi as a web search provider - Adds support for multiple SerpApi APIs including Google, Google News, Google Maps, Amazon, Baidu, and a few more - Selects most relevant response fields for each API - Adds `AGENT_SERPAPI_API_KEY` and `AGENT_SERPAPI_ENGINE` as environment variable options ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> The user can select from several supported search engines. Many of these engines share similar fields, but to make them most useful to end users, I've implemented custom field selection for each engine. This enables someone using, for example, Google Shopping or Amazon to receive relevant fields like the price, rating, and link where they can buy the product. If any questions, concerns, or requests for API updates, please email contact@serpapi.com. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:20 -05:00
yindo closed this issue 2026-02-22 18:36:20 -05:00
yindo changed title from [PR #4623] Add SerpApi web search to [PR #4623] [MERGED] Add SerpApi web search 2026-06-05 15:19:53 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4692