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 inincluded_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.
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".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.included_sourcesmust contain 1 to 128 dataset IDs. Presets, collections, domains, URLs and"web"are rejected, and so issearch_type: "web". Strict requests search datasets only, never the web.- Dataset IDs in
excluded_sourcesare 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 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.
source_biases with included_sources / excluded_sources in the same request for fine-grained control.
More examples
Target academic datasets by id
Target academic datasets by id
Python
Restrict to official documentation
Restrict to official documentation
Python
Exclude unreliable sources
Exclude unreliable sources
Python
Medical research
Medical research
Python
Financial research with government sources
Financial research with government sources
Python
Related
Collections
Save reusable source bundles
Data sources
Discover current dataset IDs and supported APIs.