SweetValueLab Stocks API
The covered universe of large US companies.
The covered universe of large US companies.
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-stocks-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 Stocks 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: Stocks
description: The covered universe of large US companies.
paths:
/v1/stocks:
get:
tags:
- Stocks
operationId: listStocks
summary: Every covered company with its latest price and model value
description: 'The 100-company universe behind /stocks, one row each: price, the reference model value, the gap between them stated as a premium or a discount, and the sector. Rebuilt nightly. Paged: see `limit`, `offset`, `sort` and `fields`; the response carries `page: { limit, offset, total, next }`.'
responses:
'200':
description: One row per covered company.
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'
parameters:
- name: limit
in: query
required: false
schema:
type: string
default: '100'
description: Rows per page, 1–500, or `all` for the whole list.
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
description: Rows to skip. A response's `page.next` is the next page's offset; null on the last page.
- name: sort
in: query
required: false
schema:
type: string
description: A field to sort by, `-` first for descending, a dot for one nested level. Nulls sort last.
- name: fields
in: query
required: false
schema:
type: string
description: Comma-separated fields to keep on each row, a dot for one nested level.
- name: sector
in: query
required: false
schema:
type: string
description: Only the stocks of this sector.
- name: industry
in: query
required: false
schema:
type: string
description: Only the stocks of this industry.
/v1/stocks/{slug}:
get:
tags:
- Stocks
operationId: getStock
summary: One company's whole bundle
description: 'Everything the seven pages under /stocks/ render, in one response: the reference valuation (twelve deterministic models with their assumptions and WACC), eight years of income statement, balance sheet and cash flow, dividends, consensus estimates and the sell-side''s own published figures and grade changes (quoted as third-party data), SEC Form 4 insider transactions, 13D/13G filers, the tracked 13F holders, and decoded 8-K events for the past year.'
parameters:
- name: slug
in: path
required: true
description: 'Lowercase ticker. Class shares use a dash: brk-b.'
schema:
type: string
example: aapl
responses:
'200':
description: The company's 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'
'404':
description: No such slug. The covered universe is fixed and published in the index endpoint of the same family, so this means the slug is not one of ours — not that the entity does not exist.
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