JustSerpAPI Python SDK
OpenAPI-driven Python SDK for JustSerpAPI with a stable high-level Client as the public entrypoint.
Platform Overview
The documentation center helps you browse endpoint health, versioned API paths, request parameters, and SERP-specific usage notes.
The console provides API key management, subscription status, credit visibility, request logs, usage trends, and credit consumption analytics.
Installation
pip install justserpapi
Quick Start
from justserpapi import Client
with Client(api_key="YOUR_API_KEY") as client:
response = client.google.search(
query="coffee shops in New York",
location="New York, NY",
language="en",
)
print(response)
print(response["data"])
Generated High-Level API
The high-level surface is generated from OpenAPI and designed to be the default entrypoint:
from justserpapi import Client
client = Client(api_key="YOUR_API_KEY", timeout=20.0)
search = client.google.search(query="best espresso beans", language="en")
light = client.google.search.light(query="best espresso beans", language="en")
maps = client.google.maps.search(query="espresso bars", location="Shanghai")
news = client.google.news.search(query="OpenAI", language="en")
images = client.google.images.search(query="espresso machine")
shopping = client.google.shopping.search(query="espresso tamper")
finance = client.google.finance.search(query="NASDAQ:GOOGL")
scholar = client.google.scholar.search(query="machine learning", language="en")
overview = client.google.ai.overview(url="https://example.com/ai-overview")
print(search["data"])
client.close()
High-level responses are plain Python dictionaries that mirror the API's JSON response envelope. The SDK does not auto-unpack data.
Configuration
The public client exposes the common knobs directly:
from justserpapi import Client
from urllib3.util.retry import Retry
client = Client(
api_key="YOUR_API_KEY",
base_url="https://api.justserpapi.com",
timeout=(5.0, 30.0),
retries=Retry(total=5, backoff_factor=0.5),
)
client.close()
api_key: value sent in theX-API-Keyheaderbase_url: API host, defaults tohttps://api.justserpapi.comtimeout: default request timeout injected into high-level methodsretries:urllib3retry configuration; defaults to a conservative retry strategy for the high-level client
Service Overview
The API list below is generated from OpenAPI and shows the current public API categories and endpoint names. See the online API documentation for full request and response details.
Google Search API
Google AI Mode API
Google AI Overview API
Google Maps API
Google Images API
Google News API
Google Videos API
Google Shorts API
Google Finance API
Google Trends API
Google Shopping API
Google Immersive Product API
Google Autocomplete API
Google Scholar API
Google Lens API
Google Jobs API
Google Local API
Google Patents API
Google Hotels API
Web API
License
Distributed under the MIT License. See LICENSE for more information.
Metadata
Release files for justserpapi 3.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| justserpapi-3.1.1.tar.gz | 59.2 kB | With provenance | Details for justserpapi-3.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| justserpapi-3.1.1-py3-none-any.whl | Python 3 | none | any | Details for justserpapi-3.1.1-py3-none-any.whl |
Total release size: 115.7 kB
Release files / justserpapi-3.1.1.tar.gz
| Download URL | justserpapi-3.1.1.tar.gz |
|---|---|
| Size | 59.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d978ad26bd986c8d1a14d6bea57ce028c0f52e2a1d5136d87bcf59adc939fb50
|
|
BLAKE2b-256 checksum How to use checksums |
70ee0f29d7cc82a3f90c789af9fc9e71683b1bc06279ff77924adff03cd81d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logRelease files / justserpapi-3.1.1-py3-none-any.whl
| Download URL | justserpapi-3.1.1-py3-none-any.whl |
|---|---|
| Size | 56.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66c427fa328d21966889423dac29e832f486b1985e6b44ad94382e5ab739b225
|
|
BLAKE2b-256 checksum How to use checksums |
3a3e97d4ab952c1f97d00449c6a6076e40e9b3ef3a7e3043492ff20b96c4b965
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logSecurity for justserpapi 3.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for justserpapi-3.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.