---
title: "Market Sentiment"
method: GET
path: "/x/stocks/v1/market-sentiment"
tags: ["X/Twitter Stocks"]
---

# Market Sentiment

`GET /x/stocks/v1/market-sentiment`

Returns the service-level X/Twitter market sentiment snapshot across all tracked stocks when you want a single X-wide market state instead of per-ticker rankings.
It includes service-wide buzz, sentiment split, activity trend, breadth metrics and the top drivers by current `buzz_score`.

`buzz_score` here means relative X/Twitter market heat, not pure bullishness.
It measures how hot overall X stock discussion is versus X's own trailing 90-day baseline:
- around `50` = normal X market activity
- higher = more active than usual
- lower = quieter than usual

`trend` is 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).

Use `sentiment_score`, `bullish_pct` and `bearish_pct` for direction.

## Query parameters

- `from` string, date, nullable — Start date in YYYY-MM-DD. Inclusive UTC date.
- `to` string, date, nullable — End date in YYYY-MM-DD. Inclusive UTC date. Omit to use the current UTC date.
- `days` integer — Deprecated v1 compatibility shorthand. Prefer `from` and `to` for reproducible UTC date windows.

## Response `200`

Successful Response

- XMarketSentimentResponse — Service-level X/Twitter market sentiment across all tracked stocks.
  - `buzz_score` number, nullable, required — Service-wide X/Twitter heat score relative to the service's trailing 90-day baseline. Around 50 = normal activity, higher values = hotter-than-usual X activity.
  - `trend` 'rising' | 'falling' | 'stable', nullable — 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).
  - `mentions` integer, required — Tweet mentions across the selected period
  - `unique_tweets` integer, required — Exact distinct tweet count across the selected UTC period
  - `unique_authors` integer, required — Exact distinct author breadth across the selected UTC period
  - `total_upvotes` integer, required — Total likes across the selected period
  - `active_tickers` integer, required — Number of tickers with X activity in the selected period
  - `sentiment_score` number, nullable — Service-wide average tweet sentiment score
  - `positive_count` integer, required — Deprecated. Prefer bullish_pct with mentions for public analysis; retained for v1 compatibility.
  - `negative_count` integer, required — Deprecated. Prefer bearish_pct with mentions for public analysis; retained for v1 compatibility.
  - `neutral_count` integer, required — Deprecated. Prefer bullish_pct, bearish_pct and mentions for public analysis; retained for v1 compatibility.
  - `bullish_pct` integer, required — Bullish tweet percentage
  - `bearish_pct` integer, required — Bearish tweet percentage
  - `trend_history` number[] — Daily service-wide buzz scores (oldest→newest) using the same relative baseline calibration. Length = max(requested_days, 7) for successful requests; windows before platform availability return HTTP 422.
  - `drivers` XMarketSentimentDriver[] — Top assets by current buzz_score driving the service-level reading
    - `ticker` string, required — Stock ticker symbol
    - `mentions` integer, required — Tweet mentions in the selected period
    - `buzz_score` number, nullable, required — Asset buzz score in the selected period
    - `sentiment_score` number, nullable — Average tweet sentiment score for this asset

## Other responses

- `401` — Authentication failed
- `403` — Historical data limit exceeded
- `422` — Invalid period or query parameters
- `429` — Rate limit exceeded
- `503` — Database temporarily unavailable
- `504` — Analytics request deadline exceeded

---

[API](https://skmtc.net/adanos/apis/adanos-market-sentiment-api.md) · [All operations](https://skmtc.net/adanos/apis/adanos-market-sentiment-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/adanos/adanos-market-sentiment-api/revisions/351caf64ba81/schema)
