serpapi-python icon indicating copy to clipboard operation
serpapi-python copied to clipboard

Set custom timeout

Open mtsardakas opened this issue 1 year ago • 1 comments

It looks like it's not possible the modify the default timeout value, either at client instantiation (serpapi.Client) or when passing params to it. This is vital as the default value of 90 seconds is not enough for a significant subset of engine/parameter combos. Thanks a lot :)

mtsardakas avatar Feb 19 '25 13:02 mtsardakas

@mtsardakas Thank you for reporting this. Do you have sample searches where the response time was longer than 90 seconds? If so, please provide those search IDs either here or you can email them to [email protected]

From what I understand, we return a timeout error whenever a query hits 90 seconds. Therefore you shouldn't see any queries taking more than 90 seconds. Please correct me if I'm wrong though.

alexbarron avatar Feb 19 '25 14:02 alexbarron