Sentiment API · X

X stock sentiment API.

SentiStream reads cashtag posts on X for the tickers that lead on the other sources. For every ticker you get a buzz score, a sentiment score, the bullish share and a trend as JSON.

Attention on X

Example data
↑ Buzz score
← bearishSentiment scorebullish →

Ranked by buzz score

    GET /v1/tickers/trending?platform=x See more: X top stocks

    The problem

    X is fast, and most of it is noise.

    A cashtag can fill with posts within minutes. Many of them repeat one another or promote something.

    Too many cashtags

    No one follows every cashtag. Each hour we take the 30 tickers that lead on Reddit, Bluesky and news and read their posts on X.

    One account, 40 posts on a ticker
    Counted: 3 mentions
    Example data

    Loud accounts

    One account that posts a ticker forty times is not forty opinions. An author counts for at most three mentions.

    TSLA84.9
    PLTR66.3
    Example data

    One scale for every ticker

    The buzz score runs from 0 to 100 for every ticker. That puts TSLA and PLTR on the same scale.

    How it works

    From one post to a buzz score.

    Every post takes the same five steps. All six sources end in the same fields.

    One post, step by stepExample data
    Collect
    Xpost

    $TSLA deliveries beat, margins next. Still long.

    Match
    TSLATesla, Inc.US88160R1014
    Score
    +0.38positive
    Aggregate
    84.9buzz score
    Serve
    GET /v1/tickers/TSLA?platform=x
    { "buzzScore": 84.9, "trend": "rising" }

    API

    X sentiment endpoints

    One base URL and one key in the X-API-Key header. Pick a route and change its parameters. The responses are example data in the format of the API.

      GET

      Docs, OpenAPI and MCP

      The API reference lists every route with its parameters. The MCP server gives an AI agent the same data as tools.

      Open the API reference
      • Base URLhttps://api.sentistream.dev/v1
      • Key headerX-API-Key: YOUR_KEY
      • OpenAPI spechttps://sentistream.dev/openapi.yaml
      • MCP serverhttps://mcp.sentistream.dev/mcp
      • First requestcurl "https://api.sentistream.dev/v1/tickers/TSLA?platform=x" -H "X-API-Key: $SENTISTREAM_API_KEY"

      Questions

      Frequently asked questions

      How the X numbers come about and what the plans allow. Open the API reference

      The basics

      What is the X stock sentiment API?

      It is a REST API that turns cashtag posts on X into numbers per ticker: a buzz score from 0 to 100, a sentiment score from −1 to +1, the bullish and bearish share and a trend.

      It is the same API that serves the other sources. You pick X with platform=x, or leave the parameter out and get all six sources combined.

      GET /v1/tickers/TSLA?platform=x
      Field Meaning
      buzzScore 0 to 100: how loud
      sentimentScore −1 to +1: which way
      bullishPct share of positive mentions
      trend rising, falling or stable
      Four fields of a ticker response.
      Which posts do you read?

      Posts that carry the cashtag of a candidate ticker. The candidates are the 30 tickers that led on Reddit, Bluesky and news in the last hour.

      A ticker that is quiet on all three may therefore be missing on X.

      GET /v1/tickers/trending?platform=x
      Step Each hour
      1 Take the 30 tickers that lead on Reddit, Bluesky and news
      2 Search X for their cashtags
      3 Read up to 15 posts per cashtag
      One run of the X collector.
      How often is the data updated?

      Every hour. The collector picks new candidates each hour and reads up to 15 posts per cashtag.

      X numbers are a sample. With fewer than 50 mentions in the period a response marks its data as thin in dataQuality.

      GET /v1/stats
      Collector run60 min
      now+180 min
      Runs within three hours.
      What does a response look like?

      JSON with camelCase field names and times in UTC. A ticker response starts with the company, its exchange and its ISIN, followed by the scores.

      Every response carries an ETag. Send it back as If-None-Match and an unchanged answer costs no transfer.

      GET /v1/tickers/TSLA?platform=x
      {
        "entity": {
          "ticker": "TSLA",
          "isin": "US88160R1014"
        },
        "buzzScore": 84.9,
        "signal": "bullish",
        "mentions": 189,
        "sentimentScore": 0.23,
        "trend": "rising"
      }
      Example data, shortened.

      The scores

      How is sentiment calculated?

      Per company, not per post. If a post is long one stock and short another, the two get opposite scores.

      A finance lexicon with trading slang and emoji scores the text. When a post names several companies, a language model scores each one. A score of +0.35 or more counts as positive, −0.35 or less as negative.

      GET /v1/tickers/TSLA?platform=x
      moon+2.5
      tendies+2.0
      calls+1.5
      puts−1.5
      bagholder−2.0
      rug−3.0
      Six entries of the finance lexicon with their weight, from −4 to +4.
      How is the buzz score calculated?

      From five parts: volume (35%), engagement (20%), sentiment strength (15%), breadth (15%) and momentum (15%). Each part is measured against the busiest tickers of the source, so a high score means loud for that source.

      One author counts for at most three mentions. If a single author holds more than 30% of the mentions of a ticker, the score drops.

      GET /v1/tickers/TSLA?platform=x
      • Volume35%
      • Engagement20%
      • Sentiment strength15%
      • Breadth15%
      • Momentum15%
      The weights of the buzz formula.
      How is the trend calculated?

      We compare the mentions of the last 72 hours with the 72 hours before. More than 15% growth is rising, more than 15% decline is falling, anything between is stable.

      The trend describes attention. It says nothing about the price.

      GET /v1/tickers/trending?platform=x&sort=trend
      72 h before+52% · risinglast 72 h
      Example data: mentions per day.
      How does the explanation work?

      /v1/tickers/{id}/explain returns one or two sentences on why a ticker is being discussed. They come from the top mentions and news titles of the last seven days and contain no advice.

      A ticker needs at least 50 X mentions in seven days. Below that the answer is insufficient_data. Texts are cached for an hour.

      GET /v1/tickers/TSLA/explain?platform=x
      {
        "explanation": "Tesla is in focus after its quarterly numbers. Most posts weigh strong demand against thinner margins.",
        "cached": true,
        "windowDays": 7
      }
      Example data, shortened.

      Plans and use

      What does the free plan include?

      250 requests a month, up to 100 a minute and 30 days of history. The free plan reads all six sources with one key and needs no credit card.

      Free, Hobby and Pro are for non-commercial use. Commercial use is part of the Pro Max plan. /v1/usage returns what you have used.

      GET /v1/usage
      Used this month37 / 250
      Example data: 37 of 250 requests used.
      Are there rate limits?

      Two limits apply: requests per minute and requests per month. The table shows both for each plan.

      Every response reports both in the X-RateLimit-* headers. Past a limit the API answers 429 with rate_limited or quota_exceeded.

      Response headers · X-RateLimit-*
      Plan A minute A month
      Free 100 250
      Hobby 1,000 250,000
      Pro 1,000 1,000,000
      Pro Max 2,000 3,000,000
      Requests by plan.
      Can I limit a request to official and open data?

      compliance=strict counts only data from official APIs, open protocols and public feeds.

      X data does not fall into these classes today, so a strict request returns no X numbers. /v1/sources lists every source with its class.

      GET /v1/tickers/TSLA?platform=x&compliance=strict
      Class Strict
      official counted
      open_protocol counted
      public_feed counted
      third_party left out
      The classes a mention can have.
      Can I use it for trading decisions?

      The data is information, not advice. Buzz and trend measure attention, and attention does not predict a price.

      If you build a product on the data, you need the Pro Max plan. It includes commercial use.

      Not financial advice
      buzzScorehow loudtrendattention, not price
      Sentiment readings do not predict prices.

      Pricing

      Start free. Pay when you need more.

      One key reads all six sources on every plan. The plans differ in volume, history and commercial use.

      Free

      $0

      For a first test of every source. No credit card.

      • 250 requests a month
      • 100 requests a minute
      • 30 days of history
      • All six sources
      • Non-commercial use
      Get started free

      Hobby

      $29 a month

      For personal projects. Adds logos, webhooks and the stream.

      • 250,000 requests a month
      • 1,000 requests a minute
      • 90 days of history
      • Company logos, 1 webhook, 1 stream connection
      • Non-commercial use
      See the Hobby plan

      Pro

      $69 a month

      Adds raw mentions, sentiment for your own text and news story clusters.

      • 1,000,000 requests a month
      • 1,000 requests a minute
      • 90 days of history
      • Company logos, 1 webhook, 2 stream connections
      • Non-commercial use
      See the Pro plan
      Commercial use

      Pro Max

      $299 a month

      For products and teams. Adds commercial use and higher limits to Pro.

      • 3,000,000 requests a month
      • 2,000 requests a minute
      • 90 days of history
      • Company logos, 25 webhooks, 10 stream connections
      • Commercial use
      See the Pro Max plan

      One key, every source

      Every plan, Free included, reads all six sources with the same key. Pick one with platform.

      Compare every feature