Skip to main content
Retrieve relevant content and source URLs across the web and specialist datasets. Use the results in your own application, model or research loop.

Basic usage

Common patterns

Source biases support URL-path specificity - the most specific match wins ({"nih.gov": 2, "nih.gov/research": -3}).
Building a multi-step research flow on top of Search? Consider DeepResearch to combine search, analysis and report generation. Keep Search when you need to control each retrieval.

Reference

query (str, required) - the search query. See the Prompting Guide.
AsyncValyu.search takes the same arguments and returns the same SearchResponse - the only difference is you await it. The common reason to use it is running several queries in parallel:
Wall time is the slowest query, not the sum. For hundreds of queries, cap concurrency with an asyncio.Semaphore - see the Python SDK overview for constructor options and lifecycle patterns.

Source types

  • Web - general websites, news, blogs, forums, documentation.
  • Specialist indexes (proprietary in the API) - Includes open and licensed sources. For example, valyu/valyu-arxiv (arXiv papers), valyu/valyu-pubmed (medical literature), valyu/valyu-stocks (market data), and many more.
Browse the full catalog on the Valyu Platform.