Skip to the page

SDKs and command line

Read a request, work with quotes, and continue saved research from your own code. Install the latest of either client from PyPI or npm. Building an agent with LangChain, LlamaIndex, CrewAI, or the Vercel AI SDK? Use its package.

Python

Terminal
pip install specstream-client

Set SPECSTREAM_API_KEY to a key from your workspace, then create a client:

Python
import os
from specstream_client import Client
client = Client(api_key=os.environ["SPECSTREAM_API_KEY"])
catalog = client.get_capacity_catalog()
request = client.compile("Find software companies in Germany with 50 to 500 employees that are hiring salespeople")

Compiling reads the request. It doesn't authorize paid work.

TypeScript

Use Node.js 22 or later.

Terminal
npm install @specstream/sdk
typescript
import { Client } from "@specstream/sdk"
const client = new Client({ apiKey: process.env.SPECSTREAM_API_KEY! })
const catalog = await client.getCapacityCatalog()
const request = await client.compile("Find software companies in Germany with 50 to 500 employees that are hiring salespeople")

Command line

The Python package installs the specstream command. Configure the same API key in your environment.

Terminal
specstream --help
specstream families
specstream compile "Find software companies in Germany with 50 to 500 employees that are hiring salespeople"

Homebrew

On a Mac, the SpecStream Homebrew tap installs the same specstream command, with Python set up for it.

Packages for pipelines and agents

PackageInstallWhat it does
specstream-mcp-stdiouvx specstream-mcp-stdioA stdio bridge to the MCP server, for clients that only run local servers.
specstream-haystackpip install specstream-haystackA fetcher and an agent tool for Haystack. Each row becomes a Document that carries its source URL.
@specstream/convexnpm install @specstream/convexA Convex component. Ask for a list from your backend, cap the price in code, and the rows land in your tables while your UI watches.
tap-specstreampip install tap-specstreamA Singer tap for Meltano and any Singer target. It reads every list your key can open, with each value's source page and read time. It only reads, so give its key a spending limit of $0.

The framework packages have their own pages: LangChain, LlamaIndex, CrewAI, and the Vercel AI SDK. All frameworks

GitHub Action

The SpecStream Find action runs a request inside a workflow. It reads the request, gets the price, stops if the price is above the maximum you set, runs it otherwise, and uploads the results as a CSV artifact named specstream-results. Nothing runs without confirm_max_usd.

InputWhat it sets
requestWhat you need, in your own words. Required.
api_keyA SpecStream API key. Keep it in a repository secret. Required.
confirm_max_usdThe most this step may spend, in US dollars. The step stops if the price is higher, and it never fills this in for you. Required.
idempotency_keyA stable identity for the run. It defaults to the workflow run and job, so a re-run picks up the same work and never pays twice.
base_urlThe API origin. It defaults to https://api.specstream.ai.
localeThe language and region of the request. It defaults to en-US.

The action has two outputs: find_id, the run's ID for the workspace and the API, and csv_path, the path to the results file.

Install from a file

Prefer a file? Download the Python wheel or the TypeScript archive. The download manifest includes the filename, byte count, and SHA-256 hash for each file.

Read the API guide and OpenAPI schema →