SpecStream Extract API

The Extract API from SpecStream — 1 operation(s) for extract.

GitHub OpenAPI

Operations 1

POST /v1/extract Extract API: read up to 20 pages, live from their URLs or from HTML you send… #

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-extract-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-extract-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpecStream Extract 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: Extract
paths:
  /v1/extract:
    post:
      operationId: extractPages
      summary: 'Extract API: read up to 20 pages, live from their URLs or from HTML you send…'
      responses:
        '200':
          description: Each URL's result in the order sent, with its status, the time taken and the price of the pages read
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/ExtractPage'
          headers:
            X-Balance-Cents:
              description: 'The account''s balance after this call''s charge, in whole cents: what this kind of call can still draw. On a search it includes the searches left in the account''s search packs at the list price. Sent when the call was charged.'
              schema:
                type: integer
        default:
          description: Error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '402':
          description: 'No key: the x402 PaymentRequired answer for this one call.'
          headers:
            PAYMENT-REQUIRED:
              description: 'Base64 x402 v2 PaymentRequired: the exact scheme, USDC.'
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtractRequest'
      description: 'With no API key, the call answers 402 with a PAYMENT-REQUIRED header (base64 x402 v2 PaymentRequired): pay for this one call with x402''s `exact` scheme in USDC on Base, Arbitrum or Polygon, and send the same request again with the payment in PAYMENT-SIGNATURE. The reply then carries PAYMENT-RESPONSE naming the transaction. One search of up to 10 results costs $0.007 ($0.002 with speed=fast, news or images), and a page read costs $0.002 for each page you ask for. The price is taken when the payment settles, before the call runs, so a search with no result or a page with no text is paid. If the call fails on our side after the payment settled, or the settle has no answer yet, send the same request with the same PAYMENT-SIGNATURE again: it is answered, and nothing is taken twice.'
      x-payment-info:
        price:
          mode: dynamic
          currency: USD
          min: '0.002'
          max: '0.040'
        protocols:
        - x402:
            scheme: exact
            manifest: /.well-known/x402
      security:
      - apiKey: []
      - {}
      parameters:
      - name: X-End-User-Id
        in: header
        required: false
        description: Your own label for the end user this call is for. SpecStream keeps only its SHA-256 hex, and GET /v1/account/usage?group=end_user sums your calls by it.
        schema:
          type: string
          minLength: 1
          maxLength: 256
      - name: X-End-User-Cap-Cents
        in: header
        required: false
        description: The most the end user named in X-End-User-Id may spend this UTC month, in cents. A call past it is refused with 402 and details.reason end_user_cap. Send it on each call; SpecStream stores no policy.
        schema:
          type: integer
          minimum: 0
          maximum: 100000000
      tags:
      - Extract
components:
  schemas:
    ExtractHtml:
      additionalProperties: false
      description: A page already held by the caller, sent as its HTML. Nothing is fetched.
      properties:
        html:
          maxLength: 8388608
          minLength: 1
          title: Html
          type: string
        url:
          anyOf:
          - maxLength: 2048
            type: string
          - type: 'null'
          default: null
          title: Url
      required:
      - html
      title: ExtractHtml
      type: object
    ExtractPage:
      additionalProperties: false
      properties:
        request_id:
          title: Request Id
          type: string
        results:
          items:
            $ref: '#/components/schemas/ExtractedPage'
          title: Results
          type: array
        took_ms:
          title: Took Ms
          type: integer
        price_usd:
          title: Price Usd
          type: number
      required:
      - request_id
      - results
      - took_ms
      - price_usd
      title: ExtractPage
      type: object
    ExtractRequest:
      additionalProperties: false
      description: 'Pages to read, at most 20 in one call: URLs, read live, or from SpecStream''s own dated

        copy when a page is slow or refuses; HTML you already hold; or both. The same URL twice is

        read once.'
      properties:
        urls:
          items:
            type: string
          maxItems: 20
          title: Urls
          type: array
        pages:
          items:
            $ref: '#/components/schemas/ExtractHtml'
          maxItems: 20
          title: Pages
          type: array
        format:
          default: markdown
          enum:
          - markdown
          - text
          - html
          title: Format
          type: string
        include:
          items:
            enum:
            - html
            - links
            - response
            - full_text
            type: string
          title: Include
          type: array
        query:
          anyOf:
          - maxLength: 2000
            type: string
          - type: 'null'
          default: null
          title: Query
        max_chars:
          anyOf:
          - maximum: 100000
            minimum: 100
            type: integer
          - type: 'null'
          default: null
          title: Max Chars
      title: ExtractRequest
      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
    ErrorEnvelope:
      additionalProperties: false
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      required:
      - error
      title: ErrorEnvelope
      type: object
    ExtractedPage:
      additionalProperties: false
      description: 'One page''s main text. Only a page with status "ok" is charged.

        "blocked": the site refused us or its robots.txt asks us not to read it.

        "not_found": the page answered 404 or 410. "empty": the page has no main text.

        "unsupported": not a web page, text or a document SpecStream reads (PDF, Word, Excel,

        EPUB, an image). "invalid_url": not a public http(s) URL.

        "failed": no answer in time, or another error.

        When the site answered an error status with its own page (a 404 page, a plain 403, a

        5xx), text holds what that page printed, status_code its status, and status stays

        "not_found", "blocked" or "failed": it is not charged. A bot check''s page is never text.'
      properties:
        url:
          anyOf:
          - type: string
          - type: 'null'
          title: Url
        status:
          enum:
          - ok
          - blocked
          - not_found
          - empty
          - unsupported
          - invalid_url
          - failed
          title: Status
          type: string
        reason:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Reason
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        text:
          title: Text
          type: string
        text_truncated:
          default: false
          title: Text Truncated
          type: boolean
        published:
          anyOf:
          - type: string
          - type: 'null'
          title: Published
        modified:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Modified
        read_from:
          anyOf:
          - enum:
            - live
            - site
            - archive
            - html
            type: string
          - type: 'null'
          default: null
          title: Read From
        captured_at:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Captured At
        read_from_url:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Read From Url
        emails:
          default: []
          items:
            $ref: '#/components/schemas/ExtractedEmail'
          title: Emails
          type: array
        html:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Html
        html_truncated:
          anyOf:
          - type: boolean
          - type: 'null'
          default: null
          title: Html Truncated
        full_text:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Full Text
        full_text_truncated:
          anyOf:
          - type: boolean
          - type: 'null'
          default: null
          title: Full Text Truncated
        links:
          anyOf:
          - items:
              $ref: '#/components/schemas/ExtractedLink'
            type: array
          - type: 'null'
          default: null
          title: Links
        status_code:
          anyOf:
          - type: integer
          - type: 'null'
          default: null
          title: Status Code
        final_url:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Final Url
      required:
      - url
      - status
      - title
      - text
      - published
      title: ExtractedPage
      type: object
    ExtractedEmail:
      additionalProperties: false
      properties:
        address:
          title: Address
          type: string
        found_in:
          enum:
          - text
          - link
          - attribute
          - script
          title: Found In
          type: string
      required:
      - address
      - found_in
      title: ExtractedEmail
      type: object
    ExtractedLink:
      additionalProperties: false
      properties:
        url:
          title: Url
          type: string
        text:
          title: Text
          type: string
      required:
      - url
      - text
      title: ExtractedLink
      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.