How do I get Reddit sentiment for a stock in Python?

Install the Adanos Python SDK with pip install adanos and call client.reddit.stock("TSLA"). It returns a buzz score, a sentiment score from -1 to +1, bullish and bearish shares and daily rows for the last 7 UTC days. The do-it-yourself route is PRAW plus VADER. It only works if you already hold Reddit API credentials. TechRepublic reports that Reddit stopped taking new access requests on October 31, 2026.

9 min read

The short answer

  • Fastest: pip install adanos, then client.reddit.stock("TSLA")
  • You already have a Reddit app: PRAW plus VADER, with a patch for finance words
  • You have no Reddit credentials: new public Data API requests closed on October 31, 2026, per TechRepublic, so use an API
  • You want no code at all: the free Reddit Top 100 page
Requests per SDK call
1
Free tier
250 requests/month
New Reddit API requests
Closed Oct 31, 2026
VADER on "to the moon"
0.000

All code on this page ran on November 29, 2026. Output is shown with its UTC time. Get a free key at registration to run the SDK examples yourself.

Which route should you take?

Take the SDK if you want a scored number today. Take PRAW and VADER only if you already have a registered Reddit app and want to own every step yourself.

Two Python routes to Reddit stock sentiment compared
RouteWhat you needWhat you getWhere it breaks
Adanos SDKA free key, Python 3.10+Buzz, sentiment, bullish and bearish shares, daily history across WallStreetBets and 60+ subreddits250 requests/month on Free. Free and Hobby are non-commercial
PRAW + VADERExisting Reddit app credentialsRaw posts that you match and score yourselfNew API access closed. VADER misreads slang. Public Data API access ends in March 2027, as TechRepublic and PPC Land report

Both routes end in a number. They differ in who matches tickers, who scores the text and who keeps the pipeline running.

How do you get Reddit sentiment with the Adanos SDK?

Install the package, set your key and call client.reddit.stock with a ticker. The current release on PyPI is 2.8.1 from November 16, 2026. It needs Python 3.10 or newer.

Terminal
pip install adanos
export ADANOS_API_KEY=your_key
Code
import os

from adanos import AdanosClient
from adanos._generated.models import ErrorResponse

client = AdanosClient(api_key=os.environ["ADANOS_API_KEY"])
tsla = client.reddit.stock("TSLA")  # last 7 UTC days by default

if isinstance(tsla, ErrorResponse):  # 401 bad key, 429 limit reached
    raise SystemExit(f"Adanos API error: {tsla.detail}")

print(tsla.ticker, tsla.company_name)
print("buzz", tsla.buzz_score, "| sentiment", tsla.sentiment_score,
      "| bullish", tsla.bullish_pct, "% | bearish", tsla.bearish_pct, "%")
print("mentions", tsla.mentions, "| trend", tsla.trend)
for day in tsla.daily_trend[:3]:  # newest UTC day first
    print(day.date, day.mentions, day.sentiment_score)

We ran it on November 29, 2026 at 06:33 UTC:

Output
TSLA Tesla Inc
buzz 78.12 | sentiment -0.02 | bullish 23 % | bearish 27 %
mentions 928 | trend falling
2026-11-29 18 0.039
2026-11-28 88 -0.039
2026-11-27 191 -0.032

buzz_score measures attention on Reddit from 0 to 100. sentiment_score runs from -1 (bearish) to +1 (bullish). Over these 7 days Tesla drew 928 mentions with 23% bullish and 27% bearish. That is a lot of talk and a mood close to neutral. trend compares the last 3 days with the 3 days before.

Without dates the stock endpoint covers the last 7 UTC days, today included. Today's row is partial. At 06:33 UTC it held 18 mentions against 88 for all of November 28. For a fixed window, pass from_ and to as YYYY-MM-DD dates. The Free plan reaches 30 days back.

Each call is one request. The Free plan has 250 a month. The same client covers X with client.x.stock and news with client.news.stock. A second source is one more line.

What happens when the key is wrong or the quota runs out?

The SDK does not raise on documented API errors. It returns an error model in place of the data, so check the type before you read fields.

For a wrong key (401) and a hit rate limit (429) the stock call returns ErrorResponse. The class is in adanos._generated.models, because the package top level does not export it. That is why the script above runs isinstance(tsla, ErrorResponse) before it prints. With a made-up key the same script printed this and exited with status 1:

Output
Adanos API error: Invalid API key.

