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.
openapi: 3.2.0
info:
title: StockMarketScan Trends 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:
# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/stockmarketscan-com/openapi/stockmarketscan-com-trends-api-openapi.yml