twitterapi.io is an independent third-party service. Not affiliated with X Corp.

[ Keywords / deleted-tweet-search ]·4 min read

How to Search for Deleted Tweets

By Alex Chen·Live API capability: Real-time webhook delivery captures tweets within ~1 second of posting — well before most deletions happen

Once a tweet is deleted, it disappears from X (Twitter) within seconds. The X API will not return it — you'll get an empty result or a 404. But "gone from X" doesn't always mean "gone for good." If someone, somewhere, cached the tweet before the delete, it's likely still accessible.

There are three reliable routes to find a deleted tweet in 2026: the Internet Archive's Wayback Machine, Politwoops (for elected officials only), and third-party tweet caches via APIs like TwitterAPI.io that retain historical data with some delay. Each route catches a different subset of deletions.

Below is each method, success rate, and the realistic edge cases — including what to do when none of the methods turn up the tweet you're looking for.

Method 1: The Internet Archive Wayback Machine

The Wayback Machine archives publicly accessible web pages, including individual tweet URLs. If anyone snapshotted the tweet (or the user's profile page when it contained the tweet) before deletion, the snapshot persists.

How to search: paste the tweet URL into `https://web.archive.org/web/*/twitter.com/USERNAME/status/TWEET_ID` and pick a date before the deletion. Profile-page snapshots also catch many tweets indirectly — search `https://web.archive.org/web/*/twitter.com/USERNAME`.

Success rate: ~10-20% for normal users (their content rarely gets archived). 60-80% for high-profile accounts (journalists, politicians, celebrities — these get snapshotted often).

Method 2: Politwoops (Politicians Only)

ProPublica's Politwoops project archives deleted tweets from elected officials and government accounts. Coverage includes US Congress, governors, and many international leaders.

How to use: browse `https://projects.propublica.org/politwoops/` and filter by politician. Each entry shows the original tweet text, timestamp posted, and when deleted.

Success rate: ~95% for tweets from indexed accounts — Politwoops streams the official accounts list in real-time and saves immediately. Limitation: only politicians. Most regular users not covered.

Method 3: Third-Party Tweet Caches (API)

Some third-party APIs (TwitterAPI.io and similar) retain tweet data for several months after seeing them. If your search query matched the deleted tweet while it was live, the data is in their cache and you can retrieve it.

How it works: query the third-party API's search endpoint with the same query you used originally (or by tweet ID if you have it). The response includes tweets that were live at the time of indexing but no longer live now.

Success rate: ~40-60% if the tweet matched a query you previously ran. Near 0% if you never queried for related content (the cache populates by query, not by full firehose). This is why monitoring matters — once a tweet is in your audit log, you can recover it for free.

Cost: $0.15 per 1,000 tweet results through pay-per-call providers. No subscription minimum.

What Doesn't Work (Save Your Time)

Google Search of the tweet URL. Sometimes works for highly-shared tweets that got crawled into Google's index. Most tweets aren't in Google's index. Try it as a backup — `site:twitter.com/USERNAME deleted tweet text`.

Asking the X API directly. The official API does not return deleted content. If you have the tweet ID, you'll get 404. There is no "deleted" endpoint.

Account recovery tools. None of these recover deleted tweets — they recover the account itself. Different problem.

Subpoenaing X. Twitter (X) retains deletion logs internally but does not release them to non-government parties. Even US discovery typically yields nothing useful at this layer.

Setting Up an Audit Trail Going Forward

If you anticipate needing to recover a class of tweets (e.g., from a specific account for compliance), the only reliable approach is to actively stream and archive those tweets before they're deleted.

Setup: webhook subscribed to the account list or keyword filter rule. Each new tweet streams to your server within seconds. Save the tweet object (id, text, created_at, author, media URLs) to your own storage.

Cost: TwitterAPI.io webhook streaming is included in pay-per-call rates — about $0.15 per 1,000 tweets monitored. For a 50-account watchlist averaging 5 tweets/day each = 7,500/month = $1.13/month.

Once you have your own archive, deleted tweet "search" becomes a database query on your storage. 100% reliable for accounts you covered.

python
import requests

# Example: stream a specific account's tweets to your own archive.
API_KEY = "your_api_key"
HEADERS = {"X-API-Key": API_KEY}

# Register a webhook rule to watch @nasa tweets.
resp = requests.post(
    "https://api.twitterapi.io/v1/webhook_rules",
    headers=HEADERS,
    json={
        "rule": "from:nasa",
        "webhook_url": "https://your-server.example.com/tweet-events",
    },
    timeout=30,
)
print(resp.json())

# Now any tweet from @nasa pushes to your endpoint within ~1 second of posting,
# even if it's deleted minutes later. Your endpoint saves it to durable storage —
# the deletion doesn't affect your archive.
#
# Later, search the archive:
#   SELECT * FROM archived_tweets WHERE author='nasa' AND created_at > '2025-01-01'
Try it on a real API key

Google sign-in for free starter credits. No application queue, no card.

Frequently asked

Can I see deleted tweets from any account?

Only if someone (Internet Archive, Politwoops for politicians, or a third-party API cache) recorded them before deletion. The X API itself does not return deleted content. For accounts you control or monitor in advance, you can set up your own archive.

Is searching deleted tweets legal?

Yes for publicly-posted tweets you saw or could have seen while they were live. Tweets were public statements; archiving public content is generally legal. Not legal: using the archived content for harassment, defamation, or otherwise unlawful purposes.

How long do third-party tweet caches keep deleted content?

Most providers retain seen tweets for 30 days to 24 months depending on plan. After expiry, the data is purged for storage cost reasons. For permanent archives, you need your own storage.

Why can't Google find deleted tweets reliably?

Google crawls Twitter selectively — mostly viral or high-PageRank content. Most regular users' tweets are never indexed before deletion. Google's index is also not retained when the source URL returns 404, so even crawled tweets disappear from Google search over weeks.

Can I undelete my own tweets?

No — once you delete a tweet, X removes it from its servers. Your only options are: paste the text into a new tweet (not the same — different ID, timestamp), or recover from a third-party cache (if anyone recorded it). The recovery is read-only — the tweet does not return to its original URL.

Continue reading

More keyword guides
Build the thing you came here to research

Starter credits cover end-to-end testing. No card, no application queue.