The Problem with Web Search in Your App
You need search functionality in your application. Maybe you're building a research tool, a competitive intelligence dashboard, a content aggregator, or a chatbot that needs real-time information. The obvious solutions all have problems:
- Google Search API — $5 per 1,000 queries. The free tier gives you 100 queries/day, which runs out in minutes during testing.
- Scraping Google directly — Against their ToS, your IP gets blocked within hours, and you need to maintain a complex scraping infrastructure.
- Bing Web Search API — Requires an Azure account, costs money, and returns only Bing results.
- Brave Search API — 2,000 free queries/month, then $3/1,000.
There's a better way. In this guide, I'll show you how to add web search to your application using ToolCenter's Web Search API — a free, multi-engine search API that aggregates results from Google, Bing, DuckDuckGo, Brave, and Wikipedia.
What Is the ToolCenter Web Search API?
The ToolCenter Web Search API is a REST API that lets you search the web programmatically. Under the hood, it uses a self-hosted instance of SearXNG — an open-source meta-search engine that queries multiple search engines simultaneously and returns aggregated, deduplicated results.
Key features:
- Results from multiple engines: Google, Bing, DuckDuckGo, Brave, Wikipedia
- Search categories: web, images, news, videos, IT (Stack Overflow, GitHub), science, social media
- Language and region filtering
- Time range filtering (past day, week, month, year)
- Safe search controls
- Autocomplete endpoint for typeahead search
- Clean, structured JSON responses
Getting Started
First, create a free ToolCenter account and grab your API key from the dashboard. Then you can make your first search request in seconds.
Basic Search Request
Send a POST request to /v1/search with your query:
curl -X POST "https://api.toolcenter.dev/v1/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "latest news on AI regulation 2026",
"limit": 5
}'
The response includes the title, URL, snippet, source engine, relevance score, and metadata for each result — plus search suggestions and infoboxes when available.
Real-World Use Cases
1. Build a News Aggregator
Use the news category with the time parameter to fetch the latest articles on any topic:
const response = await fetch('https://api.toolcenter.dev/v1/search', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'artificial intelligence startups funding',
category: 'news',
time: 'week',
limit: 20,
language: 'en'
})
});
const { results } = await response.json();
2. Add Typeahead Search Suggestions
Use the autocomplete endpoint to power instant suggestions as users type:
async function getSuggestions(query) {
if (query.length < 2) return [];
const response = await fetch('https://api.toolcenter.dev/v1/search/autocomplete', {
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ query })
});
const { suggestions } = await response.json();
return suggestions;
}
3. Developer Q&A Search
The it category searches developer sources like Stack Overflow, GitHub, and MDN:
import requests
results = requests.post(
'https://api.toolcenter.dev/v1/search',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={'query': 'python asyncio vs threading performance', 'category': 'it', 'limit': 10}
).json()['results']
4. Image Search
Use the images category to search images across multiple engines. Each result includes a thumbnail URL, source URL, and title.
API Parameters Reference
| Parameter | Type | Default | Description |
|---|---|---|---|
query | string | required | Search query (max 500 chars) |
category | string | general | general, images, news, videos, music, it, science |
engines | string | all | Comma-separated: google,bing,duckduckgo,brave |
language | string | en | Language code (en, es, de, fr, etc.) |
limit | integer | 10 | Results to return: 1-50 |
page | integer | 1 | Page number: 1-10 |
safe | integer | 0 | Safe search: 0=off, 1=moderate, 2=strict |
time | string | — | Time range: day, week, month, year |
How It Compares to Alternatives
Unlike single-engine APIs, ToolCenter aggregates multiple sources and deduplicates results by relevance score. A result that appears in both Google and DuckDuckGo gets a higher score than one from a single engine — so the top results are genuinely the most relevant across the web, not just one engine's opinion.
Conclusion
Adding web search to your application doesn't have to mean scraping Google or paying expensive API credits. The ToolCenter Web Search API gives you multi-engine results in clean JSON, with support for images, news, videos, and specialized categories like developer documentation. Create your free account at toolcenter.dev and check the full documentation to get started.