# Python API examples not correct

**URL:** <https://community.perplexity.ai/t/python-api-examples-not-correct/1613>\
**Category:** Bug Reports\
**Tags:** search-api\
**Created:** [September 26, 2025, 1:15pm UTC](https://community.perplexity.ai/t/python-api-examples-not-correct/1613 "2025-09-26T13:15:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kremalicious](https://sea1.discourse-cdn.com/flex001/user_avatar/community.perplexity.ai/kremalicious/32/1120_2.png) [@kremalicious](https://community.perplexity.ai/u/kremalicious)\
**Post date:** [September 26, 2025, 2:48pm UTC](https://community.perplexity.ai/t/python-api-examples-not-correct/1613/2 "2025-09-26T14:48:54Z")

</div>

FYI, this is the same with the TypeScript SDK, it seems that in general search\_recency\_filter is not implemented in the API endpoint. The API docs say it is, but the API reference does not list it. And the SDK typings do not have it either.

And there are more discrepancies between docs and implementation, started to collect them here:

> [@Search API implementation and SDKs do not match API docs and SDK docs](https://community.perplexity.ai/t/search-api-implementation-and-sdks-do-not-match-api-docs/1616):
>
> bug Describe the Bug There are significant differences between the [Search API docs](https://docs.perplexity.ai/guides/search-quickstart), the actual implementation shown in the [Search API references](https://docs.perplexity.ai/api-reference/search-post) and the SDKs and their [docs](https://docs.perplexity.ai/guides/perplexity-sdk-search): search\_recency\_filter does not exist as option in endpoint or Typescript SDK or Python SDK, the latter [being reported here](https://community.perplexity.ai/t/python-api-examples-not-correct/1613) return\_imagesalso does not exist in API references or in Typescript SDK. Likewise, does not include it in the SearchCreateResponse.Result typings either Same for return\_snippets, user\_location\_filter,…

---

_[View the full topic](https://community.perplexity.ai/t/python-api-examples-not-correct/1613)._
