Private Server Sent Events
Private SSE provides access to complete, untruncated Twitter/X data through token-based authentication for enhanced privacy and control.Overview
Private SSE offers:- Full data payloads without truncation
- Token-based authentication for secure access
- Real-time streaming with automatic reconnection
- Enhanced filtering capabilities
Authentication
Private SSE requires an access token generated via the token endpoint. See Generate SSE Token for details.Connection Setup
Endpoint
Connection Example
Data Format
Private SSE provides complete, untruncated data:Advanced Filtering
Private SSE supports enhanced filtering options:Available Filters
keywords: Comma-separated keywordsusers: Comma-separated usernamesmin_followers: Minimum follower countverified: Only verified users (true/false)language: Tweet language codemin_retweets: Minimum retweet count
Event Types
Tweet Events
User Events
Status Events
Token Security
- Token Expiration: Tokens expire after 24 hours
- Single Use: Each token can be used for one connection
- Rate Limiting: 10 tokens per hour per API key
- Secure Transmission: Always use HTTPS
Reconnection Strategy
Rate Limits
- 5 events per second per connection
- Maximum 3 concurrent connections per API key
- Automatic disconnection after 30 minutes of inactivity
- 10 token generations per hour per API key
Use Cases
Private SSE is ideal for:- Analytics platforms requiring complete data
- Monitoring applications needing full context
- Enterprise integrations with data processing pipelines
- Research applications requiring comprehensive datasets