Skip to main content
This example builds a research assistant that searches multiple related queries, deduplicates and aggregates the results, and uses deep search for thorough coverage.

Complete example

How it works

  1. Multiple queries — search the same topic from different angles to get broader coverage
  2. Deep searchdepth=deep enables spell correction and extended source coverage
  3. Deduplication — track URLs already seen to avoid duplicate results across queries
  4. Spell correction trackingcorrectedQuery shows when deep search fixed a typo

Using multi-query in a single request

The API also supports passing a JSON array of up to 5 queries in the q parameter:
Multi-query via JSON array returns combined results in a single response. The sequential approach above gives you per-query control and deduplication, but uses more API calls.

Variations

With source filtering

Focus research on academic or authoritative sources:
Or use includeDomains to restrict at the API level:

Generating a research summary

Combine results with an LLM for a synthesized report:

Next steps

Deep search

Spell correction and extended source coverage.

RAG pipeline

Use search results as LLM context.

Query parameters

Full parameter reference.

Filtering

Domain, date, and content filtering.