Skip to main content

Google Search toolkit for LangChain

Google Search via Ace Data Cloud

Give a LangChain agent a web search tool that returns Google's organic results, including the title, source link, and snippet when available. It uses the Ace Data Cloud Serp API and accepts optional country, language, result count, and page parameters.

python -m pip install langchain-serp-acedatacloud

Set ACEDATACLOUD_API_TOKEN to an application key with Serp access. Creating the toolkit and listing its tools makes no request. Each invocation performs one billable search for the selected page.

from langchain_serp_acedatacloud import SerpToolkit

(search,) = SerpToolkit().get_tools()
response = search.invoke({"query": "LangChain tool calling documentation", "number": 5})
for result in response.get("organic", []):
    print(result.get("title"), result.get("link"), result.get("snippet"))

Use await search.ainvoke({...}) for async applications. The response preserves the provider's result fields and reported cost. To retrieve a later page, send an explicit page value. Avoid automatically retrying an ambiguous request because each new search can consume credits. OpenAPI contract

Metadata

Release files for langchain-serp-acedatacloud 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-serp-acedatacloud 0.1.0
File Size Uploaded Provenance Actions
langchain_serp_acedatacloud-0.1.0.tar.gz 3.1 kB Without provenance Details for langchain_serp_acedatacloud-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-serp-acedatacloud 0.1.0
File Interpreter ABI Platform Actions
langchain_serp_acedatacloud-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_serp_acedatacloud-0.1.0-py3-none-any.whl

Total release size: 7.1 kB

Release files / langchain_serp_acedatacloud-0.1.0.tar.gz

Download URL langchain_serp_acedatacloud-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
be8d9bec3f78b4627c82ba9a440ed37a680e7f1a7a5c1156a4d1f44ef60e56ca
BLAKE2b-256 checksum
How to use checksums
9910012e45f89d26c1122c9f95226788d0fde8ad7c98de79141d662f6bc448fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / langchain_serp_acedatacloud-0.1.0-py3-none-any.whl

Download URL langchain_serp_acedatacloud-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
201b3d8d4ce42c47f52118cfcb3b68bcb5fe0f02169786c0953244610a7b8c1e
BLAKE2b-256 checksum
How to use checksums
f4a4e32e3d1329b9fe16ee4db531b844dffbdb38f38755ada7c06f6306e84e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for langchain-serp-acedatacloud 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page