X (Twitter): Get a tweet
One tweet on X (Twitter), by its address or its id: its text, counts, media, author, the tweet it quotes or answers, read with your connected X account.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "x", "operation": "tweets/get", "options": { "tweet": "https://x.com/NASA/status/2122000000000000001" } }'
An example answer, from the contract. Run it on your own input with your API key.
{ "object": "run", "id": "run_mn3rrpopd6s6ehpat52ukwawhu", "livemode": true, "source": "x", "operation": "tweets/get", "version": "1.4.0", "schema_url": "https://api.lobstr.io/v2/catalog/x/tweets/get", "options": { "tweet": "https://x.com/NASA/status/2122000000000000001" }, "fields": null, "status": "succeeded", "count": 1, "has_more": true, "next": { "source": "x", "operation": "tweets/get", "options": { "tweet": "https://x.com/NASA/status/2122000000000000001", "profile": "nasa", "cursor": "gAAAAABpGn1a_sealed_cursor_of_the_next_page_as_the_answer_gives_it_0123456789" } }, "cost": { "credits": 1 }, "results": [ { "object": "tweet", "id": "2122000000000000001", "url": "https://x.com/NASA/status/2122000000000000001", "text": "Liftoff of the resupply mission to the International Space Station. https://t.co/abc123", "language": "en", "created_at": "2026-11-15T18:42:10Z", "reply_count": 312, "retweet_count": 1840, "quote_count": 96, "like_count": 12950, "bookmark_count": 410, "view_count": 1204500, "author": { "id": "11348282", "handle": "NASA", "name": "NASA", "url": "https://x.com/NASA", "description": "Exploring the secrets of the universe for the benefit of all.", "description_language": "en", "description_urls": [], "location": "Pale Blue Dot", "website_url": "https://www.nasa.gov/", "created_at": "2007-12-19T20:20:32Z", "follower_count": 86000000, "following_count": 170, "tweet_count": 73000, "media_count": 28000, "like_count": 16000, "is_blue_verified": true, "is_verified": false, "verified_type": "government", "is_protected": false, "is_possibly_sensitive": false, "professional": null, "avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg", "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1763000000", "avatar_shape": "square", "pinned_tweet_ids": [], "affiliation": null }, "in_reply_to": null, "reply_policy": null, "is_quote": false, "quoted_tweet": null, "retweeted_tweet": null, "urls": [ { "url": "https://www.nasa.gov/live", "display": "nasa.gov/live", "short_url": "https://t.co/abc123" } ], "hashtags": [], "symbols": [], "smart_tags": [], "mentions": [], "media": [], "card": null, "article": null, "place": null, "community_note": null, "community_id": null, "grok_conversation": null, "posted_with": null, "is_paid_promotion": null, "has_ai_generated_media": null, "is_possibly_sensitive": false, "is_long": false, "edit": { "tweet_ids": [ "2122000000000000001" ], "editable_until": "2026-11-15T19:42:10Z", "edits_remaining": 5 }, "ids": { "tweet_id": "2122000000000000001", "conversation_id": "2122000000000000001", "author_id": "11348282", "quoted_tweet_id": null }, "source_url": "https://x.com/NASA/status/2122000000000000001", "observed_at": "2026-11-16T15:00:00Z" } ] }
99 fields per tweet
Every call returns them for each record, in the results of its JSON answer.
Get a tweet
99 fields- object
- text
- tweet
- id
- id
- The tweet's id.
2122000000000000001- text
- text
- The whole text, a long tweet's included (is_long). Links are X's short ones (t.co), given in full in `urls` and `media`.
- Liftoff of the resupply mission to the International Space Station. https://t.co/abc123
- language
- text
- The language X detected: ISO 639-1, or X's own codes (und, zxx, qme...).
- en
What it costs
Billed by the call: 1 credit. Pick how many calls a month.
1 credit a call
Calls a month
100
Built to run
Every call counts; a day is green at 99.5% successful.
- Successful calls
- 100.00%
- Median call
- 2.7 s
A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.
Frequently asked questions
What people ask before calling x/tweets/get.
Get a tweet
When do I use it?
You have a tweet's address (https://x.com/nasa/status/...) or its id and want the tweet as it is now: its text, its counts of replies, reposts, likes and views, its media, its author. One call, one tweet. A reply says which tweet it answers (in_reply_to); a quote comes with the tweet quoted. It needs one of your X accounts connected (POST /v2/accounts), and X counts each account's requests: about 300 tweets for 15 minutes. For a tweet's replies, use x/replies/list; for an account's tweets, x/tweets/list; for tweets about a subject, x/tweets/search.
What do I give it?
tweet(required): The tweet: its address on x.com (https://x.com/nasa/status/2122404409292337592) or its id alone (2122404409292337592).account: The connected X account to read with (GET /v2/accounts). Left out, the platform takes the first of your X accounts with a free slot.
What does it return?
One tweet on X (Twitter), by its address or its id: its text, counts, media, author, the tweet it quotes or answers, read with your connected X account. Every record has the same fields, empty ones included: they are all listed above.
Can I run it on a list?
Yes: call it once per item, or run it as a batch, on a list and every day if you like, from the button at the top of this page.
Pricing
What does a call cost?
1 credit per call that returns the tweet. A failed call (no such tweet, a tweet X no longer shows) and a busy account are free.
When is a call free?
- a call that fails
- a call the account is too busy for (it answers with retry_after)
Errors
What can go wrong?
invalid_tweet(422): Pass a tweet's address (https://x.com/nasa/status/2122404409292337592) or its id.tweet_not_found(404): X has no tweet with this id (not charged).tweet_unavailable(404): X no longer shows this tweet: deleted, or its author is suspended or protected from your connected X account (not charged).account_required(422): You have no connected X account. Connect one with POST /v2/accounts {"site": "x", "cookies": ...}: the cookies of a browser where you are logged in to x.com (https://docs.lobstr.io/accounts).account_rate_limited(429, retry): This X account cannot read a tweet right now: it pauses a couple of seconds between two tweets, and X counts each account's requests (about 300 tweets for 15 minutes).retry_aftersays when it can again, in seconds. Retrying before then gets this same answer: nothing is queued.account_unusable(409): X logged this account out, or locked it. Open x.com in the browser the account comes from, then connect it again with POST /v2/accounts and fresh cookies (the same account keeps its id).site_unavailable(503, retry): X did not answer properly; retry later (not charged).unexpected_answer(424): X answered in a shape we do not read yet; we are told and fix it (not charged).
How long can a call take?
30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.
API and agents
Can my AI agent run it?
Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs x/tweets/get. Its page for agents, in Markdown: x/tweets/get.md.
Where is its full description?
The contract, as JSON: https://api.lobstr.io/v2/catalog/x/tweets/get: every option, every field, the price and the errors. This page is drawn from it.
Ready to call it?
An API key in a minute, then the call above, from your code or your agent.