StockTwits API

StockTwits API is a free, developer-accessible interface to the social data generated by StockTwits, a platform founded in 2008 that now hosts over 10 million investors and traders.

Reviewed by 7wData

On this page

Publisher review

StockTwits API is a free, developer-accessible interface to the social data generated by StockTwits, a platform founded in 2008 that now hosts over 10 million investors and traders. The API is designed for developers, quantitative researchers, and fintech firms who want to incorporate retail investor sentiment, social feed content, and community-driven rankings into their own applications or trading algorithms. It serves as a direct pipeline into the conversations and sentiment signals of a large, active retail trading community, making it a distinct data source compared to traditional market data feeds. The API is particularly relevant for those building tools that aim to gauge market mood, detect trending stocks, or provide social context alongside price data.

The API provides endpoints for retrieving sentiment data, stock rankings, real-time and historical social feeds, news feeds, and RSS feeds. Sentiment data is derived from natural language processing (NLP) and predictive analysis applied to the millions of messages posted on the platform daily. Historical data allows backtesting of sentiment-based strategies, while real-time endpoints enable live trading signals. The API supports both XML and JSON formats, and access requires a free API key and the use of Basic Authentication for some endpoints. An SDK is also available to simplify integration. The data is structured to include message content, user information, symbols, and sentiment classifications (bullish, bearish, neutral).

In the financial data API landscape, StockTwits API occupies a niche focused on social sentiment rather than pure price or fundamental data. Its direct competitors include Polygon.io, Alpaca, IEX Cloud, and Alpha Vantage, each of which primarily offers market data (quotes, trades, fundamentals) rather than social signals. However, StockTwits has formed a strategic partnership with Alpaca, allowing Alpaca’s Broker API partners to integrate StockTwits’ social sentiment, news, and feeds into their platforms. This partnership, announced in March 2025, positions StockTwits as a complementary data layer that can be added to traditional brokerage and trading applications. The API is also used in academic research as a proxy for retail investor sentiment.

The primary trade-off is that StockTwits API is limited to a free tier, which may have rate limits and restricted access to full historical data or advanced features. Additionally, the platform has faced credibility concerns: in one documented incident, StockTwits displayed a fake earnings miss for multiple hours and then removed the incorrect earnings information entirely rather than correcting it. This raises questions about data accuracy and quality control. The API also requires Basic Authentication for some endpoints, adding a minor integration step. While the social sentiment data is unique, it is inherently noisy and may not always correlate with market movements, requiring careful filtering and validation by users.

Get the AI & data signal, daily.

48k+ subscribers read this every morning. One email, both newsletters. Unsubscribe anytime.

How it works

  1. Sentiment and rankings data

    Returns bullish/bearish/neutral sentiment scores and stock rankings derived from community messages using NLP and predictive analysis.

  2. Real-time and historical data

    Provides both live streaming social feeds and archived historical messages for backtesting sentiment-based trading strategies.

  3. News feed endpoints

    Delivers curated news articles relevant to stocks, surfaced by the community and AI, available via REST API in JSON/XML.

  4. RSS feed endpoints

    Offers RSS feeds for syndicating StockTwits content, enabling integration into traditional feed readers and aggregators.

  5. Free API key and SDK

    Access requires only a free API key; an SDK is available to simplify authentication and data retrieval for developers.

  6. Alpaca partnership integration

    Through a 2025 partnership, Alpaca Broker API partners can embed StockTwits social sentiment and feeds into their platforms.

  7. Community-driven content

    Data originates from over 10 million retail investors discussing stocks, providing a direct proxy for retail sentiment.

Strengths and trade-offs

Strengths

  • Free access with API key and SDK eliminates upfront cost for developers and researchers.
  • Provides unique sentiment and rankings data derived from over 10 million retail investors, a distinct signal not available from market data APIs.
  • Includes both real-time and historical data, enabling live trading signals and backtesting of sentiment-based strategies.
  • Offers news feed and RSS feed endpoints, allowing flexible integration into various applications and workflows.

Trade-offs

  • Limited to a free tier with potential rate limits and restricted access to full historical data or advanced features.
  • Data accuracy is questionable; StockTwits once displayed a fake earnings miss for hours and removed it without correction.
  • Requires Basic Authentication for some endpoints, adding a minor integration hurdle for developers.
  • Social sentiment data is inherently noisy and may not reliably correlate with market movements, requiring additional filtering.

