Sentiment History & Trend

Whether the mood on a stock is improving or worsening over time — a sentiment trend line.

GET/api/history
SentimentIncluded in every plan · one key.

Overview

Sentiment over time for a ticker — the trend line plus an `improving` / `worsening` / `flat` read over the last N days. Points accumulate every time a fresh sentiment read happens for that ticker, so the more it's queried the richer its history. Returns the time-series `points` (date, score, label, mentions) and a `trend` summary. Its own product (Sentiment History), with its own key.

Use it toSee whether the mood on a stock is building or fading — momentum in the sentiment itself.

Coverage

Universe
Any US ticker you query
History
Accumulates from first lookup
Updates
Per sentiment read
Source
Derived from Stock Sentiment

Call it

Send your ra_live_… key in the x-api-key header. Pick your language:

curl "https://raspberrytrades.com/api/history?ticker=NVDA&window=7" \
  -H "x-api-key: ra_live_your_key_here"

Parameters

ParameterTypeDescription
tickerstringUS stock symbol, e.g. NVDA (required)
windownumberTrend window in days (default 7, max 365) (optional)
x-api-keyheaderYour API key — history scope (required)
Example response
200 OK · application/json
{
  "ticker": "NVDA",
  "windowDays": 7,
  "trend": { "direction": "improving", "change": 0.18, "from": 0.12, "to": 0.30, "points": 9 },
  "points": [
    { "at": "2026-06-28T14:00:00Z", "score": 0.12, "label": "bullish", "mentions": 22 },
    { "at": "2026-06-30T10:00:00Z", "score": 0.24, "label": "bullish", "mentions": 31 },
    { "at": "2026-07-01T12:00:00Z", "score": 0.30, "label": "bullish", "mentions": 28 }
  ]
}
Sentiment — related datasets
Get your API key

Create a free account, copy your ra_live_… key and make your first call to https://raspberrytrades.com/api/history.

Keep your key on your server — never ship it in front-end code.