StockMarketScan Health API

Liveness and database probes. Public, no auth.

GitHub OpenAPI

Operations 2

GET /ping Liveness probe #
GET /health Health check #

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/stockmarketscan-com:stockmarketscan-com-health-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

stockmarketscan-com-health-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: StockMarketScan Health API
  description: 'Stock screener, options flow, chart pattern, market breadth, and trend

    data as JSON. Data only: nothing in this API is investment advice.


    ## Authentication


    **Direct API key.** Generate at Settings

    (Pro or Enterprise plan). Send it as `X-API-Key: sms_...` or as

    `Authorization: Bearer sms_...`. MCP connector tokens (`mct_...`) are

    accepted the same way and resolve to their owner''s plan.


    **RapidAPI.** Subscribe via the RapidAPI marketplace and send the standard

    `X-RapidAPI-Key` and `X-RapidAPI-Host` headers. RapidAPI subscribers get

    Pro-tier access.


    ## Responses


    Every successful JSON response is an envelope:

    `{ "data": , "meta": { ... } }`. `meta.generated_at` is

    the UTC time the response was produced, `meta.as_of` is the trading date

    of the underlying data (null when there is none), and `meta.parameters`

    shows the parameters that were applied after defaults. All fields are

    snake_case. Numbers are JSON numbers, trading dates are `YYYY-MM-DD`,

    timestamps are RFC 3339 UTC, and missing values are `null`, never `""`.


    ## Pagination


    List endpoints take `limit` and `cursor`. Follow

    `meta.pagination.next_cursor` (also sent as `Link: ; rel="next"`)

    until it is null. The first page pins the data snapshot, so a data

    refresh while you page does not mix snapshots. A malformed cursor, or one

    issued for other parameters, returns 400 `INVALID_CURSOR`.


    ## Errors


    Errors are RFC 9457 `application/problem+json` documents with the

    extension members `code` (stable, machine-readable) and `request_id`

    (also sent as `X-Request-Id`). Parameter errors list each offending

    parameter in `errors`. You may send your own `X-Request-Id` (up to 128

    characters of `A-Z a-z 0-9 . _ -`) to correlate logs.


    ## Rate limits


    | Plan | Per minute | Per day | Per month |

    |----------|-----------:|--------:|----------:|

    | Free | - | - | - |

    | Basic | - | - | - |

    | Pro | 30 | 2,000 | 50,000 |

    | Enterprise | 120 | 20,000 | 500,000 |

    | RapidAPI | RapidAPI plan | 10,000 safety cap | RapidAPI plan |


    Authenticated responses carry `RateLimit-Policy` and `RateLimit` (IETF

    format) plus the legacy `X-RateLimit-*` and `X-RateLimit-Monthly-*`

    headers. A 429 always carries `Retry-After` in seconds. The monthly quota

    is shared by the REST API and the MCP server and resets on the 1st of each

    month, UTC: every API request counts once, and composite MCP tools make

    several requests. Only requests that end in 2xx or 5xx count; 400, 401,

    403, 404 and 304 responses do not. Public endpoints allow 30 requests per

    minute per IP without a key.


    ## Caching


    Data responses carry `Cache-Control: private, max-age=60`, a weak `ETag`

    and `Vary: Authorization, X-API-Key`. Send the ETag back as

    `If-None-Match`: an unchanged resource returns 304 with no body and does

    not count against your quota.


    Breaking changes are announced at https://stockmarketscan.com/docs/changelog

    at least 14 days before they take effect.'
  version: 2.0.0
  contact:
    name: StockMarketScan Support
    email: contact@stockmarketscan.com
    url: https://stockmarketscan.com
  license:
    name: Proprietary
    url: https://stockmarketscan.com/terms
  x-rate-limits:
  - plan: Free
    perMinute: null
    perDay: null
    perMonth: null
    note: No API access
  - plan: Basic
    perMinute: null
    perDay: null
    perMonth: null
    note: No API access
  - plan: Pro
    perMinute: 30
    perDay: 2000
    perMonth: 50000
  - plan: Enterprise
    perMinute: 120
    perDay: 20000
    perMonth: 500000
  - plan: RapidAPI
    perMinute: null
    perDay: 10000
    perMonth: null
    note: Per RapidAPI plan plus a 10,000/day backend safety cap
