Skip to content

Provide async support for the client (e.g. for FastAPI) #52

Not planned

Description

@jvmvik

Moved from the deprecated google-search-results-python package: serpapi/google-search-results-python#72 (originally reported by victorct-tradeengage).

Original request

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.

Activity

  1. jvmvik commented on Nov 25, 2026

    @jvmvik
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions