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

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.1
File Size Uploaded Provenance Actions
specstream_haystack-0.3.1.tar.gz 12.3 kB With provenance Details for specstream_haystack-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 25.2 kB

Release files / specstream_haystack-0.3.1.tar.gz

Download URL specstream_haystack-0.3.1.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
96aff7fae82d8896d3cd6e8baa346f202b201b320e7bfa9bd167bd5bb786958e
BLAKE2b-256 checksum
How to use checksums
85bb7277b2312161800492133d0b271969735ec69b2e56f7d79d71bb6b147081
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 29, 2026.

Transparency log

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

Download URL specstream_haystack-0.3.1-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e89ba0bd2934bd072a0795938dc81374c46cafa46569d805b055541c2de4a8e0
BLAKE2b-256 checksum
How to use checksums
27144863555f3d8b85c2cd68387cb3e7b60e110d8cd2963649eb523e6e4db2c1
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 29, 2026.

Transparency log

Security for specstream-haystack 0.3.1

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