servers:
- url: https://stockmarketscan.com/api/v1
  description: Production
security:
- ApiKeyAuth: []
- BearerAuth: []
- RapidApiKey: []
tags:
- name: Health
  description: Liveness and database probes. Public, no auth.
paths:
  /ping:
    get:
      operationId: ping
      tags:
      - Health
      summary: Liveness probe
      description: Returns immediately without touching the database. No authentication, never cached.
      security: []
      x-tier: public
      responses:
        '200':
          description: Service is up
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Cache-Control:
              $ref: '#/components/headers/Cache-Control'
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - meta
                additionalProperties: false
                properties:
                  data:
                    type: object
                    required:
                    - status
                    additionalProperties: false
                    properties:
                      status:
                        type: string
                        enum:
                        - ok
                  meta:
                    allOf:
                    - $ref: '#/components/schemas/Meta'
                    unevaluatedProperties: false
              example:
                data:
                  status: ok
                meta:
                  generated_at: '2026-09-28T10:00:00Z'
        '500':
          $ref: '#/components/responses/Error500'
  /health:
    get:
      operationId: getHealth
      tags:
      - Health
      summary: Health check
      description: Service status and database reachability. No authentication, never cached.
      security: []
      x-tier: public
      responses:
        '200':
          description: Service healthy
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Cache-Control:
              $ref: '#/components/headers/Cache-Control'
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - meta
                additionalProperties: false
                properties:
                  data:
                    $ref: '#/components/schemas/Health'
                  meta:
                    allOf:
                    - $ref: '#/components/schemas/Meta'
                    unevaluatedProperties: false
              example:
                data:
                  status: ok
                  version: v1
                  db:
                    reachable: true
                    latency_ms: 9
                meta:
                  generated_at: '2026-09-28T10:00:00Z'
        '500':
          $ref: '#/components/responses/Error500'
        '503':
          $ref: '#/components/responses/Error503'
