StockTwits Data API
Real-time stock-focused social data from StockTwits. Anti-detection technology, comprehensive API documentation, stock-focused social platform with trading insights, community sentiment, and professional trader discussions for stock market analysis.
🚀 Overview
The StockTwits Parser provides enterprise-level data extraction from StockTwits' comprehensive stock-focused social media platform, including real-time sentiment analysis, trading insights, community discussions, and detailed social metrics for stock markets with a focus on professional traders, stock-specific sentiment, and trading community intelligence.
Key Features
- 📈 Stock-Focused - Dedicated to stock market discussions
- 👨💼 Professional Traders - Access to professional trader insights
- 📊 Trading Sentiment - Real-time trading sentiment analysis
- 🛡️ Anti-detection - Advanced bypass technology
- 🔥 Trending Stocks - Identify trending stock discussions
📊 Data Points
- Trading Sentiment - Real-time sentiment scores, bullish/bearish signals
- Community Discussions - Posts, comments, likes, shares
- Trending Stocks - Hot stocks, viral posts, popular discussions
- User Engagement - Follower counts, influence scores, user activity
- Stock Discussions - Stock-specific conversations, analysis
- Market Insights - Professional trader insights, market commentary
🛠️ Quick Start
// Initialize StockTwits parser
// const stocktwitsParser = new StockAPIParser({
apiKey: 'your-api-key',
platform: 'stocktwits',
});
// Get sentiment data
// const sentiment = await stocktwitsParser.getSentiment({
symbol: 'AAPL'
});
// console.log(`Apple sentiment: ${sentiment.sentiment}`);
// console.log(`Bullish posts: ${sentiment.bullish}`);
Python Example
import stockapi
# Initialize client
client = stockapi.Client(api_key='your-api-key')
# Get Apple sentiment data
apple_sentiment = client.stocktwits.get_sentiment(symbol='AAPL')
print(f"Apple Sentiment: {apple_sentiment['sentiment']}")
print(f"Bullish Posts: {apple_sentiment['bullish']}")
print(f"Bearish Posts: {apple_sentiment['bearish']}")
📈 API Endpoints
Sentiment Analysis
// Get sentiment for specific symbol
// const sentiment = await stocktwitsParser.getSentiment({
symbol: 'AAPL'
});
// Get sentiment trends
// const sentimentTrends = await stocktwitsParser.getSentimentTrends({
symbol: 'AAPL',
timeframe: '24h'
});
// Get overall market sentiment
// const marketSentiment = await stocktwitsParser.getMarketSentiment({
timeframe: '24h'
});
Community Discussions
// Get trending posts
// const trendingPosts = await stocktwitsParser.getTrendingPosts({
limit: 100
});
// Get symbol mentions
// const symbolMentions = await stocktwitsParser.getSymbolMentions({
symbol: 'AAPL',
timeframe: '24h'
});
// Get user posts
// const userPosts = await stocktwitsParser.getUserPosts({
username: 'trader123',
limit: 50
});
Stock Data
// Get stock info
// const stockInfo = await stocktwitsParser.getStockInfo({
symbol: 'AAPL'
});
// Get stock posts
// const stockPosts = await stocktwitsParser.getStockPosts({
symbol: 'AAPL',
limit: 100
});
// Get stock comments
// const stockComments = await stocktwitsParser.getStockComments({
symbol: 'AAPL',
limit: 100
});
Trending Analysis
// Get trending stocks
// const trendingStocks = await stocktwitsParser.getTrendingStocks({
timeframe: '24h'
});
// Get viral posts
// const viralPosts = await stocktwitsParser.getViralPosts({
limit: 50
});
// Get sentiment leaders
// const sentimentLeaders = await stocktwitsParser.getSentimentLeaders({
timeframe: '24h'
});
🔧 Advanced Features
Real-time Streaming
// Create WebSocket connection for real-time data
// const stream = stocktwitsParser.createWebSocket({
channels: ['sentiment', 'mentions', 'trending'],
symbols: ['AAPL', 'TSLA', 'GME', 'AMC', 'BBBY']
});
// stream.on('data', (data) => {
// console.log('Real-time update:', data);
});
// stream.on('error', (error) => {
// console.error('Stream error:', error);
});
Batch Processing
// Get data for multiple symbols efficiently
// const batchData = await stocktwitsParser.getBatchData({
symbols: ['AAPL', 'TSLA', 'GME', 'AMC', 'BBBY'],
functions: ['sentiment', 'mentions', 'trending']
});
📊 Sample API Response
{
"success": true,
"data": {
"symbol": "AAPL",
"sentiment": "bullish",
"sentiment_score": 0.78,
"bullish": 1250,
"bearish": 320,
"neutral": 180,
"total_posts": 1750,
"top_posts": [
{
"id": "123456789",
"body": "Apple earnings looking strong! $AAPL",
"sentiment": "bullish",
"likes": 450,
"replies": 120,
"user": {
"username": "trader123",
"followers": 15000,
"verified": true
},
"timestamp": "2024-01-15T10:30:00.000Z"
}
],
"trending_keywords": ["earnings", "iphone", "services", "revenue"],
"timestamp": "2024-01-15T10:30:00.000Z"
},
"metadata": {
"timestamp": "2024-01-15T10:30:00.000Z",
"source": "stocktwits",
"cache_hit": false,
"response_time": "180ms"
}
}
🎯 Use Cases
Trading Sentiment Analysis
- Sentiment-based Trading - Trade based on StockTwits sentiment signals
- Professional Insights - Access professional trader opinions
- Trend Detection - Identify emerging stock trends
- Contrarian Signals - Use extreme sentiment as contrarian indicators
Stock Research
- Community Analysis - Analyze what traders are discussing
- Stock Research - Research specific stocks and sentiment
- Sector Analysis - Compare sentiment across sectors
- Influencer Tracking - Track influential traders and their opinions
Market Intelligence
- Sentiment Monitoring - Monitor sentiment changes over time
- Market Sentiment - Track overall market sentiment
- Volatility Prediction - Use sentiment to predict volatility
- Bubble Detection - Identify potential stock bubbles through sentiment
🔗 Related Resources
- API Documentation - Complete API reference
- Pricing Plans - Service pricing
🚀 Get Started Today
Free Trial
Start with our free tier and get instant access to:
- 1,000 API calls per month
- Basic sentiment data
- Documentation and support
- SDK downloads
Professional Plans
Upgrade to professional plans for:
- Unlimited API calls
- Premium data feeds
- Priority support
- Custom integrations
Enterprise Solutions
Contact us for enterprise solutions:
- Custom data feeds
- Dedicated infrastructure
- SLA guarantees
- White-label solutions
Ready to access stock-focused social data from StockTwits? Get started today and transform your trading with professional trader insights and stock sentiment analysis.