Skip to main content
This example builds a research assistant that searches multiple related queries, deduplicates and aggregates the results. It uses the default auto search mode, which gives multi-query research calls deep treatment automatically — you can pin searchMode=deep or exhaustive for guaranteed research-grade coverage.

Complete example

How it works

  1. Multiple queries — search the same topic from different angles to get broader coverage
  2. Search mode — the default auto mode gives multi-query research calls deep treatment automatically; pin searchMode=deep or exhaustive for guaranteed research-grade coverage and spell correction
  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.