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:

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:

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

ParameterTypeDefaultDescription
querystringrequiredSearch query (max 500 chars)
categorystringgeneralgeneral, images, news, videos, music, it, science
enginesstringallComma-separated: google,bing,duckduckgo,brave
languagestringenLanguage code (en, es, de, fr, etc.)
limitinteger10Results to return: 1-50
pageinteger1Page number: 1-10
safeinteger0Safe search: 0=off, 1=moderate, 2=strict
timestringTime 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.