Skip to main content
Search returns ranked source material for your application or agent. You choose the query, sources and context size; your code decides what to do with the results. Use it to retrieve company information, find relevant papers, or add current evidence to an answer. If you want Valyu to plan and write a multi-step investigation, start with DeepResearch. New to the API? The quickstart covers your key, SDK installation and first request. The example below assumes VALYU_API_KEY is set and shows how to use the returned evidence and cost.

Put the results to work

Each result includes a title, URL and content. Keep the source URL alongside the text when passing evidence to your model or showing it in your product. Use total_deduction_dollars to record the request cost. A successful request can return fewer results than requested. That can reflect the query, filters, source availability or relevance threshold. It does not establish that no relevant information exists.

Choose the search scope

proprietary is an API value, not a claim that every included dataset is exclusive or licensed. Check source access and endpoint availability before relying on a dataset.

Focus the evidence

For example, retrieve biomedical literature rather than a mix of general websites:
include_abstracts expands PubMed retrieval to the abstract corpus. Abstract availability does not imply that full text is available for every paper.

Adjust the request

Python uses snake_case arguments; TypeScript uses camelCase options. The API reference lists the full request and response schema.

Move from a query to an integration

Test several real questions from the feature you are building. Inspect the evidence, source dates, latency and cost before changing filters or adding a research loop.

Write effective queries

Specify the subject, question and evidence you need.

Control sources

Choose datasets, domains and reusable collections.

Tune retrieval

Balance useful evidence, context size and cost.

Run research

Create an asynchronous investigation and receive a cited report.