Overview
The tweet command fetches a specific tweet by ID or URL and displays it along with its replies. This is useful for viewing tweet threads, reading conversations, and analyzing engagement.
twitter tweet TWEET_ID [OPTIONS]
Arguments
The tweet identifier. Can be either:
Numeric tweet ID: 1234567890123456789
Full tweet URL: https://twitter.com/user/status/1234567890123456789
Shortened URL: The ID will be extracted automatically
Options
Maximum number of replies to fetch. The original tweet is always included. Alias: -n
Output tweet and replies as JSON instead of formatted display.
Examples
By tweet ID
By URL
Limit replies
More replies
JSON output
# View a tweet using its numeric ID
twitter tweet 1234567890123456789
The command displays:
Main tweet - Detailed view with full text, author info, and engagement metrics
Replies section - A formatted table of replies (if any)
Example Output
π Getting Twitter cookies...
π¦ Fetching tweet 1234567890123456789...
β
Fetched 21 tweets in 1.2s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β @elonmusk β’ Elon Musk β
β β Verified β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Excited to announce a major update to our platform! β
β Check out the latest feature updates. β
β β
β π https://example.com β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β€οΈ 12.3K π 2.1K π¬ 456 π 1.2M views β
β π 2024-03-09 14:32:00 UTC β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π¬ Replies:
π¬ Replies β 20
βββββββββββββββ³βββββββββββββββββββββββββ³βββββββ³βββββββ³βββββββ
β Author β Reply β β€οΈ β π β π¬ β
β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©
β @sama β This is amazing!... β 234 β 12 β 8 β
β @karpathy β Looking forward to... β 567 β 34 β 15 β
βββββββββββββββ΄βββββββββββββββββββββββββ΄βββββββ΄βββββββ΄βββββββ
JSON Output Structure
[
{
"id" : "1234567890123456789" ,
"text" : "Excited to announce a major update..." ,
"author" : "elonmusk" ,
"author_name" : "Elon Musk" ,
"created_at" : "2024-03-09T14:32:00.000Z" ,
"likes" : 12300 ,
"retweets" : 2100 ,
"replies" : 456 ,
"views" : 1200000 ,
"url" : "https://twitter.com/elonmusk/status/1234567890123456789"
},
{
"id" : "1234567890123456790" ,
"text" : "This is amazing!" ,
"author" : "sama" ,
"is_reply" : true ,
"reply_to" : "1234567890123456789"
}
]
The first element in the JSON output is always the main tweet. Subsequent elements are replies, ordered by relevance or recency.
You can extract tweet IDs from URLs easily. The command automatically handles both formats: # These are equivalent:
twitter tweet 1234567890123456789
twitter tweet https://twitter.com/user/status/1234567890123456789
Use Cases
Read threads - View entire conversation threads and replies
Analyze engagement - See which replies got the most engagement
Content research - Gather tweet data including replies for analysis
Monitor discussions - Track conversations around important tweets
Quote extraction - Export tweet text and replies for documentation
There are several ways to get a tweet ID:
From the URL - Click βShareβ β βCopy linkβ, the ID is in the URL
From search results - Use twitter search --json and extract IDs
From timeline - Use twitter feed --json and find the tweet ID
Example: Finding and viewing a tweet
# Search for a tweet and extract its ID
twitter search "from:elonmusk latest announcement" --json | jq '.[0].id'
# Then view it with replies
twitter tweet < id_from_abov e >
search - Search for tweets by keyword
feed - View your timeline
user - View a userβs profile