Parameters
Both are optional and work independently or together. Dates use ISO 8601 format:YYYY-MM-DD.
A bare date is inclusive to the end of 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. Sethistorical_cache: true to run the query as a point-in-time search: results come from the
newest snapshot captured inside your window rather than the latest crawl. This also unlocks
sub-day cutoffs on start_date/end_date.
string
default:"prefer"
How strictly to hold the cutoff.
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.Recommended ranges
More specific date ranges typically improve response times and relevance.Related
Source filtering
Filter by domain and dataset
Search quickstart
All search parameters

