Date Range Filtering Capability for Search API

:rocket: Feature Request

Add Date Range Filtering Capability for the Search API

:magnifying_glass_tilted_left: Problem Statement

Currently, the Perplexity Search API does not support filtering results by date range (e.g., articles published between specific start and end dates). This limitation makes it difficult to retrieve time-bounded search results, especially for use cases requiring temporal relevance—such as news monitoring, research updates, or building grounded LLMs that rely on recent information only.

For example, when querying “AI regulation in India,” I might only want results from August 10 to August 12, 2024, but currently, all time periods are mixed together, reducing precision.

:light_bulb: Proposed Solution

Introduce date range filtering parameters in the Search API.
Suggested parameter names:

  • search_after_date: (ISO 8601 format) – fetch results published after this date.

  • search_before_date: (ISO 8601 format) – fetch results published before this date.

:pushpin: API Impact

  • API Changes: Addition of two optional parameters:
    • search_after_date

    • search_before_date

We’re also looking for this functionality; it would be very helpful to do some pre-filtering before sending the query over and returning results that we know we already need to eliminate in our use cases. Filtering by a time period or date range would be right at the top of our wish list.

Thanks for the suggestion! Date range filtering is on our roadmap, and we’re exploring how best to integrate it into the Search API. Stay tuned!