Other statuses come back as other models from the same module. A 403 (a window longer than your plan allows) returns HistoricalLimitError. A 404 (a ticker the API does not support) returns UnsupportedAssetError. A 422 returns HTTPValidationError or InvalidPeriodError. Undocumented statuses raise UnexpectedStatus. A supported ticker that nobody mentioned returns 200 with found set to false.

If you skip the type check, a 401 shows up later as an AttributeError on buzz_score. That hides the real cause.

Can you still get Reddit API access for PRAW?

Not as a new developer. Reddit stopped accepting new requests for public Data API access on October 31, 2026, as reported by TechRepublic and PPC Land. The reported schedule:

  • October 31, 2026: Reddit no longer accepts new requests for public API access.
  • November 13, 2026: Reddit stops serving RSS feeds.
  • January 12, 2027: Reddit begins removing API access for apps and users that have not registered.
  • March 2027: remaining public Data API access ends. Reddit has not given a day.

Reddit posted the plan on r/redditdev and r/modnews. According to TechRepublic, it wants supported apps and bots to move to its Developer Platform. PPC Land notes that Reddit has not confirmed whether registered apps keep Data API access after March 2027. If you hold a working script app today, the code below runs. Plan for the day it stops.

How do you do it yourself with PRAW and VADER?

Search a subreddit for the ticker with PRAW, score each post with VADER and average the compound scores. For read-only access PRAW 8.0.3 needs a client ID, a client secret and a user agent.

Terminal
pip install praw vaderSentiment
Code
import os

import praw
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

reddit = praw.Reddit(
    client_id=os.environ["REDDIT_CLIENT_ID"],
    client_secret=os.environ["REDDIT_CLIENT_SECRET"],
    user_agent="script:tsla-sentiment:v0.1 (by u/your_username)",
)
analyzer = SentimentIntensityAnalyzer()

scores = []
for post in reddit.subreddit("wallstreetbets").search("TSLA", sort="new", time_filter="week", limit=50):
    text = f"{post.title} {post.selftext}"
    scores.append(analyzer.polarity_scores(text)["compound"])

if scores:
    print(f"{len(scores)} posts, mean compound {sum(scores) / len(scores):+.3f}")

We hold no Reddit app credentials for this test. With placeholder values the script reached Reddit's token endpoint and stopped with prawcore.exceptions.ResponseException: received 401 HTTP response. That is what invalid credentials return. With valid credentials it prints the post count and the mean compound score.

This version still has gaps. A search for "TSLA" misses posts that only say "Tesla" and catches unrelated hits. The plain mean weighs a one-word joke the same as a long analysis. VADER was not built for trading slang, as the next section shows.

Where does VADER misread finance slang?

VADER scores words from a general social media lexicon. "Puts", "calls", "moon", "bagholder", "tanking" and "bleeding" have no entry in it, so they count as nothing. We scored three posts in the style of r/wallstreetbets, then added finance words to the lexicon:

Code
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

posts = [
    "TSLA to the moon, loading calls",
    "Puts are printing, TSLA is tanking, love it",
    "Bagholder since 480, TSLA keeps bleeding",
]

analyzer = SentimentIntensityAnalyzer()
for text in posts:
    print(f"{analyzer.polarity_scores(text)['compound']:+.3f}  {text}")

# A finance patch: VADER's lexicon is a plain dict you can extend
analyzer.lexicon.update({"moon": 2.5, "calls": 1.0, "puts": -1.0,
                         "bagholder": -2.0, "bleeding": -2.0, "tanking": -2.5})
print("after the patch:")
for text in posts:
    print(f"{analyzer.polarity_scores(text)['compound']:+.3f}  {text}")

Output with vaderSentiment 3.3.2, November 29, 2026:

Output
+0.000  TSLA to the moon, loading calls
+0.637  Puts are printing, TSLA is tanking, love it
+0.000  Bagholder since 480, TSLA keeps bleeding
after the patch:
+0.670  TSLA to the moon, loading calls
-0.077  Puts are printing, TSLA is tanking, love it
-0.718  Bagholder since 480, TSLA keeps bleeding
  • "To the moon, loading calls" is bullish. Plain VADER returns 0.000, neutral, because it knows none of the words.
  • "Puts are printing, TSLA is tanking, love it" is bearish on Tesla. Plain VADER returns +0.637 because "love" is the only word it knows.
  • "Bagholder since 480" describes a loss. Plain VADER returns 0.000.