components:
  headers:
    X-RateLimit-Reset:
      description: Legacy. Window reset as Unix seconds.
      schema:
        type: integer
    X-RateLimit-Limit:
      description: Legacy. Limit of the per-minute window (per-day for RapidAPI), or of the exceeded window on 429.
      schema:
        type: integer
    RateLimit-Policy:
      description: All windows of your plan, e.g. `"minute";q=30;w=60, "day";q=2000;w=86400, "month";q=50000;w=2592000`.
      schema:
        type: string
    X-RateLimit-Monthly-Reset:
      description: Legacy. Start of next month (UTC) as Unix seconds.
      schema:
        type: integer
    X-RateLimit-Monthly-Limit:
      description: Legacy. Monthly quota of a direct key.
      schema:
        type: integer
    X-RateLimit-Monthly-Remaining:
      description: Legacy. Requests left this month.
      schema:
        type: integer
    RateLimit:
      description: Most constrained window, IETF format, e.g. `"minute";r=27;t=41` (r = remaining, t = seconds until reset). Absent on unauthenticated probes.
      schema:
        type: string
    X-RateLimit-Remaining:
      description: Legacy. Requests left in that window.
      schema:
        type: integer
    Cache-Control:
      description: '`private, max-age=60` on 2xx data responses; `no-store` on errors, `/ping`, `/health` and `POST /patterns`.'
      schema:
        type: string
    Vary:
      description: Always `Authorization, X-API-Key`.
      schema:
        type: string
    X-Request-Id:
      description: Request id. Echoes a valid inbound `X-Request-Id`, otherwise a new UUID. Same value as `request_id` in errors.
      schema:
        type: string
  schemas:
    Problem:
      type: object
      description: RFC 9457 problem details. `code` and `request_id` are extension members.
      required:
      - type
      - title
      - status
      - detail
      - instance
      - code
      - request_id
      additionalProperties: false
      properties:
        type:
          type: string
          format: uri
          description: https://stockmarketscan.com/docs/errors#<code in lower case>
        title:
          type: string
          description: Short summary of the error class.
        status:
          type: integer
          description: HTTP status code.
        detail:
          type: string
          description: Explanation of this occurrence.
        instance:
          type: string
          description: Request path and query.
        code:
          $ref: '#/components/schemas/ErrorCode'
        request_id:
          type: string
          description: Same value as the X-Request-Id header.
        errors:
          type: array
          description: Present on parameter errors.
          items:
            $ref: '#/components/schemas/ParameterError'
    Health:
      type: object
      required:
      - status
      - version
      - db
      additionalProperties: false
      properties:
        status:
          type: string
          enum:
          - ok
        version:
          type: string
          example: v1
        db:
          type: object
          required:
          - reachable
          - latency_ms
          additionalProperties: false
          properties:
            reachable:
              type: boolean
            latency_ms:
              type: integer
              example: 9
    Meta:
      type: object
      description: Response metadata. Endpoint-specific keys are documented per operation.
      required:
      - generated_at
      properties:
        as_of:
          type:
          - string
          - 'null'
          format: date
          description: Trading date of the underlying data. Null when there is no data.
        generated_at:
          type: string
          format: date-time
          description: When this response was produced (RFC 3339 UTC).
        pagination:
          $ref: '#/components/schemas/Pagination'
        parameters:
          type: object
          description: Parameters applied after defaults.
    ErrorCode:
      type: string
      description: Stable machine-readable error code.
      enum:
      - MISSING_API_KEY
      - INVALID_API_KEY_FORMAT
      - INVALID_API_KEY
      - INVALID_RAPIDAPI_PROXY_SECRET
      - FREE_TIER_NOT_ALLOWED
      - TIER_UPGRADE_REQUIRED
      - SCREENER_NOT_ACCESSIBLE
      - RATE_LIMIT_MINUTE
      - RATE_LIMIT_DAY
      - RATE_LIMIT_MONTH
      - RATE_LIMIT_ANONYMOUS
      - INVALID_PARAMETER
      - INVALID_CURSOR
      - INVALID_SYMBOL
      - INVALID_DATE
      - INVALID_DATE_FROM
      - INVALID_DATE_TO
      - INVALID_DATE_RANGE
      - INVALID_SORT
      - INVALID_SIDE
      - INVALID_INTERVAL
      - INVALID_RANGE
      - INVALID_CATEGORY
      - INVALID_QUERY
      - INVALID_JSON
      - INVALID_BODY
      - MISSING_SCREENERS
      - TOO_MANY_SCREENERS
      - INVALID_LIMIT
      - SCREENER_NOT_FOUND
      - SNAPSHOT_NOT_FOUND
      - STOCK_NOT_FOUND
      - AUTH_UNAVAILABLE
      - RAPIDAPI_NOT_CONFIGURED
      - DB_UNHEALTHY
      - STOCK_LOOKUP_FAILED
      - INTERNAL_ERROR
      x-enumDescriptions:
        MISSING_API_KEY: '401. No `X-API-Key` or `Authorization: Bearer` header.'
        INVALID_API_KEY_FORMAT: 401. Key does not start with `sms_` or `mct_`, or is too short.
        INVALID_API_KEY: 401. Key or connector token not found.
        INVALID_RAPIDAPI_PROXY_SECRET: 401. Request did not come through the RapidAPI proxy.
        FREE_TIER_NOT_ALLOWED: 403. The account has no active plan.
        TIER_UPGRADE_REQUIRED: 403. The plan does not include API access (Basic), or the endpoint or screener needs a higher plan.
        SCREENER_NOT_ACCESSIBLE: 403. `POST /patterns` names a screener above your plan.
        RATE_LIMIT_MINUTE: 429. Per-minute limit reached (Pro 30, Enterprise 120). See `Retry-After`.
        RATE_LIMIT_DAY: 429. Per-day limit reached (Pro 2,000, Enterprise 20,000, RapidAPI 10,000). See `Retry-After`.
        RATE_LIMIT_MONTH: 429. Monthly quota reached (Pro 50,000, Enterprise 500,000; shared with MCP). See `Retry-After`.
        RATE_LIMIT_ANONYMOUS: 429. More than 30 requests per minute per IP without a credential on a public endpoint.
        INVALID_PARAMETER: 400. A query parameter or body field is malformed or out of range; `errors` names it.
        INVALID_CURSOR: 400. `cursor` is malformed or was issued for other parameters. Restart without it.
        INVALID_SYMBOL: 400. Symbol is not 1 to 20 characters of A-Z, 0-9, `.`, `^`, `=`, `-`.
        INVALID_DATE: 400. `date` is not a real calendar date in YYYY-MM-DD format.
        INVALID_DATE_FROM: 400. `date_from` is not a real calendar date in YYYY-MM-DD format.
        INVALID_DATE_TO: 400. `date_to` is not a real calendar date in YYYY-MM-DD format.
        INVALID_DATE_RANGE: 400. `date_from` is after `date_to`.
        INVALID_SORT: 400. `sort` is not one of streak, volume, callput, premium.
        INVALID_SIDE: 400. `side` is not one of call, put, both.
        INVALID_INTERVAL: 400. `interval` is not 1d or 1wk.
        INVALID_RANGE: 400. `range` is not an allowed value.
        INVALID_CATEGORY: 400. `category` is not techscience, patents, or fundingevents.
        INVALID_QUERY: 400. `q` is missing or longer than 60 characters.
        INVALID_JSON: 400. Request body is not valid JSON.
        INVALID_BODY: 400. Request body is not a JSON object.
        MISSING_SCREENERS: 400. `screeners` is missing or empty.
        TOO_MANY_SCREENERS: 400. More than 24 screeners requested.
        INVALID_LIMIT: 400. `limit` in the `POST /patterns` body is not an integer from 1 to 500.
        SCREENER_NOT_FOUND: 404 on `/screeners/{slug}`, 400 in the `POST /patterns` body. Unknown screener slug.
        SNAPSHOT_NOT_FOUND: 404. The screener has no snapshot for the requested date or cursor.
        STOCK_NOT_FOUND: 404. Symbol not found in any screener or candle data.
        AUTH_UNAVAILABLE: 503. The key store could not be reached.
        RAPIDAPI_NOT_CONFIGURED: 503. RapidAPI access is not configured on the server.
        DB_UNHEALTHY: 503. Health probe could not reach the database.
        STOCK_LOOKUP_FAILED: 503. Stock data sources could not be queried.
        INTERNAL_ERROR: 500. Unexpected error. Quote `request_id` when reporting it.
    Pagination:
      type: object
      description: Present on list endpoints. Follow `next_cursor` until it is null.
      required:
      - limit
      - next_cursor
      additionalProperties: false
      properties:
        limit:
          type: integer
          minimum: 1
          description: Page size that was applied.
        next_cursor:
          type:
          - string
          - 'null'
          description: Cursor for the next page; null on the last page.
        total:
          type: integer
          minimum: 0
          description: Rows across all pages. Only where it is cheap and exact.
    ParameterError:
      type: object
      required:
      - parameter
      - detail
      additionalProperties: false
      properties:
        parameter:
          type: string
          example: limit
        detail:
          type: string
          example: must be an integer between 1 and 500
  responses:
    Error503:
      description: A dependency (database or key store) is unavailable.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        Cache-Control:
          $ref: '#/components/headers/Cache-Control'
        Vary:
          $ref: '#/components/headers/Vary'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Monthly-Limit:
          $ref: '#/components/headers/X-RateLimit-Monthly-Limit'
        X-RateLimit-Monthly-Remaining:
          $ref: '#/components/headers/X-RateLimit-Monthly-Remaining'
        X-RateLimit-Monthly-Reset:
          $ref: '#/components/headers/X-RateLimit-Monthly-Reset'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          example:
            type: https://stockmarketscan.com/docs/errors#auth_unavailable
            title: Authentication unavailable
            status: 503
            detail: Authentication service unavailable. Please try again later.
            instance: /api/v1/trends
            code: AUTH_UNAVAILABLE
            request_id: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
    Error500:
      description: Unexpected server error. Quote `request_id` when reporting it.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        Cache-Control:
          $ref: '#/components/headers/Cache-Control'
        Vary:
          $ref: '#/components/headers/Vary'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Monthly-Limit:
          $ref: '#/components/headers/X-RateLimit-Monthly-Limit'
        X-RateLimit-Monthly-Remaining:
          $ref: '#/components/headers/X-RateLimit-Monthly-Remaining'
        X-RateLimit-Monthly-Reset:
          $ref: '#/components/headers/X-RateLimit-Monthly-Reset'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          example:
            type: https://stockmarketscan.com/docs/errors#internal_error
            title: Internal server error
            status: 500
            detail: Internal server error. Please try again later and quote request_id if it persists.
            instance: /api/v1/options-flow/signals
            code: INTERNAL_ERROR
            request_id: 3f2c9a1e-8b7d-4c61-9e0f-2a5b6c7d8e9f
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Generate at https://stockmarketscan.com/settings (Pro or Enterprise plan).

        Format `sms_...`. MCP connector tokens (`mct_...`) are accepted too.

        Accounts with no active plan are rejected with 403 FREE_TIER_NOT_ALLOWED,

        Basic accounts with 403 TIER_UPGRADE_REQUIRED.

        '
    BearerAuth:
      type: http
      scheme: bearer
      description: 'The same `sms_...` key or `mct_...` token as `Authorization: Bearer <key>`. `X-API-Key` wins if both are sent.'
    RapidApiKey:
      type: apiKey
      in: header
      name: X-RapidAPI-Key
      description: 'RapidAPI consumer key, issued by RapidAPI on subscription. Send

        together with `X-RapidAPI-Host: stockmarketscan.com`. Pro-tier access.

        '
