SpecStream Spec Options API

The Spec Options API from SpecStream — 1 operation(s) for spec options.

GitHub OpenAPI

Operations 1

GET /v1/spec-options/{target} Read the conditions and details you can ask for on one record type #

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-spec-options-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-spec-options-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpecStream Spec Options 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: Spec Options
paths:
  /v1/spec-options/{target}:
    get:
      operationId: getSpecOptions
      summary: Read the conditions and details you can ask for on one record type
      responses:
        '200':
          description: Request options
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/SpecOptionsData'
        default:
          description: Error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      parameters:
      - name: target
        in: path
        required: true
        schema:
          type: string
      security:
      - apiKey: []
      tags:
      - Spec Options
components:
  schemas:
    SemanticBinding:
      additionalProperties: false
      properties:
        spec_version:
          const: semantic_binding.v1
          default: semantic_binding.v1
          title: Spec Version
          type: string
        catalog_sha256:
          pattern: ^[0-9a-f]{64}$
          title: Catalog Sha256
          type: string
        target_id:
          pattern: ^[a-z][a-z0-9_.-]{1,127}$
          title: Target Id
          type: string
        footprint_id:
          anyOf:
          - pattern: ^[a-z][a-z0-9_.-]{1,127}$
            type: string
          - type: 'null'
          default: null
          title: Footprint Id
      required:
      - catalog_sha256
      - target_id
      title: SemanticBinding
      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
    MustMatchOption:
      additionalProperties: false
      properties:
        field_id:
          title: Field Id
          type: string
        label:
          title: Label
          type: string
        value_type:
          title: Value Type
          type: string
        operators:
          items:
            $ref: '#/components/schemas/PredicateOp'
          title: Operators
          type: array
      required:
      - field_id
      - label
      - value_type
      - operators
      title: MustMatchOption
      type: object
    TargetDefinition:
      additionalProperties: false
      properties:
        target_id:
          pattern: ^[a-z][a-z0-9_.-]{1,127}$
          title: Target Id
          type: string
        entity_type:
          $ref: '#/components/schemas/EntityType'
        grain:
          maxLength: 1200
          minLength: 24
          title: Grain
          type: string
        phrases:
          default: []
          items:
            type: string
          title: Phrases
          type: array
        retrieval_noun:
          maxLength: 120
          minLength: 1
          title: Retrieval Noun
          type: string
        retrieval_aliases:
          default: []
          items:
            type: string
          maxItems: 32
          title: Retrieval Aliases
          type: array
        footprint_id:
          anyOf:
          - pattern: ^[a-z][a-z0-9_.-]{1,127}$
            type: string
          - type: 'null'
          default: null
          title: Footprint Id
      required:
      - target_id
      - entity_type
      - grain
      - retrieval_noun
      title: TargetDefinition
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      required:
      - error
      title: ErrorEnvelope
      type: object
    BringBackOption:
      additionalProperties: false
      properties:
        field_id:
          title: Field Id
          type: string
        label:
          title: Label
          type: string
        value_type:
          title: Value Type
          type: string
        recommended:
          title: Recommended
          type: boolean
        contact:
          title: Contact
          type: boolean
        definition:
          default: ''
          title: Definition
          type: string
      required:
      - field_id
      - label
      - value_type
      - recommended
      - contact
      title: BringBackOption
      type: object
    EntityType:
      title: EntityType
      type: string
      minLength: 1
      examples:
      - local_business
      - creator
      - organization
      - storefront_product
      - app_listing
      - job_posting
      - scholarly_work
      - tender
      - grant
      - software_repository
      - software_package
      - dataset
      - clinical_trial
      - regulatory_document
      - vulnerability
      - book
      - podcast
      - web_page
      - knowledge_entity
      - person
    PredicateOp:
      enum:
      - count_matches
      - contains
      - not_contains
      - has_any
      - has_all
      - has_none
      - before
      - after
      - on_or_before
      - on_or_after
      - gt
      - lt
      - ne
      - not_in
      - gte
      - lte
      - eq
      - exists
      - class_in
      - in
      title: PredicateOp
      type: string
    SpecOptionsData:
      additionalProperties: false
      properties:
        semantic_binding:
          anyOf:
          - $ref: '#/components/schemas/SemanticBinding'
          - type: 'null'
          default: null
        target_refinements:
          items:
            $ref: '#/components/schemas/TargetDefinition'
          title: Target Refinements
          type: array
        entity_type:
          $ref: '#/components/schemas/EntityType'
        target_label:
          title: Target Label
          type: string
        must_match:
          items:
            $ref: '#/components/schemas/MustMatchOption'
          title: Must Match
          type: array
        bring_back:
          items:
            $ref: '#/components/schemas/BringBackOption'
          title: Bring Back
          type: array
      required:
      - entity_type
      - target_label
      - must_match
      - bring_back
      title: SpecOptionsData
      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
  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.