Skip to main content
GET
/
v2
/
compare
curl
curl "https://api.stockcontext.com/v2/compare?symbols=NVDA,AMD,INTC" \
  -H "X-API-Key: $STOCKCONTEXT_API_KEY"
{
  "data": {
    "as_of": "2026-06-12T14:12:23Z",
    "cache_age_seconds": 0,
    "fields_omitted_by_symbol": {},
    "fields_requested": [
      "price",
      "pct_1y",
      "vs_spy_pct_1y",
      "pe_ttm",
      "rsi_14",
      "trending"
    ],
    "freshness": "intraday",
    "market_status": "open",
    "symbols": [
      {
        "pct_1y": 41.99,
        "pe_ttm": 31.49,
        "price": 205.62,
        "rsi_14": 45.09,
        "symbol": "NVDA",
        "trending": false,
        "vs_spy_pct_1y": 17.9
      },
      {
        "pct_1y": 333.63,
        "pe_ttm": 168.48,
        "price": 513.85,
        "rsi_14": 56.88,
        "symbol": "AMD",
        "trending": true,
        "vs_spy_pct_1y": 309.54
      },
      {
        "flags": [
          "pe_ttm_negative_not_meaningful"
        ],
        "pct_1y": 488.16,
        "pe_ttm": -197.03,
        "price": 122.16,
        "rsi_14": 57.79,
        "symbol": "INTC",
        "trending": true,
        "vs_spy_pct_1y": 464.07
      }
    ]
  },
  "schema_version": "2026-06-17.6"
}

Authorizations

X-API-Key
string
header
required

StockContext API key. Keys start with sctx_ and are sent on every REST request.

Query Parameters

symbols
string
required

Comma-separated list of 2-12 distinct ticker symbols. Each symbol is validated against the supported universe.

Example:

"AAPL,MSFT,NVDA"

fields
string | null

Comma-separated subset of compare fields. Allowed values: price, pct_1d, pct_1m, pct_ytd, pct_1y, vs_spy_pct_1y, range_52w_position_pct, drawdown_from_high_pct, market_cap_usd, pe_ttm, ps_ttm, pb, ev_ebitda_ttm, fcf_yield_pct, dividend_yield_pct, beta_5y_weekly, rsi_14, rsi_zone, trending, golden_cross_active, vs_sma_200_pct, distance_from_52w_high_pct. Defaults when omitted: price, pct_1y, vs_spy_pct_1y, pe_ttm, rsi_14, trending.

Example:

"pe_ttm,market_cap_usd,pct_1y"

Response

Success envelope: { "data": ... }.

data
CompareData · object
required

The endpoint payload. Present on every 2xx response; never null.

schema_version
string
required

StockContext response schema version for this 200 payload.