Skip to main content

llama-index-tools-specstream

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 LlamaIndex agent a tool spec and a retriever for it. 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 llama-index-tools-specstream
export SPECSTREAM_API_KEY=ss_live_...   # Agents & API in your SpecStream workspace

A free account comes with $2 of credit, enough for 2,000 fast searches, and needs no card: specstream.ai.

SpecStream is hosted in the EU and is first on 15 public search, research and extraction benchmarks: AA-Omniscience 82.67% on all 600 questions, SurfBench v2 84.6, WideSearch on all 200 official tasks over 4 trials, FRAMES 90.78% and TRACE Extract v6 88.51%. Scores and method: specstream.ai/benchmarks. Every raw answer: Hugging Face.

Google ends its Custom Search JSON API for existing customers on January 1, 2027. SpecStream answers the same call in Google's shape, so the move is one line: change the base address from https://www.googleapis.com to https://api.specstream.ai.

curl "https://api.specstream.ai/customsearch/v1?key=$SPECSTREAM_API_KEY&q=open+source+vector+databases&num=10"

items[].title, link, snippet and displayLink come back as before. cx is accepted and not needed. Each call runs on the fast tier at $1 per 1,000, against Google's $5 per 1,000, and the Extract API reads the pages at $0.80 per 1,000. Guide: specstream.ai/migrate/google-cse.

More from the same engine: the sub-processor directory, the sub-processor lists of SaaS and AI companies read from each company's own trust center.

An agent that can find data

from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.anthropic import Anthropic
from llama_index.tools.specstream import SpecStreamToolSpec

agent = FunctionAgent(
    tools=SpecStreamToolSpec(max_price_usd=5).to_tool_list(),
    llm=Anthropic(model="claude-sonnet-5-5"),
)
response = await agent.run(
    "Find open-source vector databases on GitHub with more than 5,000 stars. Which licenses are most common?"
)

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

What comes back

One flat row per match: the request's own columns, then where the row was read. For the request above, each row has this shape:

{
  "list_id": "fnd_...",
  "position": 1,
  "Repository": "<owner/name>",
  "Stars": "<star count>",
  "License": "<license>",
  "source_url": "https://github.com/<owner>/<name>",
  "checked_at": "<when SpecStream read the page>",
  "list_link": "https://specstream.ai/workspace/collections/fnd_..."
}

Columns follow the request, so a different request brings different columns. A fact a source doesn't publish comes back empty, never guessed.

The four tools

Tool The model gives What happens Cost
specstream_web_search q, passages, speed Calls GET /v1/web-search and returns the answer, matching rows, ranked sources and optional page passages. speed="fast" returns the ranked results in about a second $5 per 1,000 searches of up to 10 results; a fast search costs $1 per 1,000
specstream_extract_pages urls, format Calls POST /v1/extract and returns the clean main text, title and published date of 1 to 20 web pages, PDFs, Word or Excel files $0.80 per 1,000 pages (empty pages free)
specstream_find_list request, max_results Reads the request, prices it, starts it only within max_price_usd, waits up to wait_seconds (7 minutes by default) and returns every row Only delivered rows
specstream_get_list_results list_id Every row found so far, for a list that was still running Free

When the price is above your maximum, nothing runs: the tool returns the price, so the agent can ask for fewer rows or tell the user. When a request is too vague to price, it returns how SpecStream read it, so the agent can add the place or the conditions.

Settings live on the spec, never in the tool schema:

spec = SpecStreamToolSpec(
    max_price_usd=20,     # the most one list may cost
    wait_seconds=600,     # how long find_list waits before handing back what it has
    locale="en-GB",       # the language the requests are written in
)

As a retriever

from llama_index.tools.specstream import SpecStreamRetriever

retriever = SpecStreamRetriever(max_price_usd=3, max_results=25)
nodes = retriever.retrieve("Breweries in Portland, Oregon that host events, with their website")

nodes[0].text                      # "Business location: Occidental Brewing Company\nPublished business website: http://occidentalbeers.com ..."
nodes[0].metadata["source_url"]    # the page that row was read from

One node per row, its facts as text and its source in the metadata. The model sees each row with the page behind it, so a query engine can cite every claim; the list's bookkeeping stays out of the prompt and out of embeddings. Above the maximum, the retriever raises SpecStreamError and nothing runs.

Money, plainly

  • max_price_usd lives on the spec, in your code. The model never sees it and can't change it.
  • You pay for rows that match. Candidates SpecStream couldn't confirm are left out and aren't billed.
  • A retried step asking for the same list within the hour gets the list it already started, not a second bill.
  • Rates and plans: specstream.ai/pricing.

When to reach for it

When the answer is many things that meet conditions. For a single fact or a summary of one page, a search tool fits better.

More

MIT licensed. Made by SpecStream, the live web data engine for teams and agents.

Metadata

Release files for llama-index-tools-specstream 0.3.3

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

Source distribution (sdist)

Source distribution for llama-index-tools-specstream 0.3.3
File Size Uploaded Provenance Actions
llama_index_tools_specstream-0.3.3.tar.gz 14.1 kB With provenance Details for llama_index_tools_specstream-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-specstream 0.3.3
File Interpreter ABI Platform Actions
llama_index_tools_specstream-0.3.3-py3-none-any.whl Python 3 none any Details for llama_index_tools_specstream-0.3.3-py3-none-any.whl

Total release size: 28.5 kB

Release files / llama_index_tools_specstream-0.3.3.tar.gz

Download URL llama_index_tools_specstream-0.3.3.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b67463de76a5f7248b46ae61d8a339b8ba3e6eaa9d70eafa218914b1a6c9e35b
BLAKE2b-256 checksum
How to use checksums
d0949cfe920de6e328c0c32e0692fec8bf19806963689504d3fdb972c95288ec
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 Dec 1, 2026.

Transparency log

Release files / llama_index_tools_specstream-0.3.3-py3-none-any.whl

Download URL llama_index_tools_specstream-0.3.3-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdf50e6570f78c8f210402dad9df42dbfc57f7c532a8ea4f225b8c9422751df3
BLAKE2b-256 checksum
How to use checksums
0a45be06bb05d00b389d2307ecc2cfd74f440469a9a9b4ba38487035ba74b8fe
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 Dec 1, 2026.

Transparency log

Security for llama-index-tools-specstream 0.3.3

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 llama_index_tools_specstream-0.3.3.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 Dec 1, 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