In short.
Perplexity Search Date and Time Filters is Perplexity's official Search API documentation page for developers who need to restrict search results by publication date, last-updated date or a recent time window, but several example responses contradict its filtering rules. It documents publication and last-updated ranges, relative recency and permitted filter combinations. Its strongest use is as a parameter reference: publication, update and recency examples contain results that fall outside their requested ranges, and one recency example repeats an earlier response. Boundary inclusion and the timestamp used for recency remain unclear. No requests or code examples were run, so actual filtering behavior, performance and costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected documentation page at [https://docs.perplexity.ai/docs/search/filters/date-time-filters.md], including parameter definitions, code examples, embedded responses, best practices, advanced patterns and error handling. The documentation-index notice points to a separate index; that index and all linked pages are excluded. No code was executed, and live filtering, timestamp accuracy, performance, SDK compatibility and billing were not assessed.
The overview
Resource and scope
This Perplexity documentation page explains date and time filters for its Search API. It is a focused implementation guide covering request parameters, SDK and HTTP examples, sample responses, validation and error handling. The original source is [https://docs.perplexity.ai/docs/search/filters/date-time-filters.md].
Practical assessment
The guide is useful for learning which filter expresses a particular time constraint and how to pass it to the API. Its distinction between original publication and later modification is especially helpful when recently refreshed material would otherwise be confused with newly published material.
Treat the response examples cautiously. Several conflict with the requested ranges, so they cannot establish that the API enforces those ranges correctly. Actual behavior was not assessed.
Who it helps
The guide fits developers building historical research tools, recent-content searches or searches for recently maintained pages. Beginners get parallel examples in three request styles; experienced developers get exact parameter names, allowed recency values and filter-combination constraints.
Using the examples requires basic familiarity with API requests, authentication and responses. The page does not provide a complete introduction to those topics.
Documented capabilities
Publication filtering uses search_after_date_filter and search_before_date_filter. Modification filtering uses last_updated_after_filter and last_updated_before_filter. These optional string parameters support individual bounds or ranges, with dates written as month/day/year; both 3/1/2025 and 03/01/2025 are shown as acceptable.
search_recency_filter accepts hour, day, week, month or year. The page defines day as 24 hours, week as 7 days, month as 30 days and year as 365 days. These are rolling periods rather than calendar months or years.
Using it
Requirements
Running the request examples requires a Perplexity API key, network access and either a suitable SDK environment or an HTTP client. Python examples import Perplexity from perplexity; TypeScript examples import it from @perplexity-ai/perplexity_ai. The cURL examples authenticate using a bearer token supplied through PERPLEXITY_API_KEY. The cURL examples pipe their output to jq, so running them unchanged also requires jq to be installed.
Minimum runtime versions, SDK versions, account eligibility and rate limits are not stated. The page does not explain how to obtain credentials.
How filtering works
The documented mechanism applies timestamp constraints alongside other search parameters. Publication filters concern original creation or publication; last-updated filters concern modification. Publication and last-updated constraints can be combined to require both conditions.
Relative recency cannot be combined with any of the four specific-date parameters. The page does not clearly identify whether recency uses publication timestamps, modification timestamps or another signal. Timestamp extraction, timezone handling and treatment of missing dates are also unexplained.
Getting started
Choose the Python SDK, TypeScript SDK or direct HTTP approach. The SDK examples call client.search.create; the HTTP examples send a JSON POST request to [https://api.perplexity.ai/search] with bearer authentication and Content-Type application/json.
Supply a query and the chosen filter parameters. Use either relative recency or specific dates, following the documented combination restriction. SDK installation commands and complete credential configuration are not provided.
Representative example
The publication-range example searches for transformer architecture attention mechanism with max_results=10, search_after_date_filter="3/1/2025" and search_before_date_filter="3/5/2025". Its stated purpose is to retrieve content published within that March 2025 window.
However, the accompanying response includes an IBM result with date="2024-12-05", outside the requested window. This is an inconsistency in the documentation example, not an observed outcome from an executed request.
Assessment & evidence
Limitations and inconsistencies
The last-updated example requests July 1 through December 30, 2025, yet includes a Two Sigma result with last_updated="2026-04-01". The single publication-bound example also includes a result dated before its requested start. These inconsistencies prevent the sample responses from demonstrating correct filtering.
Boundary inclusion is unclear: one passage says on or after, while the parameter reference says after or before. The week recency example reuses the publication-range example's response unchanged (same id 5cdd76b9-da5a-4f9f-8c75-61c90a2399a2), even though the request is different. In the week, day and month recency responses, both the date and last_updated values spread over much more than the requested window (for example, last_updated runs from 2025-05-09 to 2026-05-20 in the day response and from 2026-03-29 to 2026-05-21 in the month response). So whatever the request time, the results cannot all fall inside the window by either timestamp shown.
The supplied validation regex checks date structure but permits impossible calendar dates such as 02/31/2025. It also does not check whether a range starts before it ends. The guide provides no measured retrieval accuracy, latency or completeness.
Choosing the right date meaning
Publication and modification answer different questions. A publication window is appropriate when the original release period matters; an update window is appropriate when the latest maintenance matters. Combining them can express a need for older material that has recently changed.
A recent page timestamp does not establish that the event described happened recently. Applications researching events still need to distinguish the document's date from the date of its subject. Relative recency is convenient for moving windows, but its unspecified timestamp basis limits precise interpretation.
Available approaches
The guide offers three approaches within the same API: fixed publication dates for a historical window, fixed update dates for maintained content, and relative recency for a window that moves with the current date. Specific dates make the requested interval explicit; recency avoids calculating new date strings for each request.
Other search services are not compared. Their relative coverage, timestamp quality, filtering accuracy and costs are unknown from this page.
Evidence and confidence
The evidence is the complete Perplexity documentation page at [https://docs.perplexity.ai/docs/search/filters/date-time-filters.md]. The captured source is identified by SHA-256 d3211195b63432d439a08f7907da8d29631acc28bc3568db5bbbfe82268aa02c.
Parameter descriptions support the documented interface; embedded responses support observations about the examples themselves. Third-party snippets are not independent verification of their claims. No code, API requests or benchmarks were executed.
Access & freshness
Costs
The page gives no request prices, subscription requirements, included allowances or filter-specific charges. API usage costs are unknown. Its suggestion that narrower searches may improve response times does not establish measured performance or billing savings.
Licensing and reuse
No licence or redistribution permission is stated for the documentation, inline code examples or embedded third-party snippets. Permission to reproduce those materials is unknown. The page also does not establish reuse rights for content returned by the Search API.
Documentation freshness
The source capture is timestamped 2026-11-15T09:49:07.035Z. The page itself provides no publication date, revision date or SDK version. The newest last_updated value in the sample responses is 2026-05-27, which suggests those responses were produced no earlier than late May 2026. The page gives no explicit revision date, and the duplicated response means the examples may have been edited by hand. Compatibility with the current API and SDK releases is unknown.
Recommended next steps
Choose whether original publication, later modification or relative recency matches the application's question. Follow the documented filter-combination rule, and validate actual calendar dates and range ordering rather than relying only on the supplied regex.
Before depending on strict date restrictions, clarify boundary inclusion, timezone behavior, missing-date handling and the timestamp used for recency. Check returned timestamps against requested constraints, investigate mismatches and confirm API pricing and access requirements.
