You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide async support for the client (e.g. for FastAPI) #52
We use your library with FastAPI, would be amazing to have async methods at least for the GoogleSearch API.
Applies to serpapi-python:serpapi.Client is synchronous only (built on requests.Session), so using it from an async framework such as FastAPI blocks the event loop unless it is wrapped in a thread executor.
Proposal: provide an async client or async variants of search, search_archive, locations and account.
Closing as a duplicate: this was opened in error while moving an issue from the deprecated google-search-results-python package. Async support already ships as serpapi.AsyncClient (pip install "serpapi[async]", Python 3.11+); see the README and the async client guide, and the earlier request in #35.
Activity
jvmvik commentedon Nov 25, 2026
Closing as a duplicate: this was opened in error while moving an issue from the deprecated
google-search-results-pythonpackage. Async support already ships asserpapi.AsyncClient(pip install "serpapi[async]", Python 3.11+); see the README and the async client guide, and the earlier request in #35.