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