Issue with Sonar through API (Unsure of other models)

:bug: Describe the Bug

So i am using the sonar api to power a real time search element. When i tested with “Give me latest news on Donald Trump” it replied back with Donald Trump is scheduled to take office for the second time on…". Wondering if “latest” is not the right way to do this? Works great on the web version of perplexity - but API doesn’t seem to deliver the same.

:white_check_mark: Expected Behavior

What you expected to happen.

:cross_mark: Actual Behavior

What actually happened.

:counterclockwise_arrows_button: Steps to Reproduce

  1. Call the API with the following request: Latest news about Donald Trump
  2. Observe the unexpected behavior.

:pushpin: API Request & Response (if applicable)

:globe_showing_europe_africa: Environment

  • API Version: [e.g., sonar]
  • SDK (if applicable): [e.g., Python SDK v0.5]
  • Operating System: [e.g., MacOS]

:paperclip: Logs or Screenshots (if applicable)

Add any logs or screenshots that can help debug the issue.

:memo: Additional Context

Add any other context about the problem here.

It just seems like it was biased for once via a last big headline, this can happen unfortunately. I would just try and add some search filters here such as recency for example.

Can either use search_recency_filter or even better the date range filter: Date Range Filter Guide - Perplexity