Skip to main content
Every tool is a POST to /v1/tools/{name} at https://api.stockcontext.com, with a JSON body and your key in the X-API-Key header. There are no GET product endpoints and no query-string parameters — inputs go in the JSON body.
This generated reference is schema-aware. Schema 2 is the default when schema is omitted. Use { "schema": 1 } only for the frozen legacy wire.
Create keys on the dashboard keys page (https://stockcontext.com/dashboard/keys). See Authentication.

Endpoints

HTTP tool surface: 10 data tools + stock_flag, a feedback endpoint. stock_universe and stock_technicals are schema-2 only; the frozen schema-1 tools are unchanged. Each endpoint has a generated reference page with its full request schema and a response example.

Parameter values

  • stock_financials.statementfinancials (default; all three statements), income, balance, or cash_flow.
  • stock_financials.period_kindannual (default) or quarter.
  • stock_financials.vintagelatest_restated only. Historical variants are not documented for new integrations because schema 2 does not advertise or serve them.
  • detail (financials, overview) — concise (default) or full. full adds sources and hashes to each cell.
  • stock_prices.view — schema 2 defaults to snapshot; history and corporate_actions are depth views. technicals returns a 200 recovery redirect to stock_technicals.
  • stock_prices.range1M, 3M, 6M, 1Y (default), 5Y, or max.
  • stock_technicals.indicators — optional SMA/EMA/RSI/MACD/Bollinger/ATR history columns; range applies only when indicators are requested.
  • stock_reference.catalogrefusal_tokens, refusal_reasons, operating_rules, concepts, units, shapes, fields, capabilities, coverage, filing_forms, 8k_items, or form4_codes.
  • stock_flag — feedback endpoint only. It records a bounded report and returns { "data": { "received": true, "flag_id": "..." }, "meta": { "schema_version": "2" } } on success.

Response shape

A successful data tool returns a subject (the resolved entity and security), a data block, and a meta block:
Individual values inside data are typed cells: exact compact cells like { "v": "112010000000", "d": "≈$112B" }, decimal strings in aligned statement arrays, JSON numbers for ratios, or refusal objects.

Refusal envelope

Any value — a single field or a whole tool result — that cannot be proven returns the same flat envelope, never an empty 200 and never a guessed number:
Branch on unavailable. Look up any token or recovery.action in the refusal_tokens catalog. See Response model.

Authentication and limits

Send your key in X-API-Key. Requests without a valid key are rejected before any work is done. Plan limits: Authenticated tool responses include X-Credits-Remaining when Unkey reports remaining credits, and include X-RateLimit-Remaining / X-RateLimit-Reset when Unkey reports rate-limit state. See Plans and limits for the exact header behavior, including schema-2 304 responses.

Reference catalogs

The API describes itself. stock_reference serves deterministic catalogs so an agent can resolve tokens at runtime instead of hard-coding them:

Generated pages

The endpoint pages under this section are generated from the schema-aware structural OpenAPI document. It models request parameters, the schema selector, HTTP statuses, and envelope-level response shapes. Captured examples remain authoritative for full nested payload detail. The frozen legacy wire remains reachable as the Schema 1 appendix.