Pricing context

Free with API key and SDK; no paid tiers explicitly mentioned in sources.

Getting started with StockTwits API

  1. Sign up for API key

    Go to the StockTwits developer portal and register for a free account. After verifying your email, you will receive an API key. Keep this key secure; it is required for all API requests.

  2. Install the SDK

    Download the StockTwits SDK from the official repository. Follow the installation instructions for your programming language. The SDK simplifies authentication and data retrieval, reducing boilerplate code.

  3. Authenticate with Basic Auth

    For endpoints requiring Basic Authentication, encode your API key as a username with a blank password. Include the Authorization header in your HTTP requests. The SDK handles this automatically if configured.

  4. Fetch sentiment data

    Call the sentiment endpoint with a stock symbol to retrieve bullish, bearish, and neutral scores. Parse the JSON or XML response to extract the sentiment values. Use this data to gauge retail investor mood.

  5. Schedule regular data pulls

    Set up a cron job or scheduler to call the real-time feed endpoint at intervals that respect rate limits. Store the retrieved messages and sentiment scores in a database for analysis or live trading signals.

Frequently Asked Questions

What is the StockTwits API and what does it do?

The StockTwits API is a free interface that provides social data from over 10 million investors and traders. It offers endpoints for sentiment scores, stock rankings, real-time and historical social feeds, news, and RSS feeds, helping developers and researchers incorporate retail investor sentiment into applications.

Is the StockTwits API free to use?

Yes, the StockTwits API is free to use. Access requires a free API key and an available SDK simplifies integration. There are no paid tiers mentioned in sources, but the free tier may have rate limits and restricted access to full historical data or advanced features.

What kind of data can I get from the StockTwits API?

You can get sentiment data (bullish, bearish, neutral) derived from NLP, stock rankings, real-time and historical social feeds, news feeds, and RSS feeds. Data is available in JSON and XML formats, including message content, user info, symbols, and sentiment classifications.

How does the StockTwits API compare to other financial data APIs?

Unlike competitors like Polygon.io or Alpha Vantage that focus on market data, StockTwits API specializes in social sentiment from retail investors. It provides a unique signal for gauging market mood, but data is noisy and may not correlate with market movements, requiring careful validation.

What are the main drawbacks of the StockTwits API?

Drawbacks include potential rate limits on the free tier, data accuracy concerns (StockTwits once displayed a fake earnings miss for hours), and the need for Basic Authentication on some endpoints. Social sentiment data is inherently noisy and may need additional filtering for reliable use.

Can I use the StockTwits API for backtesting trading strategies?

Yes, the StockTwits API provides historical data that allows backtesting of sentiment-based strategies. Real-time endpoints also enable live trading signals. However, users should be aware of potential rate limits and the noisy nature of social sentiment data when backtesting.

Alternatives

How StockTwits API compares

Direct head-to-head against 2 competitors. Picked by 7wData.

This tool

StockTwits API

Pricing
Free with API key and SDK; no paid tiers explicitly mentioned in sources.
Target
StockTwits API is a free, developer-accessible interface to the social data generated by StockTwits, a platform founded in 2008 that now hosts over 10 million
Strength
Free access with API key and SDK eliminates upfront cost for developers and researchers.
Watch for
Limited to a free tier with potential rate limits and restricted access to full historical data or advanced features.

Financial Modeling Prep

Pricing
$29.99/month (Basic), $99.99/month (Professional), Custom (Enterprise)
Target
Analysts and developers needing broad data coverage
Deployment
Cloud
Strength
Full suite of financial statements and WebSocket support
Watch for
Limited global coverage beyond U.S. stocks

Alpha Vantage

Pricing
Free tier, Premium at $49.99/month
Target
Developers needing free or low-cost API access
Deployment
Cloud
Strength
Real-time and historical data with global coverage
Watch for
Rate limits on free tier, slower updates

User reviews

No user reviews yet. Be the first to write one.

Sources

Reporting on this tool draws on these publicly available sources.

  1. www.reddit.com
  2. www.reddit.com
  3. www.reddit.com
  4. brightdata.com
  5. alpaca.markets
  6. www.ksred.com
  7. rapidapi.com
  8. api-docs.stocktwits.com
  9. stocktwits.com