Skip to main content
Filter search results by publication date to find recent breakthroughs or analyse historical trends.

Parameters

Both are optional and work independently or together. Pass a date as YYYY-MM-DD or a year as YYYY (a year in end_date means the end of that year). An ISO-8601 datetime is accepted only with historical_cache: true. A start_date after end_date returns HTTP 400. The TypeScript SDK checks dates before sending and expects YYYY-MM-DD or a full datetime.
For ordinary date filtering, use YYYY-MM-DD. "3/15/2024", "March 15, 2024", and "15-03-2024" are all invalid.
A bare end_date includes that day. To cut off at a precise instant, pass a full ISO-8601 datetime ("2026-07-24T04:27:00.000Z") together with historical_cache: true - see Point-in-time backtests. Without historical_cache, a date with a time component returns HTTP 400, because nothing downstream consumes the precision.

Examples

Point-in-time backtests

A date range alone filters on each result’s publication date. That is not the same as asking what was knowable at a past moment - a page published before your cutoff can still have been re-crawled since, and carry text written after it. Set historical_cache: true to run the query as a point-in-time search: the API can use the newest available snapshot captured inside your window. Fallback behavior depends on historical_cache_strict, described below. This also unlocks sub-day cutoffs on start_date/end_date.
string
default:"prefer"
How strictly to hold the cutoff.
Under the default "prefer", a query with no in-window snapshot falls back to a live crawl, so a result can contain information published after your cutoff. If you are evaluating a model or strategy against history, use "only".
historical_cache_strict requires valyu-py >= 2.12.2 or valyu-js >= 2.10.2. Sub-day ISO-8601 date bounds require valyu-js >= 2.10.2; any version of valyu-py accepts them.
DeepResearch takes the same setting in its search object, with the same values. See DeepResearch search configuration.

Choose a window that matches the question

Use the reporting period for financial statements, the event window for news, or the protocol’s date range for a literature review. A narrow window can omit foundational papers or older but still relevant guidance. Publication-date filtering alone does not establish what was available to a historical decision-maker.

Source filtering

Filter by domain and dataset

Search quickstart

All search parameters