Skip to main content
Choose the evidence your application needs. Restrict searches to a dataset or domain, exclude sources, or express a ranking preference without narrowing coverage.

Three controls

If both included_sources and excluded_sources are set, included_sources wins. Use hard filters for strict control; use source_biases to nudge ranking while still letting any source appear if highly relevant. When you list two or more dataset IDs in included_sources, Valyu may search only the ones most relevant to the query. Results never come from datasets outside your list. To search every listed dataset, set scope_policy: "strict".

What you can pass

Use these formats in included_sources. excluded_sources accepts domains, URLs, dataset IDs and preset names: an excluded dataset or preset is never searched. source_biases accepts domain and path keys with numeric weights.
Paths are exact: "valyu.ai/blog" affects only that path. To include a whole domain, use just the domain name.

Presets

Presets are named bundles of sources. Pass a preset name and it expands to the right datasets and domains for you - no need to remember individual ids.
Presets have different scopes. academic is papers and preprints only: clinical trials, drug labels, WHO and NIH grants are in health, and ChEMBL, Open Targets and PubChem are in chemistry. medical is the one deliberate cross-domain bundle. Some presets resolve to datasets that are DeepResearch-only. Search drops DeepResearch-only datasets from a request without a warning and searches the rest; it returns 403 only when every requested dataset is DeepResearch-only. Check the access_modes field on GET /v1/datasources before relying on one.
In your first month, the first 1,000 free credits with a work email (500 with a personal email) can search every source on the standard plans, including the finance, patent, genomics and chemistry presets. After that, the datasets a preset can reach depend on your plan: web, arXiv and PubMed work on every plan, and paid plans add specialist sources. Licensed sources need separate access. Datasets you name that are above your plan are skipped, and the response carries a warning naming the plan that includes them. If none remain, Search returns 403 with code: "tier_insufficient".
Reuse the same source combinations often? Save them as a Collection and reference by name.

Strict source scope

By default (scope_policy: "advisory"), Valyu treats a multi-dataset included_sources list as the set it may choose from. Set scope_policy to "strict" to search exactly the dataset IDs you list:
cURL
The Python and TypeScript SDKs do not accept scope_policy yet. Call the REST endpoint directly, as above, when you need strict scope.
Rules for strict scope:
  • included_sources must contain 1 to 128 dataset IDs. Presets, collections, domains, URLs and "web" are rejected, and so is search_type: "web". Strict requests search datasets only, never the web.
  • Dataset IDs in excluded_sources are removed from the list. If nothing is left, the request is rejected.
  • Every listed dataset must be available on your plan. There is no partial fallback.
Strict responses include a source_scope object that records what was searched:
source_scope shows where results came from. It does not certify coverage: a selected dataset with no results was not necessarily searched in full and found empty. Check errors, and do not treat zero results as proof that a record does not exist.

Source biases

source_biases influences ranking without hard filtering. Biased sources can still appear (or drop) based on relevance - values just nudge the order. Range: -5 (strong demotion) to +5 (strong boost); 0 has no effect.
You can combine source_biases with included_sources / excluded_sources in the same request for fine-grained control.

More examples

Python
With several dataset IDs, Valyu may search only the most relevant of them. Use strict scope to search all of them.
Python
Python
Python
Python

Collections

Save reusable source bundles

Data sources

Discover current dataset IDs and supported APIs.