v1

latestOpenAPI 3.1.0MIT2026-08-0453113564.4 KB
X/Twitter Stocks

Trending stocks

Returns the stocks with the strongest X/Twitter discussion activity in the selected period, ranked by buzz_score.

Includes:

  • buzz_score: normalized 0-100 activity score used for ranking
  • trend: activity momentum over the current 3 UTC days vs previous 3 UTC days using mentions, likes and author breadth; not price movement or Grok rank movement. For from/to, anchors at to (or now when to is today)
  • sentiment_score, bullish_pct, bearish_pct: directional sentiment signals
  • mentions, unique_tweets, total_upvotes: volume and engagement signals
  • trend_history: independent UTC-day buzz scores, oldest to newest; minimum 7 values; the live final value describes today so far and can differ from the selected-period buzz_score; missing days are 0.0
get/x/stocks/v1/trending

Query parameters

fromstring date nullable

Start date in YYYY-MM-DD. Inclusive UTC date.

Start date in YYYY-MM-DD. Inclusive UTC date.

tostring date nullable

End date in YYYY-MM-DD. Inclusive UTC date. Omit to use the current UTC date.

End date in YYYY-MM-DD. Inclusive UTC date. Omit to use the current UTC date.

daysinteger

Deprecated v1 compatibility shorthand. Prefer from and to for reproducible UTC date windows.

Deprecated v1 compatibility shorthand. Prefer from and to for reproducible UTC date windows.

limitinteger

Maximum stocks to return

Example:20

Maximum stocks to return

offsetinteger

Number of items to skip for pagination

Number of items to skip for pagination

type'stock' | 'etf' | 'all' nullable

Filter by asset type. Omit or use 'all' for all assets.

Example:stock

Filter by asset type. Omit or use 'all' for all assets.

Response

Successful Response

tickerstring required

Stock ticker symbol

company_namestring nullable

Company name from ticker_reference

buzz_scorenumber nullable required

V5.5 buzz score from real tweet data. Components: mentions (20), sentiment (20), quality (10), author diversity (14, HHI-based when author_distribution is available, else scaled unique_authors), trend (-10 to +20). Asymptotic scaling caps at 100.

trend'rising' | 'falling' | 'stable' required

Activity momentum over the current 3 UTC days vs previous 3 UTC days, not price movement or Grok rank movement.

mentionsinteger required

Number of tweet mentions from x_mentions table

sentiment_scorenumber nullable

Average sentiment score from tweet analysis (-1 to +1)

bullish_pctinteger nullable

Percentage of bullish tweet mentions

bearish_pctinteger nullable

Percentage of bearish tweet mentions

total_upvotesinteger nullable

Total likes across all tweet mentions

unique_tweetsinteger nullable

Number of unique tweets mentioning this ticker (distinct tweet_id)

trend_historynumber[]

Daily buzz scores (oldest→newest). Length follows the resolved period, with a minimum of 7 values. For live windows, the final value is the current live buzz_score; closed historical windows end at to.

Example response

[
  {
    "ticker": "TSLA",
    "company_name": "Tesla, Inc.",
    "buzz_score": 72.5,
    "trend": "rising",
    "mentions": 156,
    "sentiment_score": 0.35,
    "bullish_pct": 45,
    "bearish_pct": 12,
    "total_upvotes": 2847,
    "unique_tweets": 42,
    "trend_history": [
      45.2,
      48.1,
      52.3,
      55,
      58.2,
      61.5,
      64.8
    ]
  }
]