Search API by one setting
A drop-in route answers a tool's existing search requests in the format the tool already reads. You change the search address and the key in the tool's settings, and every search it makes runs on the Search API.
The two addresses
For tools that call Google Custom Search. The answers are the same JSON as Google Custom Search:
Google Custom Search JSON
For tools that call a SearXNG instance. The answers are SearXNG's JSON:
SearXNG JSON
Tools
Each guide gives the exact value for that tool's setting and a way to check it inside the tool.
| Tool | The setting |
|---|---|
| Open WebUI | Searxng Query URL |
| LibreChat | SEARXNG_INSTANCE_URL |
| Dify | SearXNG base URL |
| n8n | SearXNG credential, API URL |
| AnythingLLM | SearXNG API Base URL |
| LiteLLM | GOOGLE_PSE_API_BASE, or SEARXNG_API_BASE and SEARXNG_API_KEY |
| GPT Researcher | SEARX_URL |
| LangChain | SearxSearchWrapper searx_host |
| Agno | Searxng host |
Cost
Each search is one Search API call at $5 per 1,000 searches of up to 10 results. It comes out of your balance, with no quote and no approval. Search API has the details.
Your key
Create the key under Agents & API in your SpecStream workspace. Sign up and get $10 of credit, no card.