SweetValueLab Sentiment API
The daily market sentiment gauge.
The daily market sentiment gauge.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sweetvaluelab-com:sweetvaluelab-com-sentiment-api"
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.
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: 3.2.0
info:
title: SweetValueLab Sentiment API
version: 2.0.0
summary: Equity research data computed from primary sources, readable with no key and no account; plus the authenticated endpoints an author's agent uses to write for the blog.
description: 'The same endpoints the site''s own data pages call from the browser, documented because they are public anyway, and the endpoints behind guest posts on the blog.
**Reading (`/v1/*`)**
- **No authentication and no registration.** No key to ask for, no quota to sign up for.
- **Read-only.** Every `/v1/*` endpoint is a GET over pre-computed data.
- **Nightly, not live.** Figures are refreshed by scheduled jobs (valuations and prices each night, the sector boards after them, the calendar daily, 13F weekly). This is not a quote feed, and no request of yours reaches a market-data vendor.
- **Point-in-time.** Anything sourced from a filing is stored against the filing''s own acceptance timestamp, never the time we read it.
- **Cached at the edge.** The bundles are held in Workers KV and served globally; a 200 is good for 5 minutes in a browser and an hour at the edge.
**From an AI assistant (MCP)**
- **The same data as a read-only MCP server** at `https://api.sweetvaluelab.com/mcp` (Streamable HTTP, no authentication): `search_stocks`, `get_stock_valuation`, `get_market_context`, `get_investor_holdings` and `get_13f_consensus`, each answering with a short summary and a link to the page. Add it to Claude, Cursor or any MCP client as a remote server.
**Writing for the blog (`/profile`, `/posts*`)**
- **Authenticated with a personal API token** (`Authorization: Bearer svl_…`), minted by a signed-in person at https://sweetvaluelab.com/account/tokens and handed to their agent. See the `personalToken` security scheme.
- **One Markdown document per post.** A post is sent as a single string, frontmatter included; `POST /posts?dryRun=1` runs every check without saving anything and answers with issues carrying line numbers.
- **Nothing written here is public.** A draft is visible only to its author; submitting hands it to an editor, and only an editor can publish. The full submission spec, written to be given to a model, is https://sweetvaluelab.com/write-for-us.md.
**One envelope for every response**, success or failure — see the `Envelope` schema. A 422 from the write endpoints carries the check''s findings in `error.details.issues` (see `PrecheckIssue`).
What it is not: this is a quantitative summary of public data, not advice. The gap between price and a model is reported as a premium or a discount to that model; the site publishes no calls, no grades of its own and no price objectives. Third-party figures (the sell-side''s published estimates and grade changes) are carried as quoted data, attributed as such. Posts are held to the same rule.
Sources: Financial Modeling Prep (prices, statements, estimates, dividends) and SEC EDGAR (13F, 13D/G, 8-K, Form 4). Please read the terms before redistributing.
Response bodies of the read endpoints are documented at the envelope level on purpose: `data` carries the same shapes the site''s own pages render, and those grow additively. Fetch one and look — a hand-maintained field list here would be wrong within a month.'
termsOfService: https://sweetvaluelab.com/terms
contact:
name: SweetValueLab
url: https://sweetvaluelab.com/about
servers:
- url: https://api.sweetvaluelab.com
description: Production. Fronted by a Cloudflare Worker that serves the bundles from KV.
tags:
- name: Sentiment
description: The daily market sentiment gauge.
paths:
/v1/market/sentiment:
get:
tags:
- Sentiment
operationId: getMarketSentiment
summary: 'Market sentiment gauge: the latest day and a year of history'
description: The newest daily score (0–100), its band and the seven factors with raw value, percentile of the factor's own last 504 trading days and availability (three faithful, three proxies on the public universe (the S&P 500 and Nasdaq-100 constituents), put/call absent), plus a year of daily scores. Refreshed nightly after the US close.
responses:
'200':
description: The gauge bundle.
headers:
Cache-Control:
description: public, max-age=300, s-maxage=3600 on a 200. Errors are no-store.
schema:
type: string
x-edge-cache:
description: HIT when the Cloudflare Worker served the bundle from Workers KV without reaching the origin; absent otherwise.
schema:
type: string
enum:
- HIT
- MISS
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
components:
schemas:
Envelope:
type: object
description: 'Every endpoint on every service returns this shape. `ok` says which half is filled: on success `data` holds the payload and `error` is null; on failure `data` is null and `error` says why.'
required:
- ok
- schema_version
- as_of
- code_version
- data
- error
properties:
ok:
type: boolean
schema_version:
type: string
description: Envelope contract version, currently "1". It changes only on a breaking change to this shape.
example: '1'
as_of:
type: string
format: date
description: The day the payload speaks for.
example: '2026-09-19'
code_version:
type: string
description: The build that produced the payload. With as_of it is what makes a figure reproducible.
data:
description: The payload, or null on failure.
type:
- object
- array
- 'null'
error:
oneOf:
- $ref: '#/components/schemas/ErrorDetail'
- type: 'null'
ErrorDetail:
type: object
required:
- code
- message
properties:
code:
type: string
description: Stable machine-readable code, e.g. not_found, bad_request.
example: not_found
message:
type: string
details:
type: object
additionalProperties: true
securitySchemes:
personalToken:
type: http
scheme: bearer
bearerFormat: svl_…
description: 'A personal API token, minted once by a signed-in person at https://sweetvaluelab.com/account/tokens and shown only then. Sent as `Authorization: Bearer svl_…`, never in a URL. It does not expire on its own and stops working the moment it is revoked. The byline of everything written with it is the account that minted it; no request can name another author. The read endpoints under `/v1/` take no credential.'
externalDocs:
description: How every number on the site is computed
url: https://sweetvaluelab.com/blog/how-we-value-a-stock