SpecStream Research API

The Research API from SpecStream — 4 operation(s) for research.

GitHub OpenAPI

Operations 5

POST /v1/research Start a research report: the run plans the question, searches the live web… #
GET /v1/research List your research runs, newest first; follow next_after #
GET /v1/research/{run_id} Read a research run: its state and progress, and its report when it is completed #
POST /v1/research/{run_id}/cancel Stop a research run at its next step; a cancelled run is not charged #
GET /v1/research/{run_id}/events A research run's events as a server-sent stream, to its end; Last-Event-ID… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/specstream-ai:specstream-ai-research-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

specstream-ai-research-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpecStream Research 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: Research
paths:
  /v1/research:
    post:
      operationId: createResearch
      summary: 'Start a research report: the run plans the question, searches the live web…'
      responses:
        '202':
          description: The run's id, its state and its price
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/ResearchCreated'
        default:
          description: Error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResearchRequest'
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: Your id for this run, at most 128 characters. The same id with the same body answers with the same run; with another body it is refused with 409.
        schema:
          type: string
          minLength: 1
          maxLength: 128
      security:
      - apiKey: []
      tags:
      - Research
    get:
      operationId: listResearch
      summary: List your research runs, newest first; follow next_after
      responses:
        '200':
          description: A page of runs
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/ResearchRunList'
        default:
          description: Error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: after
        in: query
        required: false
        description: 'The run id next_after named: the page after it'
        schema:
          type: string
      security:
      - apiKey: []
      tags:
      - Research
  /v1/research/{run_id}:
    get:
      operationId: getResearch
      summary: 'Read a research run: its state and progress, and its report when it is completed'
      responses:
        '200':
          description: The run
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/ResearchRun'
        default:
          description: Error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
      security:
      - apiKey: []
      tags:
      - Research
  /v1/research/{run_id}/cancel:
    post:
      operationId: cancelResearch
      summary: Stop a research run at its next step; a cancelled run is not charged
      responses:
        '200':
          description: The run
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/ResearchRun'
        default:
          description: Error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
      security:
      - apiKey: []
      tags:
      - Research
  /v1/research/{run_id}/events:
    get:
      operationId: researchEvents
      summary: A research run's events as a server-sent stream, to its end; Last-Event-ID…
      responses:
        '200':
          description: text/event-stream
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/ResearchEvent'
        default:
          description: Error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
      - name: after
        in: query
        required: false
        description: Send the events after this event id (as Last-Event-ID does)
        schema:
          type: integer
          minimum: 0
      - name: Last-Event-ID
        in: header
        required: false
        schema:
          type: string
      security:
      - apiKey: []
      tags:
      - Research
