Professional Python SDK for JustSerpAPI
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file justserpapi-3.1.0.tar.gz.
File metadata
- Download URL: justserpapi-3.1.0.tar.gz
- Upload date:
- Size: 59.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e06d53104583c167c116a52aab0b6153ae8e96802ac268f92c8f028116eafce
|
|
| MD5 |
58f1e49c2f637a9783604c08d0480431
|
|
| BLAKE2b-256 |
336159419bead0935494e9a6dc03a17f7891db15012311433cf478385222a5c2
|
Provenance
The following attestation bundles were made for justserpapi-3.1.0.tar.gz:
Publisher:
release.yml on justserpapi/justserpapi-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
justserpapi-3.1.0.tar.gz -
Subject digest:
6e06d53104583c167c116a52aab0b6153ae8e96802ac268f92c8f028116eafce - Sigstore transparency entry: 1733038418
- Sigstore integration time:
-
Permalink:
justserpapi/justserpapi-python@ad41902f375d7e7b99bf86ae59e9a0c1539b6658 -
Branch / Tag:
refs/tags/v3.1.0 - Owner: https://github.com/justserpapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ad41902f375d7e7b99bf86ae59e9a0c1539b6658 -
Trigger Event:
push
-
Statement type:
File details
Details for the file justserpapi-3.1.0-py3-none-any.whl.
File metadata
- Download URL: justserpapi-3.1.0-py3-none-any.whl
- Upload date:
- Size: 56.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8bf23adea7b707311fb2065f5ec3697fc2dd7965213e3136c0942496c7faced
|
|
| MD5 |
0b3524ac8ec96f134dd7a497f8c61f3c
|
|
| BLAKE2b-256 |
678702cfa0c4af4271228dbbd47991de61cdf7f0bf6fc4de428053edd1a05219
|
Provenance
The following attestation bundles were made for justserpapi-3.1.0-py3-none-any.whl:
Publisher:
release.yml on justserpapi/justserpapi-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
justserpapi-3.1.0-py3-none-any.whl -
Subject digest:
e8bf23adea7b707311fb2065f5ec3697fc2dd7965213e3136c0942496c7faced - Sigstore transparency entry: 1733038461
- Sigstore integration time:
-
Permalink:
justserpapi/justserpapi-python@ad41902f375d7e7b99bf86ae59e9a0c1539b6658 -
Branch / Tag:
refs/tags/v3.1.0 - Owner: https://github.com/justserpapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ad41902f375d7e7b99bf86ae59e9a0c1539b6658 -
Trigger Event:
push
-
Statement type: