StockTwits Data Parser & API
StockTwits is the leading US stock-focused social network where retail traders tag posts with cashtags ($AAPL) and bullish/bearish sentiment, and StockAPIS extracts its social-signal data — ticker sentiment scores, message volume, trending symbols and watchlist activity — through a single REST API. StockTwits offers an official REST API, but its public endpoints are rate-limited and historical sentiment access is restricted; StockAPIS normalizes the feed to the same schema you use for every other source, so StockTwits sentiment lines up with Reddit, Twitter/Grok and news signals without separate integrations.
| Type | Signals provider (retail social sentiment) |
|---|---|
| HQ | United States (New York, NY) |
| Owner | StockTwits, Inc. |
| Asset classes | Equities, ETFs, Crypto, Options |
| Coverage | Millions of cashtag messages across US-listed tickers, ETFs and major crypto |
| Scale | Leading US stock-focused social network (~6M registered users) |
| API access | Partial / limited API |
| Parse priority | ★★★★☆ |
| Official site | stocktwits.com |
Platform Overview
Market Position
- The original and largest stock-focused social network, with roughly 6M registered users
- Pioneered the cashtag ($TICKER) convention now standard across finance social media
- Native, structured bullish/bearish sentiment tagging on every message — rare among social platforms
- Strong retail-trader signal during earnings, squeezes and meme-stock events
- Official REST API exists, but is rate-limited; StockAPIS adds unified normalization and history
Data Coverage
StockAPIS exposes the full StockTwits social surface:
- Sentiment scores — aggregate bullish/bearish ratios per symbol, with bull/bear message counts
- Message stream — individual posts with body text, cashtags, likes, replies and timestamps
- Trending symbols — most-mentioned and fastest-rising tickers over rolling windows
- Message volume — post counts per symbol for spotting unusual chatter spikes
- Watchlist activity — how many users are watching a symbol as an interest proxy
- User context — author follower counts and verified/official-account flags for influence weighting
Quick Start
import stockapis
client = stockapis.Client(api_key="your-api-key")
# Aggregate StockTwits sentiment for a ticker
aapl = client.stocktwits.get_sentiment(symbol="AAPL")
print(f"$AAPL sentiment: {aapl['sentiment']} · {aapl['bullishCount']} bull / {aapl['bearishCount']} bear")const { StockAPIS } = require("stockapis");
const client = new StockAPIS({ apiKey: "your-api-key" });
// Trending symbols on StockTwits right now
const trending = await client.stocktwits.getTrending({ limit: 25 });
console.log(trending.map((t) => `${t.symbol} (${t.messageVolume})`));Sample API Response
{
"success": true,
"data": {
"symbol": "AAPL",
"sentiment": "bullish",
"sentimentScore": 0.78,
"bullishCount": 1250,
"bearishCount": 320,
"neutralCount": 180,
"messageVolume": 1750,
"trendingRank": 4,
"watchlistCount": 482300,
"topMessages": [
{
"id": "123456789",
"body": "Earnings looking strong into the print $AAPL",
"sentiment": "bullish",
"likes": 450,
"replies": 120,
"user": { "username": "trader123", "followers": 15000, "official": false },
"createdAt": "2024-01-15T10:30:00.000Z"
}
],
"trendingKeywords": ["earnings", "iphone", "services", "revenue"]
},
"metadata": { "source": "stocktwits", "timestamp": "2024-01-15T10:30:00.000Z" }
}Use Cases
- Sentiment-driven signals — feed bullish/bearish ratios and shifts into trading models or contrarian indicators
- Trending detection — surface unusual cashtag chatter early to catch squeezes and breakout momentum
- Cross-source sentiment — blend StockTwits with Reddit, Twitter/Grok and news sentiment on one schema
- Event monitoring — track message-volume spikes around earnings, halts and meme-stock events
Frequently Asked Questions
Does StockTwits have an official API? Yes — StockTwits provides an official REST API, but public access is rate-limited and historical or aggregate sentiment is restricted. StockAPIS wraps it in a unified schema with added normalization so StockTwits data matches every other source you pull.
What data can I get from StockTwits through StockAPIS? Aggregate bullish/bearish sentiment scores, per-symbol message volume, trending and most-watched symbols, individual messages with cashtags and engagement, and author follower context for influence weighting.
Is StockTwits sentiment structured or inferred? Both — StockTwits lets users explicitly tag posts as bullish or bearish, giving a structured signal, while StockAPIS also derives scores from untagged message text for fuller coverage.