serpapi
The official Python client for SerpApi.com.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and provides a clean, documented interface to a large set of search engines. Install it if you need programmatic access to search results or structured data from multiple sources. The main gotcha is that it requires a SerpApi account and API key, so verify pricing and rate limits for your use case before committing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid SerpApi API key (obtainable from serpapi.com/users/sign_up) and network access to SerpApi's backend service.
- Low install friction with a single dependency (requests) and a pure-wheel distribution.
- The package is actively maintained with a recent release and 166 repository stars, supporting Python 3.6 through 3.14.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on use, modification, or redistribution in commercial or private projects.
last release 2026-08-14 (0 days) · last repo commit 2026-08-14 · 166 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 576,023 downloads/mo, #5,932 on PyPI
Alternatives
Verify before relying
import os
import serpapi
client = serpapi.Client(api_key=os.getenv("SERPAPI_KEY"))
results = client.search({
"engine": "google",
"q": "coffee"
})
print(results)- Whether the SerpApi service itself requires a paid subscription or if free tier access is available for all supported engines
- Rate limiting or throughput constraints imposed by the SerpApi backend service
What it is and what it does
serpapi is the official Python wrapper for SerpApi.com, a search engine aggregation service. It lets you query results from Google, Bing, Baidu, Yahoo, eBay, YouTube, Walmart, DuckDuckGo, Naver, and other engines through a unified client interface, returning structured JSON-like results. The package handles authentication via API key, timeouts, and error cases (HTTPError for bad requests or auth failures, TimeoutError for slow responses).
You instantiate a Client with your API key, call search() with an engine name and query parameters, and get back a SerpResults object that behaves like a dictionary. The package is designed for integration into AI workflows, RAG pipelines, fine-tuning datasets, and data mining at scale. It depends only on requests for HTTP transport.
Use it for
- Fetch Google search results programmatically for web scraping or data collection pipelines.
- Query e-commerce platforms (eBay, Walmart) for product listings and pricing data at scale.
- Integrate search results into machine learning training datasets or RAG (retrieval-augmented generation) systems.
- Build multi-engine search aggregators that query Bing, Baidu, or Yahoo in a single codebase.
- Retrieve structured data like news headlines, stock market data, or flight schedules via SerpApi's supported engines.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive MIT license, and provides a clean, documented interface to a large set of search engines. Install it if you need programmatic access to search results or structured data from multiple sources. The main gotcha is that it requires a SerpApi account and API key, so verify pricing and rate limits for your use case before committing.
Install
serpapi on PyPI
Before you install
Low install friction with a single dependency (requests) and a pure-wheel distribution. The package is actively maintained with a recent release and 166 repository stars, supporting Python 3.6 through 3.14.
Requires a valid SerpApi API key (obtainable from serpapi.com/users/sign_up) and network access to SerpApi's backend service.
License in practice
MIT license is permissive and places no restrictions on use, modification, or redistribution in commercial or private projects.
Quickstart
import os
import serpapi
client = serpapi.Client(api_key=os.getenv("SERPAPI_KEY"))
results = client.search({
"engine": "google",
"q": "coffee"
})
print(results)
Verify before relying
- Whether the SerpApi service itself requires a paid subscription or if free tier access is available for all supported engines
- Rate limiting or throughput constraints imposed by the SerpApi backend service
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Actively maintained 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 576,023 / month, #5,932 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Natural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Indexing/SearchTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: serpapi-1.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multi-engine search scraping”
- serpapiOfficial Python client for SerpApi that queries multiple search…
- google-search-resultsA Python client for querying search results from Google, Bing, Baidu,…
- ddgsAggregates web search results from multiple search engines (Bing,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also google-search-results · dataforseo-client · ebaysdk · ddgs · scrapingbee · tavily-python · yahooquery · brightdata-sdk · aistudio-sdk · googlesearch-python