Skip to main content

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/urls, and returns the public JSON under Haystack's required output key. The v2 URL index 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["urls"]:
        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["urls"]).

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

Version 0.2 moves from the v1 recursive results[] response to the v2 flat urls[] index. Other notable field renames are url → request.url, finalUrl → page.url, pagination.nextUrl → pagination.next_url, and billingSource → billing_source.

For typed result families, SERP features, 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.2.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 reserp-haystack 0.2.0
File Size Uploaded
reserp_haystack-0.2.0.tar.gz 106.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reserp-haystack 0.2.0
File Interpreter ABI Platform
reserp_haystack-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 110.8 kB

Release files / reserp_haystack-0.2.0.tar.gz

Download URL reserp_haystack-0.2.0.tar.gz
Size 106.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3ad01c2ac966010a27f6dd8bb3c1103b18fe3e3af66d65876919813341822986
BLAKE2b-256 checksum
How to use checksums
7ea1cc72caaafa18c138d06562b0cf9776853c29b08431d994dbb93ec110c295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / reserp_haystack-0.2.0-py3-none-any.whl

Download URL reserp_haystack-0.2.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7282f6f4c7fa4dbbdf28fd1f47dea92221a7f6d59f0a68325ece92b11854958c
BLAKE2b-256 checksum
How to use checksums
a0d65f051b56d5085a491b1439bbfaebd031b2036fffac6534aa4981131ac697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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