Parameters
Both are optional and work independently or together. Pass a date asYYYY-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.
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. Sethistorical_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.
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.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.Related
Source filtering
Filter by domain and dataset
Search quickstart
All search parameters