Reserp Haystack Integration
ReserpWebSearch exposes the Reserp Google Search API v2 as a minimal Haystack component.
The component accepts a complete Google Search URL, makes one request to POST /v2/serp/search, and returns the public JSON under Haystack's required output key. Its results[] array is flat, page ordered, and deduplicated, with optional visible text for each URL. The component adds no retries, timeout policy, concurrency management, caching, queues, result conversion, or automatic pagination.
Installation
pip install reserp-haystack
Usage
from haystack.utils import Secret
from haystack_integrations.components.websearch.reserp import ReserpWebSearch
search = ReserpWebSearch(api_key=Secret.from_env_var("RESERP_API_KEY"))
result = search.run(
url="https://www.google.com/search?q=photonic+computing&gl=us&hl=en"
)["response"]
if result["ok"]:
for item in result["results"]:
print(item.get("text"), item["url"])
Every successful response includes pagination.next_url. Submit that value in a later component call to advance; its presence does not prove another page contains results. Do not infer pagination from len(result["results"]).
The surrounding pipeline owns retries, timeouts, task queues, concurrency, observability, and pagination. When the API reports retryable, this package exposes that field and takes no action itself.
Migrating
From 0.2, replace /v2/serp/urls with /v2/serp/search and urls[] with results[]. When migrating directly from v1, other notable field renames are url → request.url, finalUrl → page.url, pagination.nextUrl → pagination.next_url, and billingSource → billing_source.
For typed, page-ordered SERP blocks and explicit positions, call the structured v2 endpoint directly or use an official Reserp SDK.
Resources
License
MIT
Metadata
Release files for reserp-haystack 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reserp_haystack-0.3.0.tar.gz | 106.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reserp_haystack-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.9 kB
Release files / reserp_haystack-0.3.0.tar.gz
| Download URL | reserp_haystack-0.3.0.tar.gz |
|---|---|
| Size | 106.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3334a567e2e5543849ab4f751ec392df887aa4709bb7b13ce4969783ae9d5ce7
|
|
BLAKE2b-256 checksum How to use checksums |
7cbd05a5aebee78944934d18d6bb5a7d0bcaab815de4e67564a6f8b85ed3b216
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / reserp_haystack-0.3.0-py3-none-any.whl
| Download URL | reserp_haystack-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51dd36cb048f7c862581feffc3213d3f8f03ac3cfd47ecde8ba2294507e1d877
|
|
BLAKE2b-256 checksum How to use checksums |
104dc85d11b6c2343af323b879f192d9a5823e694f98d75fa453b4bda1f0f47e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|