Twitter/X WebSocket API — by Xanguard

Twitter/X WebSocket API
Real-Time Tweet Streaming

Stream tweets, follows, profile changes, and community events over a single WebSocket connection. Sub-second delivery from proprietary detection infrastructure. TweetCatcher-compatible protocol. From $49/mo.

Last updated: April 2026

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

Four real-time modules. One WebSocket.

Everything you need to build on Twitter/X data — tweets, follows, profile changes, and community signals. 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.

Community Monitoring

The only API that tracks Twitter/X community membership changes. Detect when accounts create or join communities. No competitor — including Twitter/X’s own API — offers this.

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.follow.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)
Community monitoring✓ (exclusive)
REST API included
No Twitter/X dev account needed
Starting price$42,000/mo$199/mo~EUR 300/mo$49/mo

All 4 modules included. No feature gates.

Every plan includes tweets, follows, profile watch, and community monitoring over WebSocket. Pay with SOL or Telegram Stars.

Starter
25 accounts
$49
per month
$1.96 / account
  • 25 tracked accounts
  • All 4 real-time modules
  • WebSocket + REST API
  • Webhook delivery
  • Telegram alerts included
Get Started
Enterprise
500+ accounts
$249
per month
Custom volume pricing
  • 500+ tracked accounts
  • All 4 real-time modules
  • Dedicated infrastructure
  • Custom SLA
  • Priority support
Contact Us

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, and profile monitoring — 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 running on dedicated bare-metal servers 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. Four modules. Sub-second delivery. Start building in under 5 minutes.

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