Deleted Tweet Detection API: Real-Time Alerts When an X Post Is Deleted

Get an API key See pricing

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

  1. 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.
  2. Notice. The same continuous monitoring that detects new posts also notices when a stored post is gone.
  3. Event. You get a twitter.tweet.deleted frame 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)

OptionNew deletes as they happenKeeps the textWhich accountsDeliveryPriceLimits
Xanguard B2B APIYesYes, when the post was resolvedPublic accounts you addWebSocketIncluded, from $49/mo for 10 handles5 connections per key, 10 at 125+ handles
Xanguard Tweet Alerts (Telegram)YesYes, for tweets it sawAccounts you trackTelegramOpt-in on paid plans, from $10/mo for 5Telegram only, not for code
X Activity API post.deleteYesNot stated in X's introductionAny public user ID; protected excludedWebhook or HTTP stream"Not billed" on the pricing page; "billed as a Post" in the introductionX developer account; 1,500 self-serve subscriptions
X compliance streamYes (delete event)Tells you to remove your stored copyPosts in your datasetStreamEnterprise accessEnterprise only
TweetStreamDeletes listed in its post feedNot statedAccounts you trackWebSocket, DiscordFrom $199/mo for 503 connections on the $199 plan
twitterapi.io StreamNot listed on its stream pagen/aAccounts you trackWebSocket, webhookFrom $149/mo for 50
Your own codeOnly as often as you re-checkYes, if you stored itAny public accountYour ownRead costs grow with posts times checksX read cap: 3 million posts a month
Wayback Machine, archive.todayNoOnly if someone saved itAnyWebFreeRecovery, 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."
    }
  }
}
FieldMeaning
d.eventAlways twitter.tweet.deleted for a deletion
d.event_idevt_del_<handle>_<detected_at_ms>. Use it to drop duplicates
d.event_timeWhen we detected the deletion, Unix milliseconds
d.task_info.handleThe tracked account that deleted the post
d.data.tweet_idThe deleted post's ID, or null if we could not resolve which post went
d.data.textThe 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.

CaseWhat you see on XWhat it meansX compliance event
Post deletedThe post link stops working; the profile is still thereThe author removed one postdelete
Account deactivated"This account doesn't exist"Every post is hidden; it can come back if the owner reactivatesuser_delete
Account suspendedA suspension noticeX hid the account; posts may return on unsuspensionsuspend
Account protectedThe profile with a lock iconPosts are hidden from non-followers, not deletedprotect
Handle renamedThe old URL says the account doesn't existSame account, new handle; search the display namen/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

  1. 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.
  2. Trading terminals and bots. Show a "deleted" badge under a post your users already saw. See the X feed for trading terminals.
  3. Public figures and newsrooms. Keep a record of what was said before it was taken back.
  4. 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.

HandlesPrice per monthPer handleWebSocket connections
10$49$4.905
25$99$3.965
50$129$2.585
125$299$2.3910
250$449$1.8010
500$675$1.3510
750$899$1.2010
1,000$1,125$1.1310
Any count 251 to 10,000$449 + $0.90 per handle over 25010

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

Is there an API that detects deleted tweets?

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).

Does the official X API tell you when a tweet is deleted?

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).

Can I see a tweet that was deleted before I started monitoring?

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.

How fast is a deleted tweet detected?

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.

Does the deletion event include the original text and images?

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.

Can I get deleted-tweet alerts in Telegram?

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.

Does it work for protected or suspended accounts?

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.

Is it legal to archive and alert on deleted public tweets?

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.

How much does deleted tweet monitoring cost?

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.

Catch the next deletion in your own code

Track the accounts before they delete. Deleted-tweet events, tweets, profile changes and follows are on every plan, from $49 a month for 10 handles, paid in SOL.