MarketIntell System API

Health, costs, and service info

GitHub OpenAPI

Operations 6

GET / Landing page #
GET /api/info Service info (JSON) #
GET /health Liveness probe #
GET /ready Readiness probe #
GET /v1/doctor Diagnostics #
GET /v1/costs LLM cost statistics #

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/marketintell-ai:marketintell-ai-system-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

marketintell-ai-system-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MarketIntell System API
  version: 0.1.0
  description: 'AI-powered market intelligence with tier-aware Mastra agents and a deterministic analytical pipeline across crypto, US equities, and India stocks. REST, MCP, OpenAI-compatible, async workflow, and batch transports share one evidence/provenance/recovery contract.


    **Rate limits (per minute / per day):**

    - Free: 60 / 25

    - Builder: 120 / 50,000

    - Pro: 300 / 2,000

    - Enterprise: 1,000 / unlimited


    MCP has a separate per-key bucket (default 30/min, env `MCP_RATE_LIMIT_MAX`). 429 responses include `Retry-After` and machine-readable recovery fields.


    **Self-registration (agents):** `POST /v1/auth/challenge` returns a SHA-256 proof-of-work challenge; submit the solved nonce to `POST /v1/auth/signup`. Follow `/.well-known/oauth-protected-resource` to the authorization-server `agent_auth` block, or read `/auth.md`.'
  contact:
    name: MarketIntell
    email: support@marketintell.ai
    url: https://marketintell.ai/contact
  license:
    name: Proprietary
    url: https://marketintell.ai/terms
  termsOfService: https://marketintell.ai/terms
  x-api-lifecycle:
    stability: stable
    versioning: Major versions are encoded in the URL path (currently /v1). Additive fields do not change the major version.
    deprecation_notice_days: 90
    deprecation_header: Deprecation (RFC 9745)
    sunset_header: Sunset (RFC 8594)
    migration_link_relation: successor-version
servers:
- url: https://api.marketintell.ai
  description: Production
- url: http://localhost:3848
  description: Local development
security:
- BearerAuth: []
- ApiKeyHeader: []
tags:
- name: System
  description: Health, costs, and service info
paths:
  /:
    get:
      operationId: getRoot
      summary: Landing page
      tags:
      - System
      security: []
      description: Marketing landing page. Returns HTML, not JSON. Use `GET /api/info` for the JSON service map and `GET /v1/doctor` for diagnostics.
      responses:
        '200':
          description: HTML landing page (not JSON)
          content:
            text/html:
              schema:
                type: string
                description: Rendered marketing HTML
  /api/info:
    get:
      operationId: getApiInfo
      summary: Service info (JSON)
      tags:
      - System
      security: []
      description: 'Service info: name, semantic version, status, uptime, and a top-level endpoint map. No auth required. Cheap probe for service-discovery clients.'
      responses:
        '200':
          description: Service name, version, status, and endpoint map
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  version:
                    type: string
                  status:
                    type: string
                  uptime_seconds:
                    type: number
                  endpoints:
                    type: object
  /health:
    get:
      operationId: getHealth
      summary: Liveness probe
      tags:
      - System
      security: []
      description: 'Returns `{ status: ''ok'' }` only. Lightweight, no DB hit — safe for high-frequency load-balancer probes. For richer detail use `/health/full` (admin-only) or `/v1/doctor` (public, optional auth).'
      responses:
        '200':
          description: 'Always { status: ''ok'' }'
          content:
            application/json:
              schema:
                type: object
                required:
                - status
                properties:
                  status:
                    type: string
                    enum:
                    - ok
  /ready:
    get:
      operationId: getReady
      summary: Readiness probe
      tags:
      - System
      security: []
      description: Runs `SELECT 1` on the Prisma-owned connection pool (the pool serving ~all traffic). Returns 200 when the DB is reachable, 503 otherwise. ALB target-group health checks use this endpoint; container liveness probes keep using static `/health`.
      responses:
        '200':
          description: DB reachable
          content:
            application/json:
              schema:
                type: object
                required:
                - status
                properties:
                  status:
                    type: string
                    enum:
                    - ready
                  latency_ms:
                    type: number
                    description: DB round-trip in ms
        '503':
          description: DB unavailable
          content:
            application/json:
              schema:
                type: object
                required:
                - status
                properties:
                  status:
                    type: string
                    enum:
                    - not_ready
                  error:
                    type: string
  /v1/doctor:
    get:
      operationId: getDoctor
      summary: Diagnostics
      tags:
      - System
      security: []
      description: Public diagnostics — basic shape always; `version`, `uptime_seconds`, and provider health only when called with an admin-scoped API key. If a valid key is supplied, also returns key_info (tier, scopes, daily quota state).
      responses:
        '200':
          description: Diagnostic snapshot
          content:
            application/json:
              schema:
                type: object
                required:
                - api
                - timestamp
                properties:
                  api:
                    type: string
                    enum:
                    - ok
                  timestamp:
                    type: string
                    format: date-time
                  version:
                    type: string
                    description: Semantic version (admin scope only)
                  uptime_seconds:
                    type: number
                    description: Process uptime in seconds (admin scope only)
                  db:
                    type: object
                    description: Database health (admin scope only)
                    properties:
                      status:
                        type: string
                      latency_ms:
                        type: number
                  providers:
                    type: object
                    description: Per-provider circuit-breaker state (admin scope only)
                    additionalProperties: true
                  key_info:
                    type: object
                    description: Present when caller supplied a valid X-API-Key
                    properties:
                      tier:
                        type: string
                        enum:
                        - free
                        - builder
                        - pro
                        - enterprise
                      scopes:
                        type: array
                        items:
                          type: string
                      daily_remaining:
                        type: integer
                      daily_limit:
                        type: integer
  /v1/costs:
    get:
      operationId: getCosts
      summary: LLM cost statistics
      tags:
      - System
      description: Get token usage and estimated cost statistics for LLM calls.
      responses:
        '200':
          description: Cost breakdown by model, endpoint, and time period
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                properties:
                  success:
                    type: boolean
                  window:
                    type: string
                    description: Reporting window (e.g. '24h', '7d', '30d')
                  total_usd:
                    type: number
                  by_model:
                    type: array
                    items:
                      type: object
                      properties:
                        model:
                          type: string
                        requests:
                          type: integer
                        input_tokens:
                          type: integer
                        output_tokens:
                          type: integer
                        usd:
                          type: number
                  by_endpoint:
                    type: array
                    items:
                      type: object
                      properties:
                        endpoint:
                          type: string
                        requests:
                          type: integer
                        usd:
                          type: number
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key