The patch fixes the first and third posts. The second only moves to -0.077, just past the -0.05 cutoff that VADER's README sets for negative. "Love it" still pulls it up. The poster is happy because the stock fell. Word scores cannot tell which side of the trade the writer is on.

A finance-tuned model closes part of that gap. Adanos scores Reddit and X with an ensemble of a Twitter-RoBERTa model and VADER, weighted 60/40, with a finance lexicon. Mentions also pass an AI context check before they count. If you stay with VADER, label 100 real posts from your subreddit by hand and measure its hit rate before you trust the average.

Where Adanos fits and where it does not

We build Adanos, one of the two routes on this page. These are its strengths and limits.

Strengths

  • One call returns buzz, sentiment and daily history per ticker
  • A finance lexicon and an AI context check on every mention
  • Reddit, X, news and Polymarket through the same Python client
  • A free tier without a credit card

Limits

  • Free and Hobby are non-commercial. A commercial product needs Professional at $299 a month
  • No streaming. The Reddit collector runs hourly
  • You cannot swap in your own model. Raw mention text needs the Professional plan
  • No StockTwits, Discord or Telegram data
  • The SDK returns error models instead of raising, so every call needs a type check
  • If you already have a Reddit app and want a rough mood for one subreddit, PRAW plus a patched VADER costs nothing and you do not need us

FAQ

Can I still get Reddit API credentials for PRAW in 2026?

Not as a new developer. Reddit stopped accepting new requests for public Data API access on October 31, 2026, as reported by TechRepublic and PPC Land. Reddit starts removing access for unregistered apps on January 12, 2027. Remaining public Data API access ends in March 2027. According to PPC Land, Reddit has not confirmed that registered apps keep Data API access after March 2027.

Is VADER accurate for stock sentiment on Reddit?

Not out of the box. In our test VADER scored "TSLA to the moon, loading calls" as 0.000 and "Puts are printing, TSLA is tanking, love it" as +0.637. Its lexicon has no entry for puts, calls, moon or bagholder. Adding finance words helps. It still cannot tell whether a happy poster is bullish or bearish on the stock.

How many requests does client.reddit.stock use?

One. Every API call counts as one request. The Free plan includes 250 requests a month at up to 100 a minute with 30 days of history. Hobby costs $29 a month for 250,000 requests and 90 days of history. Both plans are for non-commercial use.

Why does the Adanos SDK return ErrorResponse instead of raising?

The SDK returns documented API errors as typed models from its generated OpenAPI client. A wrong key (401) or a hit rate limit (429) returns ErrorResponse with a detail message. Import it from adanos._generated.models and check isinstance before you read fields. Undocumented statuses raise UnexpectedStatus.

Can I get sentiment for a single subreddit?

Yes, through the REST API. GET /reddit/stocks/v1/trending/subreddits/tickers returns one row per UTC day, subreddit and ticker with mentions, sentiment_score, bullish_pct and bearish_pct. Filter with the subreddits parameter, up to 25 at a time. The Python SDK 2.8.1 does not wrap this endpoint yet, so call it with requests.

Sources

We checked each vendor's pages in November 2026. Vendors change plans, so check the current terms before you commit. All code and API output on this page are from November 29, 2026.

  1. TechRepublic, Reddit is killing RSS and public API access: what changes and when (October 2, 2026)
  2. PPC Land, Reddit to halt public Data API access in March 2027 as 14,000 apps register (October 4, 2026)
  3. Reddit, r/redditdev: moving Data API apps to the Developer Platform
  4. Reddit, r/modnews: continuing our infrastructure updates
  5. PRAW 8.0.3 documentation, quick start and read-only credentials
  6. vaderSentiment on GitHub, lexicon and compound score thresholds
  7. adanos on PyPI, version 2.8.1 and Python requirement
  8. Adanos Python SDK README, methods and error behavior
  9. Adanos API reference

Keep reading

  • How do I add social media sentiment to my trading bot?Use sentiment as a filter, not a trigger. A tested Python script builds daily Reddit and X features for three tickers, with look-ahead rules and a request budget.Read the older article
  • Adanos vs StockTwits: which fits your use case?StockTwits is a trader network with its own sentiment tags and an Enterprise-only API. Adanos is a self-serve sentiment API over Reddit, X, news and Polymarket.Read the newer article
  • Build a WallStreetBets Sentiment Dashboard in 50 Lines of PythonSkip the Reddit scraping and the DIY NLP. Build a live WSB sentiment dashboard with Streamlit and one API call in about 50 lines of Python.Read the article