components:
  schemas:
    JsonOutput:
      additionalProperties: false
      description: JSON that matches the caller's JSON Schema; each filled field carries its basis.
      properties:
        type:
          const: json
          title: Type
          type: string
        schema:
          anyOf:
          - additionalProperties: true
            type: object
          - type: boolean
          title: Schema
      required:
      - type
      - schema
      title: JsonOutput
      type: object
    ResearchRun:
      additionalProperties: false
      description: GET /v1/research/{id}. The report shows only when the run is completed.
      properties:
        id:
          title: Id
          type: string
        status:
          enum:
          - queued
          - running
          - completed
          - failed
          - cancelled
          - payment_required
          title: Status
          type: string
        stage:
          enum:
          - queued
          - planning
          - searching
          - reading
          - writing
          - checking
          - done
          title: Stage
          type: string
        depth:
          enum:
          - quick
          - standard
          - deep
          title: Depth
          type: string
        input:
          default: ''
          title: Input
          type: string
        progress:
          $ref: '#/components/schemas/Progress'
        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
        completed_at:
          anyOf:
          - format: date-time
            type: string
          - type: 'null'
          default: null
          title: Completed At
        report:
          anyOf:
          - $ref: '#/components/schemas/Report'
          - type: 'null'
          default: null
        usage:
          $ref: '#/components/schemas/Usage'
        metadata:
          additionalProperties:
            type: string
          title: Metadata
          type: object
        error:
          anyOf:
          - $ref: '#/components/schemas/RunError'
          - type: 'null'
          default: null
      required:
      - id
      - status
      - stage
      - depth
      - progress
      - created_at
      - usage
      title: ResearchRun
      type: object
    Webhook:
      additionalProperties: false
      properties:
        url:
          maxLength: 2048
          minLength: 1
          title: Url
          type: string
      required:
      - url
      title: Webhook
      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
    Report:
      additionalProperties: false
      properties:
        title:
          title: Title
          type: string
        format:
          const: markdown
          default: markdown
          title: Format
          type: string
        content:
          title: Content
          type: string
        structured:
          default: null
          title: Structured
        citations:
          items:
            $ref: '#/components/schemas/Citation'
          title: Citations
          type: array
        sources:
          items:
            $ref: '#/components/schemas/Source'
          title: Sources
          type: array
        basis:
          items:
            $ref: '#/components/schemas/Basis'
          title: Basis
          type: array
      required:
      - title
      - content
      title: Report
      type: object
    Usage:
      additionalProperties: false
      properties:
        searches:
          default: 0
          title: Searches
          type: integer
        pages_read:
          default: 0
          title: Pages Read
          type: integer
        charged_usd:
          default: 0.0
          title: Charged Usd
          type: number
      title: Usage
      type: object
    Links:
      additionalProperties: false
      properties:
        self:
          title: Self
          type: string
        events:
          title: Events
          type: string
      required:
      - self
      - events
      title: Links
      type: object
    ResearchRunList:
      additionalProperties: false
      description: 'GET /v1/research: the account''s runs, newest first; next_after pages on.'
      properties:
        data:
          items:
            $ref: '#/components/schemas/ResearchRun'
          title: Data
          type: array
        has_more:
          title: Has More
          type: boolean
        next_after:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Next After
      required:
      - data
      - has_more
      title: ResearchRunList
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      required:
      - error
      title: ErrorEnvelope
      type: object
    ResearchEvent:
      additionalProperties: false
      description: 'One server-sent event: id is what Last-Event-ID names.'
      properties:
        id:
          title: Id
          type: integer
        type:
          enum:
          - research.queued
          - research.started
          - research.stage
          - research.source
          - research.completed
          - research.failed
          - research.cancelled
          title: Type
          type: string
        data:
          additionalProperties: true
          title: Data
          type: object
        created_at:
          format: date-time
          title: Created At
          type: string
      required:
      - id
      - type
      - data
      - created_at
      title: ResearchEvent
      type: object
    Progress:
      additionalProperties: false
      properties:
        searches:
          default: 0
          title: Searches
          type: integer
        pages_read:
          default: 0
          title: Pages Read
          type: integer
        sources:
          default: 0
          title: Sources
          type: integer
      title: Progress
      type: object
    TextOutput:
      additionalProperties: false
      description: Markdown with numbered citations.
      properties:
        type:
          const: text
          default: text
          title: Type
          type: string
      title: TextOutput
      type: object
    ResearchCreated:
      additionalProperties: false
      description: The 202 reply of POST /v1/research.
      properties:
        id:
          title: Id
          type: string
        status:
          enum:
          - queued
          - running
          - completed
          - failed
          - cancelled
          - payment_required
          title: Status
          type: string
        depth:
          enum:
          - quick
          - standard
          - deep
          title: Depth
          type: string
        price_usd:
          title: Price Usd
          type: number
        created_at:
          format: date-time
          title: Created At
          type: string
        links:
          $ref: '#/components/schemas/Links'
      required:
      - id
      - status
      - depth
      - price_usd
      - created_at
      - links
      title: ResearchCreated
      type: object
    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
    RunError:
      additionalProperties: false
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
      required:
      - code
      - message
      title: RunError
      type: object
    Source:
      additionalProperties: false
      properties:
        n:
          minimum: 1
          title: N
          type: integer
        url:
          title: Url
          type: string
        title:
          title: Title
          type: string
        read_at:
          format: date-time
          title: Read At
          type: string
        cited:
          title: Cited
          type: boolean
      required:
      - n
      - url
      - title
      - read_at
      - cited
      title: Source
      type: object
    ResearchRequest:
      additionalProperties: false
      description: The body of POST /v1/research.
      properties:
        input:
          maxLength: 15000
          minLength: 1
          title: Input
          type: string
        depth:
          default: standard
          enum:
          - quick
          - standard
          - deep
          title: Depth
          type: string
        output:
          discriminator:
            mapping:
              json: '#/$defs/JsonOutput'
              text: '#/$defs/TextOutput'
            propertyName: type
          oneOf:
          - $ref: '#/components/schemas/TextOutput'
          - $ref: '#/components/schemas/JsonOutput'
          title: Output
        length:
          default: standard
          enum:
          - short
          - standard
          - long
          title: Length
          type: string
        language:
          anyOf:
          - maxLength: 35
            minLength: 2
            type: string
          - type: 'null'
          default: null
          title: Language
        include_domains:
          items:
            maxLength: 253
            minLength: 1
            type: string
          maxItems: 100
          title: Include Domains
          type: array
        exclude_domains:
          items:
            maxLength: 253
            minLength: 1
            type: string
          maxItems: 100
          title: Exclude Domains
          type: array
        after_date:
          anyOf:
          - format: date
            type: string
          - type: 'null'
          default: null
          title: After Date
        webhook:
          anyOf:
          - $ref: '#/components/schemas/Webhook'
          - type: 'null'
          default: null
        metadata:
          additionalProperties:
            maxLength: 512
            type: string
          title: Metadata
          type: object
      required:
      - input
      title: ResearchRequest
      type: object
    Basis:
      additionalProperties: false
      description: One filled field of a JSON report, in dot notation, with the citations behind it.
      properties:
        field:
          title: Field
          type: string
        citations:
          items:
            type: integer
          title: Citations
          type: array
        supported:
          title: Supported
          type: boolean
      required:
      - field
      - citations
      - supported
      title: Basis
      type: object
    Citation:
      additionalProperties: false
      description: 'One cited sentence: start and end are its character offsets in the report''s content.'
      properties:
        n:
          minimum: 1
          title: N
          type: integer
        url:
          title: Url
          type: string
        title:
          title: Title
          type: string
        read_at:
          format: date-time
          title: Read At
          type: string
        excerpt:
          title: Excerpt
          type: string
        start:
          minimum: 0
          title: Start
          type: integer
        end:
          minimum: 0
          title: End
          type: integer
        supported:
          title: Supported
          type: boolean
      required:
      - n
      - url
      - title
      - read_at
      - excerpt
      - start
      - end
      - supported
      title: Citation
      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.