Python API examples not correct

Matt_Calder
Fri, 26 Sep 2025 13:15:10 +0000
Bug Reports

Python API search_recency_filter not supported

The documentation shows a search_recency_filter arg in the Python API:

# For general information and current events
web_search = client.search.create(
    query="latest tech news",
    search_mode="web",
    search_recency_filter="day"
)

Expected Behavior

I expect the parameter to be in the API

Actual Behavior

TypeError: SearchResource.create() got an unexpected keyword argument ‘search_recency_filter’

Steps to Reproduce

1. Call the API in the documented way.

2. Observe the unexpected behavior.

Environment

API Version: ?

SDK (if applicable): 0.11.0

Operating System: Linux

4 posts - 4 participants