Payloads, Token Detection & OCR
Complete reference for TweetStream alert data structures and enrichment features
Tweet Lifecycle
When a monitored account tweets, TweetStream sends a base content message first, optional update messages, and a meta message when enrichment is ready:
content- The tweet text, author, and media (arrives first)update- Optional ref context or URL expansion updatesmeta- Enrichment data: OCR results, detected tokens, markets (arrives shortly after)
Tweet Content Type
Tweet Meta Type
The meta payload contains all enrichment data:
Token Detection
TweetStream automatically detects tokens from multiple sources:
| Source | Examples |
|---|---|
| $TICKER symbols | $BTC, $ETH, $SOL |
| Contract addresses | 0x... (EVM), pump... (Solana) |
| DEX URLs | dexscreener.com, birdeye.so |
| OCR text | Tickers and addresses in images |
OCR Text Extraction
Text is automatically extracted from images attached to tweets. This includes:
- Screenshots of charts and trading terminals
- Images containing token information
- Announcements and promotional graphics
OCR results are included in the meta.ocr.text field and are also scanned for token detection.
Prediction Markets
References to Polymarket and Kalshi markets are detected and enriched with live odds. The detected.prediction array includes:
- Market ID and title
- Current price (probability)
- Direct link to the market
Example: Content Envelope
Example: Meta Envelope
Start real-time Twitter WebSocket alerts today
WebSocket delivery, OCR, and token detection—no infrastructure to build.
Start 1-Day TrialFrom $199/mo · 1-day trial included · OCR + token detection included