# X (Twitter): Get a tweet

`x/tweets/get` · version 1.4.0 · pilot · 1 credits a call

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.

Categories: Social media

## When to use

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.

## Call

```bash
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/2122404409292337592"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 1, "has_more": false, "next": null,
 "cost": {"credits": 1}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below).

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path (`title`, `address.city`); `object`, `id` and `position` always come. Left out: every field. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `tweet` | string | yes |  | The tweet: its address on x.com (https://x.com/nasa/status/2122404409292337592) or its id alone (2122404409292337592). |
| `account` | string |  |  | 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. |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"tweet"` |  |
| `id` | string | The tweet's id. |
| `url` | string (uri) | The tweet on x.com. |
| `text` | string | null | 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`. |
| `language` | string | null | The language X detected: ISO 639-1, or X's own codes (und, zxx, qme...). |
| `created_at` | string | null (date-time) | When it was posted, UTC. |
| `reply_count` | integer | null |  |
| `retweet_count` | integer | null | Reposts. |
| `quote_count` | integer | null |  |
| `like_count` | integer | null |  |
| `bookmark_count` | integer | null |  |
| `view_count` | integer | null | Null when X shows no view count for it. |
| `author` | object | null |  |
| `author.id` | string | The account's id. |
| `author.handle` | string | null | Its @handle, without the @. |
| `author.name` | string | null |  |
| `author.url` | string | null (uri) |  |
| `author.description` | string | null | The bio. |
| `author.description_language` | string | null |  |
| `author.description_urls` | array | The links of the bio |
| `author.location` | string | null | As the account wrote it. |
| `author.website_url` | string | null | The profile's link, in full. |
| `author.created_at` | string | null (date-time) |  |
| `author.follower_count` | integer | null |  |
| `author.following_count` | integer | null |  |
| `author.tweet_count` | integer | null |  |
| `author.media_count` | integer | null |  |
| `author.like_count` | integer | null | The tweets the account liked. |
| `author.is_blue_verified` | boolean | null | The blue check of a paying subscriber. |
| `author.is_verified` | boolean | null | X's earlier verification. |
| `author.verified_type` | string | null | business or government, when X says so. |
| `author.is_protected` | boolean | null |  |
| `author.is_possibly_sensitive` | boolean | null |  |
| `author.professional` | object | null |  |
| `author.professional.type` | string | null | business or creator. |
| `author.professional.categories` | array |  |
| `author.avatar_url` | string | null |  |
| `author.banner_url` | string | null |  |
| `author.avatar_shape` | string | null | circle, square (organizations), hexagon. |
| `author.pinned_tweet_ids` | array of string |  |
| `author.affiliation` | object | null | The label the account carries next to its name: the organization whose badge it has, or X's own word on it (Automated); null without one. |
| `author.affiliation.name` | string | null | The organization's name on the badge. |
| `author.affiliation.url` | string | null | The organization's profile, as X links it. |
| `author.affiliation.badge_url` | string | null | The badge's image. |
| `author.affiliation.type` | string | null | business_label for an organization's badge, automated_label for an account X labels as automated. |
| `author.affiliation.detail` | string | null | The label's own sentence when it has one: Automated by @marc_krenn. |
| `author.affiliation.account` | object | null | The account the label's sentence names (who runs an automated account); null without one. |
| `author.affiliation.account.id` | string |  |
| `author.affiliation.account.handle` | string | null |  |
| `in_reply_to` | object | null | The tweet it replies to; null when it is not a reply. |
| `in_reply_to.tweet_id` | string | null |  |
| `in_reply_to.user_id` | string | null |  |
| `in_reply_to.handle` | string | null |  |
| `reply_policy` | string | null | Who may reply, when the conversation's author restricted it, in X's own word: ByInvitation (the accounts the author follows or mentions), Community (the members of its community). Null when anyone may reply. |
| `is_quote` | boolean | null |  |
| `quoted_tweet` | object | null | The tweet it quotes, with a tweet's fields but position, quoted_tweet, retweeted_tweet, source_url and observed_at. Null when it quotes none, or one X no longer shows (ids.quoted_tweet_id still says which). |
| `retweeted_tweet` | object | null | The tweet it reposts, with the same fields as quoted_tweet. |
| `urls` | array |  |
| `urls[].url` | string | null | The link in full. |
| `urls[].display` | string | null | As the page shows it. |
| `urls[].short_url` | string | null | X's t.co link, as it stands in the text. |
| `hashtags` | array | Without the #. |
| `symbols` | array | Cashtags, without the $. |
| `smart_tags` | array | The assets the tweet tags, a kind of tag X added in November 2026 (tokens so far); empty on most tweets. Not the cashtags of `symbols`. |
| `smart_tags[].text` | string | null | The tag as the text writes it: a chain and the asset on it (hyperliquid:native). |
| `smart_tags[].name` | string | null | The asset's name (Hyperliquid). |
| `smart_tags[].ticker` | string | null | Its ticker (HYPE). |
| `mentions` | array |  |
| `mentions[].id` | string | null |  |
| `mentions[].handle` | string | null |  |
| `mentions[].name` | string | null |  |
| `media` | array |  |
| `media[].id` | string | null |  |
| `media[].type` | string | null | photo, video or animated_gif. |
| `media[].url` | string | null | The image, or a video's poster. |
| `media[].page_url` | string | null |  |
| `media[].width` | integer | null |  |
| `media[].height` | integer | null |  |
| `media[].alt_text` | string | null |  |
| `media[].duration_ms` | integer | null |  |
| `media[].video_url` | string | null | The video's file of the highest bitrate. |
| `media[].view_count` | integer | null |  |
| `card` | object | null | The preview X draws under a tweet for a link, a poll or a player. |
| `card.type` | string | null | X's name of the card: summary, summary_large_image, player... |
| `card.url` | string | null |  |
| `card.title` | string | null |  |
| `card.description` | string | null |  |
| `card.domain` | string | null |  |
| `card.image_url` | string | null |  |
| `article` | object | null | An X Article attached to the tweet (its title and preview, not its text). |
| `article.id` | string | null |  |
| `article.title` | string | null |  |
| `article.preview_text` | string | null |  |
| `article.cover_url` | string | null |  |
| `article.published_at` | string | null (date-time) |  |
| `article.modified_at` | string | null (date-time) |  |
| `place` | object | null | The place its author tagged it with (Ozuoba, Nigeria); null without one, which is most tweets. X gives the place and the box around it, never the point it was posted from. |
| `place.id` | string | null | X's id of the place. |
| `place.name` | string | null |  |
| `place.full_name` | string | null | The name with its region or country, as the page writes it. |
| `place.type` | string | null | city, admin, country, neighborhood, poi. |
| `place.country` | string | null |  |
| `place.country_code` | string | null | Two letters. |
| `place.bounding_box` | array | The corners of the box around the place, each longitude then latitude. |
| `community_note` | object | null | The Community Note X shows under the tweet: context written by readers, shown once enough of them rated it helpful. Null when the tweet carries none. |
| `community_note.id` | string | The note's id. |
| `community_note.title` | string | null | X's own heading over the note: Readers added context they thought people might want to know. |
| `community_note.text` | string | null | The note's text; its links are X's short ones (t.co), given in full in `urls`. |
| `community_note.language` | string | null | The note's language, when X says it: en. |
| `community_note.url` | string | null | The note's own page on X. |
| `community_note.urls` | array |  |
| `community_note.urls[].url` | string | null |  |
| `community_note.urls[].short_url` | string | null |  |
| `community_id` | string | null | The id of the X community the tweet was posted in (x.com/i/communities/<id>); null for a tweet posted to everyone. |
| `grok_conversation` | array | null | The Grok conversation the tweet shares, when it shares one: its messages in X's own order. X names no speaker; on every conversation read the first message is the person's question and the second Grok's answer. Null for a tweet that shares none. |
| `grok_conversation[].text` | string | null | The message, as written (Grok's answers are in Markdown). |
| `grok_conversation[].media_urls` | array of string | The images the message carries. |
| `grok_conversation[].source_urls` | array of string | The web pages Grok read for this message, in X's order, repeats included. |
| `grok_conversation[].source_tweet_ids` | array of string | The posts on X Grok read for this message. |
| `grok_conversation[].about_tweet_id` | string | null | The post the message is about, when it asks Grok about one (x/tweets/get reads it). |
| `posted_with` | string | null | The app it was posted with, when X says it: Twitter Web App. |
| `is_paid_promotion` | boolean | null | The author's own disclosure of a paid partnership. |
| `has_ai_generated_media` | boolean | null | X's label of media made with AI. |
| `is_possibly_sensitive` | boolean | null |  |
| `is_long` | boolean | A tweet longer than 280 characters; text holds it whole. |
| `edit` | object | null |  |
| `edit.tweet_ids` | array of string | Its versions, the first to the last. |
| `edit.editable_until` | string | null (date-time) |  |
| `edit.edits_remaining` | integer | null |  |
| `ids` | object |  |
| `ids.tweet_id` | string |  |
| `ids.conversation_id` | string | null | The first tweet of its thread. |
| `ids.author_id` | string | null |  |
| `ids.quoted_tweet_id` | string | null |  |
| `source_url` | string (uri) | The tweet's page on x.com. |
| `observed_at` | string (date-time) | When it was read, UTC. |

Example:

```json
{
  "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"
}
```

## Price

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.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `invalid_tweet` | 422 | no | Pass a tweet's address (https://x.com/nasa/status/2122404409292337592) or its id. |
| `tweet_not_found` | 404 | no | X has no tweet with this id (not charged). |
| `tweet_unavailable` | 404 | no | X no longer shows this tweet: deleted, or its author is suspended or protected from your connected X account (not charged). |
| `account_required` | 422 | no | 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 | yes | 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_after` says when it can again, in seconds. Retrying before then gets this same answer: nothing is queued. |
| `account_unusable` | 409 | no | 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 | yes | X did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | X answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.4.0** (2026-11-22): New field `grok_conversation`: the Grok conversation a tweet shares, its messages in order with the images, web pages and posts each carries.
- **1.3.0** (2026-11-20): Two new fields in the author's `affiliation`: `detail`, the label's own sentence (Automated by @x), and `account`, the account that sentence names.
- **1.2.0** (2026-11-20): Two new fields on a tweet: `community_note`, the Community Note X shows under it (its text, links and page), and `community_id`, the X community it was posted in.
- **1.1.0** (2026-11-19): New field `reply_policy`: who may reply to the tweet when its conversation's author restricted it, in X's own word (ByInvitation, Community); null when anyone may.
- **1.0.0** (2026-11-19): First version: one tweet by its address or its id, with the same fields as a tweet of x/tweets/list and x/tweets/search, read with your own connected X account.

Schema: https://api.lobstr.io/v2/catalog/x/tweets/get · All operations: https://api.lobstr.io/v2/catalog.md
