X does not keep deleted posts, so a deletion can only be reported with its text if the post was captured first. Xanguard's B2B API watches the X accounts you list, captures every post, and sends a twitter.tweet.deleted event over WebSocket when one is deleted, with the tweet ID and the text we saw. It is included in every plan, from $49 a month for 10 handles. X's own Activity API also has a post.delete event. Both are compared below. Checked on 22/11/2026.
Looking for a free way to read a tweet that is already gone, or Telegram alerts instead of an API? See deleted tweets: how to see them.
Can an API detect deleted tweets?
Yes, if it saw the post before it was deleted. A detection API does two jobs: it captures each post while it is live, then notices when the post is gone. A service that never saw the post can tell you an ID vanished, but not what it said. That is why archives miss so many deletions: nobody saved the post in time.
How deletion detection works
- Capture. You add the accounts. Every new post from them arrives on your socket and is stored on our side with its ID and text.
- Notice. The same continuous monitoring that detects new posts also notices when a stored post is gone.
- Event. You get a
twitter.tweet.deletedframe on the same socket as the tweets, with the tweet ID and text when we could resolve which post went.
We have not published a measured delay for deletions, so this page does not quote one. New posts reach the socket with a median under 250 ms, published live at /speed.
Your options in 2026 (checked 22/11/2026)
| Option | New deletes as they happen | Keeps the text | Which accounts | Delivery | Price | Limits |
|---|---|---|---|---|---|---|
| Xanguard B2B API | Yes | Yes, when the post was resolved | Public accounts you add | WebSocket | Included, from $49/mo for 10 handles | 5 connections per key, 10 at 125+ handles |
| Xanguard Tweet Alerts (Telegram) | Yes | Yes, for tweets it saw | Accounts you track | Telegram | Opt-in on paid plans, from $10/mo for 5 | Telegram only, not for code |
X Activity API post.delete | Yes | Not stated in X's introduction | Any public user ID; protected excluded | Webhook or HTTP stream | "Not billed" on the pricing page; "billed as a Post" in the introduction | X developer account; 1,500 self-serve subscriptions |
| X compliance stream | Yes (delete event) | Tells you to remove your stored copy | Posts in your dataset | Stream | Enterprise access | Enterprise only |
| TweetStream | Deletes listed in its post feed | Not stated | Accounts you track | WebSocket, Discord | From $199/mo for 50 | 3 connections on the $199 plan |
| twitterapi.io Stream | Not listed on its stream page | n/a | Accounts you track | WebSocket, webhook | From $149/mo for 50 | |
| Your own code | Only as often as you re-check | Yes, if you stored it | Any public account | Your own | Read costs grow with posts times checks | X read cap: 3 million posts a month |
| Wayback Machine, archive.today | No | Only if someone saved it | Any | Web | Free | Recovery, not detection |
Sources: X Activity API, X pricing, X compliance streams, TweetStream pricing, twitterapi.io stream, all read 22/11/2026. Some third-party pages state there is no deleted-tweet endpoint at any price; X's Activity API added post.delete on 4/6/2026 (X changelog).
What a deleted-tweet event looks like
This is the exact frame on wss://api.xanguard.tech/v1/dt/realtime/ws:
{
"op": 0,
"d": {
"event": "twitter.tweet.deleted",
"event_id": "evt_del_exampledev_1795305600000",
"event_time": 1795305600000,
"task_info": { "handle": "exampledev" },
"data": {
"tweet_id": "1990000000000000000",
"text": "CA is live, sending it."
}
}
}
| Field | Meaning |
|---|---|
d.event | Always twitter.tweet.deleted for a deletion |
d.event_id | evt_del_<handle>_<detected_at_ms>. Use it to drop duplicates |
d.event_time | When we detected the deletion, Unix milliseconds |
d.task_info.handle | The tracked account that deleted the post |
d.data.tweet_id | The deleted post's ID, or null if we could not resolve which post went |
d.data.text | The text we saw while the post was live, or null in the same case |
A null pair still tells you the account removed something. To filter deletions in or out at login, use the types filter with deleted. Full protocol: B2B realtime reference. Client code: Python and Node.
Deleted vs suspended vs protected vs deactivated
A post can vanish for reasons other than its author deleting it. Check the profile before you act on a burst of missing posts.
| Case | What you see on X | What it means | X compliance event |
|---|---|---|---|
| Post deleted | The post link stops working; the profile is still there | The author removed one post | delete |
| Account deactivated | "This account doesn't exist" | Every post is hidden; it can come back if the owner reactivates | user_delete |
| Account suspended | A suspension notice | X hid the account; posts may return on unsuspension | suspend |
| Account protected | The profile with a lock icon | Posts are hidden from non-followers, not deleted | protect |
| Handle renamed | The old URL says the account doesn't exist | Same account, new handle; search the display name | n/a |
Compliance event names from X's compliance streams documentation, read 22/11/2026. Name and bio changes on accounts you track arrive as profile change events on the same Xanguard socket.
Use cases
- Crypto KOLs and developers. A contract address is posted, then deleted minutes later. The deletion is the signal. Every plan also reads contract addresses from tweet images (OCR), so the address can reach you while the post is live. More: how traders spot rug pulls on X.
- Trading terminals and bots. Show a "deleted" badge under a post your users already saw. See the X feed for trading terminals.
- Public figures and newsrooms. Keep a record of what was said before it was taken back.
- Brands and compliance teams. Know when a partner or executive removes an announcement.
Tweets deleted before you started watching
No detection API can recover these. Use the Wayback Machine, archive.today, quotes, embeds and screenshots, or your own X data archive for your own posts. Step-by-step: how to see deleted tweets. Background: are deleted tweets gone forever?
Pricing
One all-in plan. Every size includes tweets, replies, quotes, reposts, deleted-tweet events, profile changes (name, bio, avatar), follow and unfollow detection, and OCR of contract addresses in tweet images, over WebSocket and REST.
| Handles | Price per month | Per handle | WebSocket connections |
|---|---|---|---|
| 10 | $49 | $4.90 | 5 |
| 25 | $99 | $3.96 | 5 |
| 50 | $129 | $2.58 | 5 |
| 125 | $299 | $2.39 | 10 |
| 250 | $449 | $1.80 | 10 |
| 500 | $675 | $1.35 | 10 |
| 750 | $899 | $1.20 | 10 |
| 1,000 | $1,125 | $1.13 | 10 |
| Any count 251 to 10,000 | $449 + $0.90 per handle over 250 | 10 |
Buy in Telegram at @B2B_Xanguard_bot, pay in SOL. Prices checked against the live plan list on 22/11/2026. Comparing providers? See X API alternatives by price per handle.
Frequently Asked Questions
Yes. Xanguard's B2B API sends a twitter.tweet.deleted event over WebSocket when an account you track deletes a post, on every plan from $49 a month for 10 handles. X's own Activity API has a post.delete event, and X's Enterprise compliance stream carries delete events too (docs.x.com, checked 22/11/2026).
Yes. X's Activity API lists post.delete as a public event, fired when the user you subscribed to deletes a post, delivered by webhook or persistent HTTP stream. It needs an X developer account, self-serve access is capped at 1,500 subscriptions, and posts from protected accounts are excluded. X's pricing page lists post.delete as not billed, while the Activity API introduction says each delivered post event is billed as a post (both checked 22/11/2026).
Not through a detection API. A deletion event can only carry text that was captured before the post went. For older deletions, try the Wayback Machine, archive.today, quotes and screenshots, or your own X data archive. The free methods are on our deleted tweets page.
Xanguard catches deletions with the same continuous monitoring that detects new posts, and new posts reach the socket with a median under 250 ms. We have not published a measured delay for deletions, so we do not quote one.
It includes the tweet ID and the text Xanguard saw when the post was live. Both are null when a deletion is confirmed but the specific post could not be resolved, so you still know the account removed something. Images are not part of the deletion event.
Yes, through the separate consumer product: deleted-tweet alerts are an opt-in on paid Tweet Alerts plans in @Xanguard_bot. Setup is on xanguard.tech/deleted-tweets. The B2B API on this page is for your own code.
Deletion detection needs public posts. Protected accounts hide their posts from everyone who does not follow them, and X's Activity API does not deliver posts from protected accounts either. When an account is suspended or deactivated, all its posts disappear at once; check the profile before treating that as deletions.
It depends on your jurisdiction, what you store, and the terms you agreed to. X's compliance documentation asks developers who store X content to make sure it reflects user intent and the current state of content on X. If you build on X's API, follow its developer agreement. This is not legal advice.
On Xanguard, deleted-tweet events are included in every B2B plan: $49 a month for 10 handles, $129 for 50, $449 for 250, $1,125 for 1,000, and $449 plus $0.90 per handle over 250 for any exact count up to 10,000. On X's Activity API, post.delete is listed as not billed, but each post.create event you also need costs $0.005.