Skip to main content

specstream-client

pip install specstream-client (the specstream package on PyPI is a different project)

Python client and command line for SpecStream, 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.

  • Source URL and read time on every value.
  • You pay for each row delivered.

The client has no dependencies and needs Python 3.12 or newer. It uses the same account, permissions, projects and balance as the workspace.

pip install specstream-client

The package installs the import name specstream and the command specstream.

Create an API key under Agents & API in your SpecStream workspace and keep it in the environment:

export SPECSTREAM_API_KEY="ss_live_..."

Read a request, get the price

import os
from specstream_client import Client

client = Client(os.environ["SPECSTREAM_API_KEY"])

read = client.compile("Open-source document-signing tools I can self-host. Include the license and latest release.")
offer = client.quote_capacity_work({
    "ast_hash": read["ast_hash"],
    "operation": "find",
    "requested_units": read["ast"]["limit"]["max"],
})
print(offer["maximum_cents"], offer["expires_at"])

Nothing has run yet. Review the quote: what will be found, the facts that come back, the most the work can cost, and when the price expires. A price lasts 30 minutes.

Approve it, then read the results

After a person approves, send the approved maximum in cents and a request key you saved first:

run = client.authorize_capacity_work({
    "quote_id": offer["quote_id"],
    "quote_hash": offer["quote_hash"],
    "confirm_max_cents": approved_maximum_cents,
    "idempotency_key": saved_request_key,
})
find_id = run["find_id"]

page = client.rows(find_id)
for row in page["rows"]:
    print(row)

If the response is lost, get_capacity_request(saved_request_key) returns the same work. Keep the original key when you retry, and you will not pay twice. get_find reports progress, and rows pages through results with next_cursor. Reading, exporting and sharing results you own cost nothing.

authorize_capacity_work refuses to send anything unless the quote, its signature, the maximum and the key are all present.

More than a first request

  • quote_capacity_work also prices extend (more results), add_facts and refresh (a recheck, at half price) on a finished run. Pass the original parent_find_id.
  • spec_options(kind) lists the facts you can ask for, per kind of thing. edit_spec changes a request without rereading it.
  • create_capacity_schedule keeps a request up to date, hourly to yearly, inside per-run and per-period limits.
  • export and download_export give CSV, XLSX, JSON or HTML. create_customer_webhook sends signed events.
  • Projects, members, shares and starred items have their own methods.

Command line

specstream compile "Open-source vector databases on GitHub with more than 5,000 stars, with their license."
specstream get-capacity-balance
specstream quote-capacity-work --body quote-request.json
specstream authorize-capacity-work --body approved-execution.json
specstream rows --find-id FIND_ID

--body takes a JSON file or - for stdin. Every command's --help describes its parameters. The command line exposes the same operations as the client.

Pricing

New accounts start with $10 of credit for 30 days, no card. A delivered result costs 5 cents, 15 cents or $1 depending on how many facts it carries. No result, no charge. Rechecks cost half. People and agents share one balance. See pricing.

MIT license.

Metadata

Release files for specstream-client 1.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-client 1.3.1
File Size Uploaded Provenance Actions
specstream_client-1.3.1.tar.gz 30.7 kB With provenance Details for specstream_client-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for specstream-client 1.3.1
File Interpreter ABI Platform Actions
specstream_client-1.3.1-py3-none-any.whl Python 3 none any Details for specstream_client-1.3.1-py3-none-any.whl

Total release size: 59.7 kB

Release files / specstream_client-1.3.1.tar.gz

Download URL specstream_client-1.3.1.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b393dc98454916a3b4dafbcdaf01b5ef27f3321ec72d38327049b73b2ce8f3d4
BLAKE2b-256 checksum
How to use checksums
70fb9ffbbb96a667ea9a7223dd22325c213a040f7d0e6c50009f54594b3f0169
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 7, 2026.

Transparency log

Release files / specstream_client-1.3.1-py3-none-any.whl

Download URL specstream_client-1.3.1-py3-none-any.whl
Size 29.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b23798e9987cfc43739bcdb6be7e20d95b007e0ae16e760769bf4a2ebc7a108a
BLAKE2b-256 checksum
How to use checksums
c15d78782aa48dff286df6a992bf97260a67acf7c81ef4d288563dd6f191af04
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 7, 2026.

Transparency log

Security for specstream-client 1.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_client-1.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 7, 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