Shumi AI Streaming API

Live NDJSON streams.

GitHub OpenAPI

Operations 1

GET /api/cli/watch/{stream} Stream updates as NDJSON #

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/shumi-ai:shumi-ai-streaming-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

shumi-ai-streaming-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shumi Streaming API
  description: 'Market data, verdicts and plain-word answers for crypto and real-world assets. Data routes return a versioned envelope that holds either `data` or `error`.


    The `shumi` CLI and the `@shumi-ai/mcp` MCP server call the same routes.'
  version: 1.0.0
servers:
- url: https://api.shumi.ai
  description: Production
security:
- bearerAuth: []
tags:
- name: Streaming
  description: Live NDJSON streams.
paths:
  /api/cli/watch/{stream}:
    get:
      operationId: watch
      summary: Stream updates as NDJSON
      description: Newline-delimited JSON, one object per line, sent every `interval` seconds until the client disconnects. Opening a stream counts against your quota. Streams cannot be paid per call, so a spent quota answers 429.
      tags:
      - Streaming
      parameters:
      - name: stream
        in: path
        required: true
        schema:
          type: string
          enum:
          - funding
          - regime
          - sentiment
      - name: interval
        in: query
        schema:
          type: integer
          default: 30
          minimum: 10
          maximum: 300
        description: Seconds between emissions. Clamped.
      - name: max
        in: query
        schema:
          type: integer
        description: Stop after this many emissions. `0` streams indefinitely.
      - name: diff
        in: query
        schema:
          type: boolean
        description: Emit only when the payload changed.
      responses:
        '200':
          description: NDJSON stream.
          content:
            application/x-ndjson:
              schema:
                type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/AuthRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    RateLimited:
      description: 'Quota used up on a call that cannot be paid per call: a paid plan''s daily limit, a live stream, or a Free account when pay-per-call is unavailable.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            schemaVersion: 1
            error:
              code: RATE_LIMITED
              message: Quota exceeded (50/50 on access); resets at 00:00 UTC, or upgrade to Pro for unlimited
    BadRequest:
      description: A parameter is missing or invalid. The message names it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            schemaVersion: 1
            error:
              code: BAD_REQUEST
              message: action=movements requires ?contract=<token address>
    AuthRequired:
      description: No token was sent.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            schemaVersion: 1
            error:
              code: AUTH_REQUIRED
              message: 'Authentication required. Send an API key as "Authorization: Bearer shumi_sk_...", or run: shumi login'
  schemas:
    Error:
      type: object
      required:
      - schemaVersion
      - error
      properties:
        schemaVersion:
          type: integer
          example: 1
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - BAD_REQUEST
              - AUTH_REQUIRED
              - AUTH_INVALID
              - RATE_LIMITED
              - UPSTREAM_4XX
              - UPSTREAM_5XX
              - NETWORK
              - INTERNAL
            message:
              type: string
            details:
              description: Present when the route can say something more specific.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key (`shumi_sk_…`) or a session JWT. Create a key with `shumi login` and `shumi keys create`.