x-success-headers:
  X-Request-Id:
    $ref: '#/components/headers/X-Request-Id'
  ETag:
    $ref: '#/components/headers/ETag'
  Cache-Control:
    $ref: '#/components/headers/Cache-Control'
  Vary:
    $ref: '#/components/headers/Vary'
  Link:
    $ref: '#/components/headers/Link'
  RateLimit:
    $ref: '#/components/headers/RateLimit'
  RateLimit-Policy:
    $ref: '#/components/headers/RateLimit-Policy'
  X-RateLimit-Limit:
    $ref: '#/components/headers/X-RateLimit-Limit'
  X-RateLimit-Remaining:
    $ref: '#/components/headers/X-RateLimit-Remaining'
  X-RateLimit-Reset:
    $ref: '#/components/headers/X-RateLimit-Reset'
  X-RateLimit-Monthly-Limit:
    $ref: '#/components/headers/X-RateLimit-Monthly-Limit'
  X-RateLimit-Monthly-Remaining:
    $ref: '#/components/headers/X-RateLimit-Monthly-Remaining'
  X-RateLimit-Monthly-Reset:
    $ref: '#/components/headers/X-RateLimit-Monthly-Reset'
x-error-headers:
  X-Request-Id:
    $ref: '#/components/headers/X-Request-Id'
  Cache-Control:
    $ref: '#/components/headers/Cache-Control'
  Vary:
    $ref: '#/components/headers/Vary'
  RateLimit:
    $ref: '#/components/headers/RateLimit'
  RateLimit-Policy:
    $ref: '#/components/headers/RateLimit-Policy'
  X-RateLimit-Limit:
    $ref: '#/components/headers/X-RateLimit-Limit'
  X-RateLimit-Remaining:
    $ref: '#/components/headers/X-RateLimit-Remaining'
  X-RateLimit-Reset:
    $ref: '#/components/headers/X-RateLimit-Reset'
  X-RateLimit-Monthly-Limit:
    $ref: '#/components/headers/X-RateLimit-Monthly-Limit'
  X-RateLimit-Monthly-Remaining:
    $ref: '#/components/headers/X-RateLimit-Monthly-Remaining'
  X-RateLimit-Monthly-Reset:
    $ref: '#/components/headers/X-RateLimit-Monthly-Reset'