Skip to main content

specstream-haystack

SpecStream is the live web data engine. One platform to build, search, extract, enrich, map, and monitor data across the entire web.

Ask for any dataset in plain words, and SpecStream builds it from the entire live web: every match found, extracted and enriched into structured records, then monitored for change. This package gives your Haystack pipeline or agent a fetcher component and a tool for it, with one Document per row. A run starts only within a price you set in code, and the model can't raise it.

Source URL and read time on every value.

pip install -U specstream-haystack
export SPECSTREAM_API_KEY=ss_live_...   # Agents & API in your SpecStream workspace

A free account comes with $10 of credit and needs no card: specstream.ai.

In a pipeline

from haystack_integrations.components.fetchers.specstream import SpecStreamListFetcher

fetcher = SpecStreamListFetcher(max_price_usd=3, max_results=25)
result = fetcher.run(request="Breweries in Portland, Oregon that host events, with their website")

for doc in result["documents"]:
    print(doc.meta["source_url"], doc.content)

Each Document is one row. content is the row as JSON. meta carries source_url (the page the row was read from), checked_at, list_id, list_link, position, request and fields (the row's columns as a dict).

run also returns list_id, status, list_link and a message when the list was still running. When the quoted price is above max_price_usd, or the request is too vague to price, nothing runs and SpecStreamError explains why.

Search the web

from haystack_integrations.components.fetchers.specstream import SpecStreamWebSearch

search = SpecStreamWebSearch(speed="fast")
result = search.run(q="Who won the 2026 Tour de France?")

SpecStreamWebSearch calls the Search API (GET /v1/web-search) and returns one Document per result. A search costs $5 per 1,000 searches of up to 10 results. A fast search (speed="fast") returns the ranked results in about a second and costs $1 per 1,000. Without speed, the default search runs.

As an agent tool

from haystack.components.agents import Agent
from haystack.components.generators.chat import OpenAIChatGenerator
from haystack.dataclasses import ChatMessage
from haystack_integrations.tools.specstream import SpecStreamListTool

agent = Agent(
    chat_generator=OpenAIChatGenerator(model="gpt-4o"),
    tools=[SpecStreamListTool(max_price_usd=5)],
)
result = agent.run(messages=[ChatMessage.from_user("Find open grants for urban beekeeping in the EU and list their deadlines.")])
print(result["last_message"].text)

The agent writes the request and picks how many rows. You decide what one list may cost.

Retries don't buy twice

The same request with the same limits, in the same hour, reaches the run it already started instead of starting another. A retried step never pays for the list twice.

MIT licensed. Source: specstream/specstream-tools.

Metadata

Release files for specstream-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)

Source distribution for specstream-haystack 0.3.0
File Size Uploaded Provenance Actions
specstream_haystack-0.3.0.tar.gz 12.3 kB With provenance Details for specstream_haystack-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for specstream-haystack 0.3.0
File Interpreter ABI Platform Actions
specstream_haystack-0.3.0-py3-none-any.whl Python 3 none any Details for specstream_haystack-0.3.0-py3-none-any.whl

Total release size: 25.2 kB

Release files / specstream_haystack-0.3.0.tar.gz

Download URL specstream_haystack-0.3.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d7655e51ae21b099a4995f5d3a78e00ebe701bc2cca064bca30843947375a7ca
BLAKE2b-256 checksum
How to use checksums
ff4e4817b8007471aa7bdd6153b8d17b783f2fb75540c4add0b773525a26e957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / specstream_haystack-0.3.0-py3-none-any.whl

Download URL specstream_haystack-0.3.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27b4fbb862554758da974deaae106ce4704f20d5e3930b52d40ebedfbf949d52
BLAKE2b-256 checksum
How to use checksums
c49e9c92592d8b930432a310a831f410a39a5281e17bb4756aa18c2846a07849
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for specstream-haystack 0.3.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for specstream_haystack-0.3.0.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 Nov 25, 2026.

Transparency log

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.

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