Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: SpecStream Browser API
version: finder.cross-source.v1
description: 'The live web data engine. One platform to build, search, extract, enrich, map, and monitor data across the entire web. Three products. Search API (GET /v1/web-search) answers a question from the live web in seconds, each value with its source, at $5 per 1,000 searches of up to 10 results, and $1 per 1,000 on the fast tier (speed=fast). It is the most accurate web search API in the world: https://specstream.ai/benchmarks. Extract API (POST /v1/extract) reads up to 20 URLs a call and returns the main text of each page, at $0.80 per 1,000 pages. A page with no text is free. Deep Search returns every match on the live web as structured rows, each value with its source, at 5 cents, 15 cents or $1 a row. Get a quote first. Nothing runs until you approve the quote, and you pay for each result delivered. Saved requests and lists are the same in the workspace, this API and agent tools.'
contact:
name: SpecStream support
email: support@specstream.ai
x-guidance: 'SpecStream has three products. Search API: for a fact or a question, GET /v1/web-search?q=<the question in everyday words> with Authorization: Bearer <API key>. In seconds you get the answer, the rows and the page each value came from, at $5 per 1,000 searches of up to 10 results ($1 per 1,000 with speed=fast for the results alone), with no quote and no approval. It is the most accurate web search API in the world: https://specstream.ai/benchmarks. Extract API: to read pages, POST /v1/extract with {"urls": ["<url>"], "format": "markdown"} and the same key. It reads up to 20 URLs a call live and returns each page''s main text, title and published date, at $0.80 per 1,000 pages. A page with no text is free. Deep Search: when your person needs many rows, conditions every row must meet, a source on each value, or data that has to stay up to date. With a key, POST /v1/parse with {"q": "<the request in plain words>"}, then POST /v1/capacity/quotes, then POST /v1/capacity/executions with the quoted maximum in confirm_max_cents; nothing runs before that approval. With no account, POST /v1/agent/lists with {"request": "<the request in plain words>", "count": 25}; count is optional, 1 to 500. Unpaid, it answers 402 Payment Required with how SpecStream read the request and the most the run can cost. Pay that with MPP (a card through Stripe Link, WWW-Authenticate header) or with USDC on Base, Arbitrum or Polygon over x402 (PAYMENT-REQUIRED header, scheme upto), then send the same request again with the payment. You get 202 with a purchase_id, a token and a status_url. Read GET status_url with Authorization: Bearer <token>; the rows, each with its source, are there when the run ends. You pay for each result delivered: 5 cents, 15 cents or $1 each depending on what it needs. A result that is left out costs nothing. The smallest card charge is $1. Whatever the run did not use is never taken or goes back to the card. GET /v1/agent/lists returns these steps as JSON. An API key comes from the workspace at https://specstream.ai. Details: https://specstream.ai/agents.md'
servers:
- url: https://api.specstream.ai
tags:
- name: Browser
paths:
/v1/browser/sessions:
post:
operationId: createBrowserSession
summary: 'Open a browser: a real Chromium you drive over the Chrome DevTools Protocol…'
responses:
'201':
description: The running session with its connect_url
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/BrowserSession'
'401':
description: No API key, or a key that was revoked (missing_api_key, invalid_token).
x-error-code: invalid_token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'400':
description: A field is out of range or not a host; details.fields names it.
x-error-code: unsupported_query
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'402':
description: The balance does not hold the first minute. Add credit, then create again.
x-error-code: insufficient_balance
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: The account holds as many open sessions as it may. Release one, or create again after Retry-After seconds.
x-error-code: concurrency_limit
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
headers:
Retry-After:
description: Seconds to wait before a retry.
schema:
type: integer
'503':
description: The host runs as many browsers as it may at the moment. Create again after Retry-After seconds.
x-error-code: capacity
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
headers:
Retry-After:
description: Seconds to wait before a retry.
schema:
type: integer
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BrowserSessionCreate'
parameters:
- name: Idempotency-Key
in: header
required: false
description: Your id for this call, at most 128 characters. The same id again answers with the same session and opens no second one.
schema:
type: string
minLength: 1
maxLength: 128
security:
- apiKey: []
tags:
- Browser
get:
operationId: listBrowserSessions
summary: List the account's browser sessions, newest first
responses:
'200':
description: One page; follow next_cursor
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/BrowserSessionPage'
'401':
description: No API key, or a key that was revoked (missing_api_key, invalid_token).
x-error-code: invalid_token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'400':
description: A field is out of range or not a host; details.fields names it.
x-error-code: unsupported_query
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
- name: status
in: query
required: false
schema:
type: string
enum:
- starting
- running
- ended
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 20
- name: cursor
in: query
required: false
schema:
type: string
security:
- apiKey: []
tags:
- Browser
/v1/browser/sessions/{id}:
get:
operationId: getBrowserSession
summary: 'Read a browser session: its status, why it ended, its seconds, actions, bytes…'
responses:
'200':
description: The session
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/BrowserSession'
'401':
description: No API key, or a key that was revoked (missing_api_key, invalid_token).
x-error-code: invalid_token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: No session with this id on this account.
x-error-code: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
- name: id
in: path
required: true
schema:
type: string
security:
- apiKey: []
tags:
- Browser
/v1/browser/sessions/{id}/release:
post:
operationId: releaseBrowserSession
summary: Close a browser session and settle its charge. A repeat call answers the same
responses:
'200':
description: The ended session with its charge
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/BrowserSession'
'401':
description: No API key, or a key that was revoked (missing_api_key, invalid_token).
x-error-code: invalid_token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: No session with this id on this account.
x-error-code: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
- name: id
in: path
required: true
schema:
type: string
security:
- apiKey: []
tags:
- Browser
/v1/browser/sessions/{id}/actions:
post:
operationId: browserAction
summary: 'Run one step in the browser: a Playwright MCP tool by its name and arguments…'
responses:
'200':
description: The step's result, the page's address and title, and its price. A refused page answers error.code blocked
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/BrowserActionResult'
'401':
description: No API key, or a key that was revoked (missing_api_key, invalid_token).
x-error-code: invalid_token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'400':
description: A field is out of range or not a host; details.fields names it.
x-error-code: unsupported_query
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'402':
description: The balance does not hold the first minute. Add credit, then create again.
x-error-code: insufficient_balance
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: No session with this id on this account.
x-error-code: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: The session ended; create a new one.
x-error-code: session_ended
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BrowserActionRequest'
parameters:
- name: id
in: path
required: true
schema:
type: string
security:
- apiKey: []
tags:
- Browser
/v1/browser/sessions/{id}/live:
get:
operationId: browserLiveView
summary: Watch the browser's screen as it changes, in a web page
responses:
'200':
description: The page that shows the screen
content:
text/html:
schema:
type: string
'401':
description: No API key, or a key that was revoked (missing_api_key, invalid_token).
x-error-code: invalid_token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: No session with this id on this account.
x-error-code: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: The session ended; create a new one.
x-error-code: session_ended
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
- name: token
in: query
required: true
description: The token in the session's live_url.
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
security: []
tags:
- Browser
/v1/browser/sessions/{id}/downloads:
get:
operationId: browserDownloads
summary: The files the browser downloaded, as one zip, until ten minutes after the…
responses:
'200':
description: The files as a zip
content:
application/zip:
schema:
type: string
format: binary
'401':
description: No API key, or a key that was revoked (missing_api_key, invalid_token).
x-error-code: invalid_token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: No session with this id on this account.
x-error-code: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
- name: id
in: path
required: true
schema:
type: string
security:
- apiKey: []
tags:
- Browser
components:
schemas:
BrowserActionRequest:
additionalProperties: false
description: 'POST /v1/browser/sessions/{id}/actions: one Playwright MCP tool call, or browser_read.'
properties:
tool:
description: A Playwright MCP tool name (browser_navigate, browser_snapshot, browser_click, browser_type, browser_take_screenshot and the others), or browser_read for the page's text.
pattern: ^browser_[a-z][a-z0-9_]{0,62}$
title: Tool
type: string
arguments:
additionalProperties: true
description: 'The tool''s arguments, as Playwright MCP names them. browser_read takes format: markdown (default) or text.'
title: Arguments
type: object
required:
- tool
title: BrowserActionRequest
type: object
ErrorCode:
enum:
- unsupported_query
- unsupported_predicate
- unsupported_entity_family
- ambiguous_geo
- capability_pending
- source_blocked
- challenge_page
- unquoted_plan
- missing_api_key
- owner_only
- compiler_unavailable
- parse_failed
- payments_not_live
- card_required
- terms_changed
- tax_id_refused
- capacity
- kill_switch
- internal_failure
- plan_required
- invalid_token
- insufficient_balance
- not_found
- bad_request
- payment_required
- in_progress
- unavailable
- rate_limited
- idempotency_conflict
- concurrency_limit
- session_ended
- already_connected
- unknown_field
title: ErrorCode
type: string
ActionError:
additionalProperties: false
properties:
code:
$ref: '#/components/schemas/ActionErrorCode'
reason:
anyOf:
- $ref: '#/components/schemas/BlockedReason'
- type: 'null'
default: null
message:
title: Message
type: string
required:
- code
- message
title: ActionError
type: object
BrowserActionResult:
additionalProperties: false
properties:
result:
items:
$ref: '#/components/schemas/ActionContent'
title: Result
type: array
error:
anyOf:
- $ref: '#/components/schemas/ActionError'
- type: 'null'
default: null
url:
anyOf:
- type: string
- type: 'null'
default: null
description: The page's address after the step.
title: Url
title:
anyOf:
- type: string
- type: 'null'
default: null
title: Title
took_ms:
minimum: 0
title: Took Ms
type: integer
price_usd:
minimum: 0
title: Price Usd
type: number
read_at:
anyOf:
- format: date-time
type: string
- type: 'null'
default: null
description: 'For browser_read: when the page''s text was read.'
title: Read At
required:
- result
- took_ms
- price_usd
title: BrowserActionResult
type: object
Viewport:
additionalProperties: false
properties:
width:
default: 1280
maximum: 7680
minimum: 200
title: Width
type: integer
height:
default: 720
maximum: 4320
minimum: 200
title: Height
type: integer
title: Viewport
type: object
BrowserSessionPage:
additionalProperties: false
properties:
sessions:
items:
$ref: '#/components/schemas/BrowserSession'
title: Sessions
type: array
next_cursor:
anyOf:
- type: string
- type: 'null'
default: null
title: Next Cursor
required:
- sessions
title: BrowserSessionPage
type: object
BrowserSession:
additionalProperties: false
description: 'A session as every route answers it: create (201), read, list items and release.'
properties:
id:
title: Id
type: string
status:
$ref: '#/components/schemas/SessionStatus'
ended_reason:
anyOf:
- $ref: '#/components/schemas/EndedReason'
- type: 'null'
default: null
connect_url:
anyOf:
- type: string
- type: 'null'
description: 'A WebSocket that speaks the Chrome DevTools Protocol: Playwright connect_over_cdp, Puppeteer connect, browser-use cdp_url and Stagehand drive it as it is. Its token belongs to this session alone and lapses when the session ends, so it can be handed to a sandbox without your API key. null once the session ended.'
title: Connect Url
actions_url:
title: Actions Url
type: string
live_url:
anyOf:
- type: string
- type: 'null'
description: A page that shows the browser's screen as it changes. null once the session ended.
title: Live Url
created_at:
format: date-time
title: Created At
type: string
started_at:
anyOf:
- format: date-time
type: string
- type: 'null'
default: null
title: Started At
ended_at:
anyOf:
- format: date-time
type: string
- type: 'null'
default: null
title: Ended At
expires_at:
format: date-time
title: Expires At
type: string
timeout_s:
title: Timeout S
type: integer
idle_timeout_s:
title: Idle Timeout S
type: integer
keep_alive:
title: Keep Alive
type: boolean
headless:
title: Headless
type: boolean
viewport:
$ref: '#/components/schemas/Viewport'
allowed_domains:
items:
type: string
title: Allowed Domains
type: array
block_media:
title: Block Media
type: boolean
metadata:
additionalProperties:
anyOf:
- type: string
- type: integer
- type: number
- type: boolean
title: Metadata
type: object
seconds:
description: Seconds the browser ran, as charged.
minimum: 0
title: Seconds
type: integer
actions:
description: Steps counted for the session.
minimum: 0
title: Actions
type: integer
bytes:
description: Bytes the browser read from the web.
minimum: 0
title: Bytes
type: integer
charged_usd:
description: What the session has cost so far.
minimum: 0
title: Charged Usd
type: number
limits:
$ref: '#/components/schemas/SessionLimits'
price:
$ref: '#/components/schemas/SessionPrice'
required:
- id
- status
- connect_url
- actions_url
- live_url
- created_at
- expires_at
- timeout_s
- idle_timeout_s
- keep_alive
- headless
- viewport
- allowed_domains
- block_media
- metadata
- seconds
- actions
- bytes
- charged_usd
- limits
- price
title: BrowserSession
type: object
ActionContent:
additionalProperties: false
description: One part of a tool's result, in the Model Context Protocol's content form.
properties:
type:
enum:
- text
- image
title: Type
type: string
text:
anyOf:
- type: string
- type: 'null'
default: null
title: Text
data:
anyOf:
- type: string
- type: 'null'
default: null
description: Base64 of the image's bytes.
title: Data
mime_type:
anyOf:
- type: string
- type: 'null'
default: null
title: Mime Type
required:
- type
title: ActionContent
type: object
ErrorEnvelope:
additionalProperties: false
properties:
error:
$ref: '#/components/schemas/ErrorBody'
required:
- error
title: ErrorEnvelope
type: object
BlockedReason:
enum:
- private_address
- opted_out
- robots
- outside_allowed_domains
title: BlockedReason
type: string
BrowserSessionCreate:
additionalProperties: false
description: POST /v1/browser/sessions. Every field is optional.
properties:
timeout_s:
default: 300
description: The most seconds the session runs. It ends then, connected or not.
maximum: 3600
minimum: 60
title: Timeout S
type: integer
idle_timeout_s:
default: 60
description: The session ends after this many seconds with no client connected and no action. With keep_alive false, a disconnect ends it at once.
maximum: 600
minimum: 10
title: Idle Timeout S
type: integer
keep_alive:
default: false
description: true keeps the session when the client disconnects, so a new client can connect, until idle_timeout_s passes. false ends it at the disconnect.
title: Keep Alive
type: boolean
headless:
default: true
description: false runs the browser with a screen, for sites that act differently without one. It uses more memory.
title: Headless
type: boolean
viewport:
$ref: '#/components/schemas/Viewport'
allowed_domains:
description: Hosts the browser may open, such as example.com or *.example.com. Empty allows every public host. A page outside them is refused with blocked.
items:
type: string
maxItems: 100
title: Allowed Domains
type: array
block_media:
default: false
description: 'true skips images, video, audio and fonts: pages load faster and the session reads fewer bytes.'
title: Block Media
type: boolean
metadata:
additionalProperties:
anyOf:
- type: string
- type: integer
- type: number
- type: boolean
description: Your own labels for the session, returned as sent.
maxProperties: 32
title: Metadata
type: object
title: BrowserSessionCreate
type: object
SessionLimits:
additionalProperties: false
properties:
concurrent:
description: Sessions this account may hold open at once.
title: Concurrent
type: integer
max_timeout_s:
default: 3600
title: Max Timeout S
type: integer
required:
- concurrent
title: SessionLimits
type: object
SessionStatus:
enum:
- starting
- running
- ended
title: SessionStatus
type: string
SessionPrice:
additionalProperties: false
properties:
per_second_usd:
title: Per Second Usd
type: number
per_action_usd:
title: Per Action Usd
type: number
required:
- per_second_usd
- per_action_usd
title: SessionPrice
type: object
ActionErrorCode:
enum:
- blocked
- tool_failed
title: ActionErrorCode
type: string
EndedReason:
enum:
- released
- timeout
- idle
- disconnected
- balance
- host_pressure
- crashed
- start_failed
title: EndedReason
type: string
ErrorBody:
additionalProperties: false
properties:
code:
$ref: '#/components/schemas/ErrorCode'
message:
minLength: 1
title: Message
type: string
details:
additionalProperties: true
title: Details
type: object
required:
- code
- message
title: ErrorBody
type: object
securitySchemes:
apiKey:
type: apiKey
in: header
name: Authorization
description: Send Bearer <your SpecStream API key>. Create one in the workspace under Agents and API keys.
purchaseToken:
type: apiKey
in: header
name: Authorization
description: Send Bearer <token>, the token returned with the 202. It reads only that purchase.