Twitter/X WebSocket API — by Xanguard

Twitter/X WebSocket API
Real-Time Tweet Streaming

Stream tweets, deleted-tweet detection, profile changes, new followers, and follow/unfollow events over a single WebSocket connection. Sub-second delivery from proprietary detection infrastructure. TweetCatcher-compatible protocol. Tiered plans from $49/mo.

Last updated: April 2026

<500ms
Delivery Latency
5
Real-Time Modules
1
WebSocket Connection
from $49
Starting Price

Five real-time modules. One WebSocket.

Everything you need to build on Twitter/X data — tweets, deleted-tweet detection, profile changes, new followers, and follow/unfollow detection. All delivered as structured JSON over a single persistent WebSocket connection.

Realtime Tweets

Sub-second delivery of tweets, replies, quotes, and retweets. Full untruncated text, media URLs, quoted tweet content, author metadata, and contract address extraction. Powered by a proprietary real-time detection engine.

Profile Watch

Bio, display name, avatar, and pinned tweet changes detected in under 500ms. Track rebrands, narrative shifts, and profile updates before anyone else sees them.

New-Follower Detection

Know the instant any tracked account gains a new follower — and exactly who it was. Surface fresh accounts shadowing key players and new connections the moment they form.

Deleted-Tweet Detection

Get alerted the moment a tracked account deletes a tweet. Catch walked-back announcements, scrubbed calls, and damage-control deletions the instant they happen.

Connect in 10 lines of code

TweetCatcher-compatible opcode protocol. If you’ve used TweetCatcher, migration is near drop-in.

// Node.js — connect to Xanguard Twitter/X WebSocket API
import WebSocket from 'ws';

const ws = new WebSocket('wss://api.xanguard.tech/v1/dt/realtime/ws');

ws.on('message', (raw) => {
  const msg = JSON.parse(raw);
  switch (msg.op) {
    case 10: // HELLO — server greeting
      ws.send(JSON.stringify({ op: 2, d: 'dt_YOUR_API_KEY' }));
      break;
    case 4:  // READY — authenticated
      console.log(`Monitoring ${msg.d.handles} handles`);
      break;
    case 0:  // EVENT — real-time data
      if (msg.d.event === 'twitter.post.new') {
        console.log(`@${msg.d.data.author.handle}: ${msg.d.data.text}`);
      }
      if (msg.d.event === 'twitter.following.new') {
        console.log(`@${msg.d.data.source} followed @${msg.d.data.target}`);
      }
      break;
  }
});

// Send heartbeat every 30s to keep connection alive
setInterval(() => ws.send(JSON.stringify({ op: 1 })), 30000);
Op 10
HELLO
Op 2
LOGIN
Op 0
EVENT

Twitter/X WebSocket API alternatives compared

The official X API Streaming tier costs $42,000/mo. Here’s how the alternatives stack up.

Feature X API Enterprise TweetStream TweetCatcher Xanguard
WebSocket deliveryFirehose only
Sub-second latency~2s~1–3s✓ (<500ms)
Follow/unfollow detection
Profile change alertsPartial✓ (<500ms)
New-follower detection
Deleted-tweet detection
REST API included
No Twitter/X dev account needed
Starting price$42,000/mo$199/mo~EUR 300/mofrom $49/mo

Tiered plans. Priced by handle count.

Three module tiers — Starter, Pro, and Enterprise — each scaling by the number of handles you track. Pick the capabilities you need. Pay with SOL or Telegram Stars.

Starter
from $49/mo
  • Tweet alerts
  • Deleted-tweet detection
  • WebSocket + REST API
  • Webhook delivery
  • Telegram alerts included
Enterprise
from $249/mo
  • Everything in Pro
  • Follow/unfollow detection
  • Custom SLA
  • Priority support
Handles Starter
tweets + deleted-tweet
Pro
+ profile + new-follower
Enterprise
+ follow/unfollow
50$49$99$249
250$229$429$979
500$449$749$1,649
1000$849$1,349$2,849

Need more than 1000 handles or a custom SLA? Talk to us for volume pricing.

Open @B2B_Xanguard_bot

Frequently asked questions

Yes. Twitter removed its free Streaming API in 2023. Xanguard provides a WebSocket-based alternative with sub-second tweet delivery, follow detection, profile monitoring, new-follower detection, and deleted-tweet detection — starting at $49/mo versus the official X API’s $42,000/mo enterprise tier.
Most tweets are delivered in under 500ms from the moment they are posted. Xanguard uses proprietary detection infrastructure for minimal latency. Full metadata is included — untruncated text, media URLs, quoted tweet content, and author data.
Yes. Xanguard uses a TweetCatcher-compatible opcode protocol (HELLO, LOGIN, READY, EVENT, HEARTBEAT). The event payloads are structured similarly. Migration typically takes under an hour of code changes.
No. Xanguard handles all the Twitter/X infrastructure. You connect to our WebSocket endpoint and receive structured JSON events — no Twitter developer account, no API keys, no rate limit management required.
Every tweet event includes: full untruncated text, media URLs (images, video, GIFs), quoted tweet content, author metadata (handle, display name, follower count), tweet classification (original, reply, quote, retweet), timestamps, and extracted contract addresses for crypto use cases. All delivered as structured JSON.

Replace the Twitter/X Streaming API today.

One WebSocket. Five modules. Sub-second delivery. Plans from $49/mo. Start building in under 5 minutes.

Explore all Xanguard products: Tweet Alerts · B2B API · Community Watch · Convergence Tracker · Trending · Search Alerts