Base Message Format
Every message sent over the websocket follows this base format:Tweet Events
tweet.mini.update
The fastest event for any new tweet. Sent immediately with compressed data.
tweet.mini.update
The fastest event for any new tweet. Sent immediately with compressed data.
tweet.update will follow shortly after if the tweet:- Is quoting, replying to, or retweeting another tweet
tweet.update
Full tweet data including subtweets (up to 2 levels deep).
tweet.update
Full tweet data including subtweets (up to 2 levels deep).
tweet.mini.update with complete tweet data including resolved subtweets.Note: Subtweet chains are resolved up to 2 levels deep. If a chain is 3+ levels (e.g. a retweet of a reply to another tweet), levels 3+ will have minimal/default data. See tweet.full for fully resolved deep chains.tweet.update.expanded
Expanded tweet data with full text and article content.
tweet.update.expanded
Expanded tweet data with full text and article content.
tweet.update but with full untruncated text and article content if present.Only sent when:- The tweet text was truncated in
tweet.update - The tweet contains an article
tweet.full
Fully resolved deep chain (3-5+ levels) with complete data at every level.
tweet.full
Fully resolved deep chain (3-5+ levels) with complete data at every level.
tweet.mini.updatearrives first (fastest)tweet.updatearrives ~60ms later (levels 3+ may have empty data)tweet.fullarrives ~200-500ms later (all levels fully resolved)
tweet.update, levels 3-5 would have empty/default data. In tweet.full, every level has complete data.Supports up to 6 levels including the main tweet, we might increase it in the future, but 6 levels seems good for most use cases for nowProfile Events
profile.pinned.update
Fired when a tracked user pins a tweet to their profile.
profile.pinned.update
Fired when a tracked user pins a tweet to their profile.
profile.unpinned.update
Fired when a tracked user unpins a tweet from their profile.
profile.unpinned.update
Fired when a tracked user unpins a tweet from their profile.
profile.update
Fired when a tracked user updates their profile information.
profile.update
Fired when a tracked user updates their profile information.
Activity Events
following.update
Fired when a tracked user follows or unfollows another account.
following.update
Fired when a tracked user follows or unfollows another account.
tweet.deleted
Fired when a tracked user's tweet is deleted.
tweet.deleted
Fired when a tracked user's tweet is deleted.
Types
TwitterUser
TwitterUser
Complete user profile data.
TwitterUser
Complete user profile data.
TwitterMiniUser
TwitterMiniUser
Compressed user data for fast delivery.
TwitterMiniUser
Compressed user data for fast delivery.
TwitterTweet
TwitterTweet
Complete tweet data with all fields.
TwitterTweet
Complete tweet data with all fields.
TwitterMiniTweet
TwitterMiniTweet
Compressed tweet data for fast delivery.
TwitterMiniTweet
Compressed tweet data for fast delivery.
