# SpecStream API reference

> SpecStream's REST API searches the live web and reads pages. Web search answers a question in everyday words and returns the answer or rows, each value with the page it came from; extract returns the main text of up to 20 URLs. The API also has quote-and-approve endpoints for larger structured…

Source: https://osinttools.io/apis/specstream/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/specstream/

- Base URL: https://api.specstream.ai
- Authentication: Bearer token in the `Authorization` header. Get a key: https://specstream.ai Create a key in the workspace under Agents & API.
- Pricing: Pay per request
- Rate limits: Not stated in the docs
- Vendor docs: https://specstream.ai/docs/api
- OpenAPI spec: https://specstream.ai/specstream/openapi.yaml

## Overview

SpecStream's REST API searches the live web and reads pages. Web search answers a question in everyday words and returns the answer or rows, each value with the page it came from; extract returns the main text of up to 20 URLs. The API also has quote-and-approve endpoints for larger structured searches (deep search), saved requests, exports and webhooks, which are not described here; see the OpenAPI file.

Calls go to `https://api.specstream.ai` with an API key as a Bearer token. Keys are made in the workspace under Agents & API, carry scopes and spending limits, and responses are wrapped in a `data` object. Per the OpenAPI description, search costs $5 per 1,000 searches ($1 per 1,000 with `speed=fast`) and extract $0.80 per 1,000 pages read; a page with no text is free.

A request with no key can be answered with HTTP 402 and a payment request (x402). The docs I read give no rate limits.

## Errors

| Status | Meaning |
| --- | --- |
| 402 | No key (payment required over x402), or an end-user spend cap refusal |
| 409 | An Idempotency-Key was reused |

## Search

### Answer a question from the live web, with the source of each value.

`GET /v1/web-search`

- Takes: Name, URL
- Footprint: passive (the target is not contacted)
- Cost: $5 per 1,000 searches of up to 10 results; $1 per 1,000 with speed=fast

Supports site:, -site:, filetype:, after: and before: operators in q. kind is list or fact; for lists, handoff points to a full table. Send an Idempotency-Key header to be charged once per id.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | The question in everyday words, 1 to 2000 characters Example: who is the registrar of example.com |
| `passages` | query | boolean | no | Return text of the top pages with highlights Example: false |
| `compact` | query | boolean | no | Compact sources with no answer, rows, handoff or passages Example: false |
| `num` | query | integer | no | Number of results, 1 to 200 (200 only with images=true) Example: 10 |
| `page` | query | integer | no | Results page, 1 to 10 Example: 1 |
| `speed` | query | string | no | fast returns results without an answer, rows or passages Example: default One of: default, fast |
| `news` | query | boolean | no | Return news items instead of web results Example: false |
| `language` | query | string | no | Two-letter ISO 639-1 result language Example: en |
| `country` | query | string | no | Two-letter ISO 3166-1 country the results are for Example: US |
| `safe` | query | string | no | Safe search level Example: moderate One of: off, moderate, strict |

Response fields:

- `data.request_id` (string): Request id
- `data.query` (string): The question asked
- `data.kind` (string): list or fact, when the question was classified
- `data.columns[]` (string): Column names of the rows
- `data.answer` (object): The answer value, with its source
- `data.rows[]` (object): Result rows, each value with its source
- `data.sources[].url` (string): Result page address
- `data.sources[].title` (string): Result page title
- `data.sources[].snippet` (string): Result snippet
- `data.took_ms` (integer): Time taken in milliseconds
- `data.price_usd` (number): Price of the call in US dollars
- `data.next_page` (integer): Next results page, if any

```bash
curl 'https://api.specstream.ai/v1/web-search?q=who%20is%20the%20registrar%20of%20example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "request_id": "req_example1",
    "query": "who is the registrar of example.com",
    "kind": "fact",
    "sources": [
      {
        "url": "https://example.com/about",
        "title": "About Example",
        "snippet": "Made-up snippet text."
      }
    ],
    "took_ms": 1800,
    "price_usd": 0.005,
    "next_page": null
  }
}
```

## Extract

### Read the main text of up to 20 pages.

`POST /v1/extract`

- Takes: URL
- Footprint: active (contacts the target)
- Cost: $0.80 per 1,000 pages read

Pages come from live URLs, SpecStream's dated copy, or HTML you send. Only pages with status ok are charged. Each result has a status of ok, blocked, not_found, empty, unsupported, invalid_url or failed. PDFs, Word, Excel, EPUB and images are not read.

Response fields:

- `data[].url` (string): Page address
- `data[].status` (string): ok, blocked, not_found, empty, unsupported, invalid_url or failed
- `data[].title` (string): Page title
- `data[].text` (string): Main text of the page
- `data[].text_truncated` (boolean): Whether the text was cut at max_chars
- `data[].published` (string): Published date, if found
- `data[].read_from` (string): live, site, archive or html

```bash
curl -X POST 'https://api.specstream.ai/v1/extract' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"urls":["https://example.com/page"],"format":"markdown"}'
```

Example response (200):

```json
{
  "data": [
    {
      "url": "https://example.com/page",
      "status": "ok",
      "title": "Example page",
      "text": "Made-up main text of the page.",
      "text_truncated": false,
      "published": null,
      "read_from": "live"
    }
  ]
}
```

## Account

### Your account and spending authorization state.

`GET /v1/me`

- Footprint: passive (the target is not contacted)

Reports the spend ceiling and what remains of it.

Response fields:

- `data.account_id` (string): Account id
- `data.email` (string): Account email
- `data.guest` (boolean): Whether this is a guest account
- `data.spend_ceiling_cents` (integer): Spend ceiling in cents
- `data.amount_spent_cents` (integer): Amount spent in cents
- `data.remaining_spend_cents` (integer): Remaining spend in cents
- `data.authorization_available` (boolean): Whether spending authorization is available

```bash
curl 'https://api.specstream.ai/v1/me' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "account_id": "acct_example1",
    "email": "user@example.com",
    "guest": false,
    "spend_ceiling_cents": 1000,
    "amount_spent_cents": 120,
    "remaining_spend_cents": 880,
    "authorization_available": true
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
