How the Twitter monitor API works
With the TweetStream Twitter monitor API, your backend opens one authenticated WebSocket and events from the X accounts you choose arrive as JSON. You can add or remove accounts while the stream stays open.
- Create an API key in the dashboard and add the X handles you want to monitor.
- Open a WebSocket from your server with the tweetstream.v1 protocol and your API key.
- Route each event by type and operation, such as new posts, deletes, profile changes, and follows.
- Change the watchlist through the REST endpoints or a handle-management socket. Your open stream picks up the new list without reconnecting.
Ways to monitor a Twitter account
Pick a method by what you need to see and how soon. Profile monitors check for bio and pinned-post edits on a schedule. A trading bot or an alert channel needs each post as it lands, and that takes a push feed.
Scroll horizontally to compare →
| Method | What it catches | When you hear about it |
|---|---|---|
| X post notifications (the bell) | Posts from accounts you follow, as push alerts in the X app. You turn it on one profile at a time. | When X sends the push |
| Page-change monitors (Visualping, PageCrawl) | Profile edits: bio, pinned post, display name, links and follower count. Visualping says its default snapshot misses individual posts behind X's login wall (2026). | On the next scheduled check. Free tiers: Visualping checks 5 profiles daily, PageCrawl allows 220 checks a month (2026). |
| Follow trackers (Circleboom) | New followers, new followings and unfollows on a public account | In a daily or weekly alert (2026) |
| Polling an API from your own code | Whatever the endpoint returns, usually the latest posts from each account | Your poll interval plus the request time |
| TweetStream WebSocket | Posts, replies, quotes, reposts, deletes, pins, and profile, follow and unfollow changes from the accounts you list, as JSON. Non-post events arrive when observed. | Typically 166 ms from X's post timestamp to first TweetStream server receipt. Live figures at tweetstream.io/speedcheck. |
Sources: Visualping (updated 2026-04-22) · PageCrawl (updated 2026-09-25) · Circleboom (2026-04-24)
Competitor details come from each vendor's own guide, read on 2026-11-11. Check their sites for current plans.
What TweetStream handles
- Add or remove accounts live
- Send handles to the add and remove endpoints, or over a handle-management socket. Your consumer socket keeps running and routes the new list.
- Account events beyond posts
- Deletes, pins, profile changes, follows, and unfollows arrive when available, with token detection and OCR on post images.
- Discord routing
- Every plan can send the same alerts to a Discord webhook, so people can read them while your bot consumes the stream.
- Client reconnects
- Your client owns reconnects. Back off exponentially and reset the delay after 30 seconds of uptime, as the Node.js and Python guides do.
Connect from Node.js or Python
Node.js: print new posts from your watchlist
typescriptimport WebSocket from "ws";
const ws = new WebSocket("wss://ws-global.tweetstream.io/ws", [
"tweetstream.v1",
`tweetstream.auth.token.${process.env.TWEETSTREAM_API_KEY}`,
]);
ws.on("message", (raw) => {
const event = JSON.parse(raw.toString());
if (event.t === "tweet" && event.op === "content") {
console.log(event.d?.author?.handle, event.d?.text);
}
});Python: print new posts from your watchlist
pythonimport asyncio
import json
import os
import websockets
PROTOCOLS = ["tweetstream.v1", f"tweetstream.auth.token.{os.environ['TWEETSTREAM_API_KEY']}"]
async def main():
async with websockets.connect("wss://ws-global.tweetstream.io/ws", subprotocols=PROTOCOLS) as ws:
async for raw in ws:
event = json.loads(raw)
if event["t"] == "tweet" and event["op"] == "content":
tweet = event["d"]
print(tweet.get("author", {}).get("handle"), tweet.get("text"))
asyncio.run(main())Why teams use it
- The 3-day trial covers 5 tracked accounts and 1 WebSocket connection.
- Monitor a focused account list without running your own account-following worker.
- Every plan includes Discord routing, so alerts can reach the channel where your team acts.
- See account and connection limits before putting the feed into production.