LurkAPI
Docs · Tweet

Tweet

One tweet: text, author, likes, replies, reposts, quotes, bookmarks, views, media and the tweet it quotes.

1 credit per callFresh within 5 minutesMCP tool: twitter_tweet
GEThttps://api.lurkapi.com/v1/twitter/tweet

Example response

When to use this

Use it to check how a post performed or to pull its text and media. Pass the tweet's URL (x.com or twitter.com) or its id. Videos come with playable MP4 files in media[].variants, best quality first.

text is what x.com shows: long posts in full and t.co links expanded. A retweet shows the original's text, media and counts, and retweeted_tweet holds the original with its author. For a quote, quoted_tweet holds the quoted tweet. views is null on tweets from before 2023.

When X's main source is busy, we answer from its embed data instead. Then retweets, quotes, bookmarks, views and author.followers are null, and long posts are cut to 280 characters.

Deleted tweets, tweets from protected accounts and age-restricted tweets return 404 not_found.

Example request

Copy one and replace YOUR_API_KEY with your API key (get one free). The code versions read the key from the LURKAPI_API_KEY environment variable instead.

Language

Parameters

Add them to the URL after a ?. Join several with &.

ParameterDescription
url
stringrequired
The tweet's URL, e.g. https://x.com/NASA/status/2104593672624886205 (twitter.com links work too), or its numeric id.
Example
https://x.com/NASA/status/2104593672624886205

Example response

A real response, captured from the live API. Lists are trimmed to a couple of items, and long text such as media links is cut short with ….

Show the example response (2 KB)
{
  "success": true,
  "credits_remaining": 999966,
  "credits_charged": 1,
  "id": "2104593672624886205",
  "url": "https://x.com/NASA/status/2104593672624886205",
  "text": "How do we respond when we detect an asteroid that could pose a threat to…",
  "created_at": "2026-09-28T15:26:47.000Z",
  "lang": "en",
  "source": null,
  "author": {
    "id": "11348282",
    "handle": "NASA",
    "name": "NASA",
    "avatar": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
    "verified": true,
    "verified_type": "Government",
    "followers": 92378647
  },
  "counts": {
    "likes": 3312,
    "replies": 225,
    "retweets": 553,
    "quotes": 45,
    "bookmarks": 278,
    "views": 743122
  },
  "media": [
    {
      "type": "video",
      "url": "https://pbs.twimg.com/media/HTUEyn0XkAALVB_.png",
      "width": 405,
      "height": 720,
      "duration_ms": 38605,
      "variants": [
        {
          "url": "https://video.twimg.com/amplify_video/2104593621043314689/vid/avc1/608x1…",
          "content_type": "video/mp4",
          "bitrate": 2176000
        },
        {
          "url": "https://video.twimg.com/amplify_video/2104593621043314689/vid/avc1/480x8…",
          "content_type": "video/mp4",
          "bitrate": 950000
        },
        {
          "url": "https://video.twimg.com/amplify_video/2104593621043314689/vid/avc1/320x5…",
          "content_type": "video/mp4",
          "bitrate": 632000
        },
        {
          "url": "https://video.twimg.com/amplify_video/2104593621043314689/pl/iMMWqCJ1OZowER7i.m3u8?tag=16&v=2b3",
          "content_type": "application/x-mpegURL",
          "bitrate": null
        }
      ]
    }
  ],
  "hashtags": [],
  "mentions": [],
  "links": [
    "https://go.nasa.gov/4AUCQ3Z"
  ],
  "poll": null,
  "article": null,
  "reply_to_id": null,
  "reply_to_handle": null,
  "conversation_id": "2104593672624886205",
  "quoted_id": null,
  "possibly_sensitive": false,
  "quoted_tweet": null,
  "retweeted_tweet": null
}

Response fields

Every field in a successful response, and what it means. A name with [] belongs to each item of a list: media[].type is the type of every item in media. null means there's no value.

Show all 155 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
idstringTweet id, e.g. 2104593672624886205.
urlstringThe tweet on x.com.
textstringThe text as x.com shows it: long posts in full, t.co links expanded, without a reply's leading @mentions or the trailing media link. A retweet shows the original's text. Empty for media-only tweets.
created_atstringWhen it was posted, ISO 8601.
langstringcan be nullLanguage as X detects it, e.g. en (und when it can't tell); null if unknown.
sourcestringcan be nullThe app it was posted from, e.g. Twitter for iPhone; null if X doesn't say.
authorobjectWho posted it.
author.idstringNumeric user id. It stays the same when the handle changes.
author.handlestringUsername (handle), without @.
author.namestringDisplay name.
author.avatarstringcan be nullProfile picture URL, 400×400; null if none.
author.verifiedbooleanHas the blue check (X Premium).
author.verified_typestringcan be nullBusiness (gold check, a verified organization) or Government (grey check); null otherwise.
author.followersnumbercan be nullFollowers when fetched; null when X's main source was busy and we used its embed data instead.
countsobjectEngagement when fetched. Exact numbers, not rounded. A retweet shows the original's, as x.com does.
counts.likesnumberLikes.
counts.repliesnumberReplies.
counts.retweetsnumbercan be nullReposts (retweets); null when X's main source was busy and we used its embed data instead.
counts.quotesnumbercan be nullQuote posts; null when X's main source was busy and we used its embed data instead.
counts.bookmarksnumbercan be nullBookmarks; null when X's main source was busy and we used its embed data instead.
counts.viewsnumbercan be nullViews; null on tweets from before 2023 (X didn't count them then), and null when X's main source was busy and we used its embed data instead.
mediaobject[]Attached photos, videos and GIFs, in order. Empty if none.
media[].typestringphoto, video or gif (X plays GIFs as silent looping MP4s).
media[].urlstringThe image; for videos and GIFs, the poster (thumbnail) image.
media[].widthnumberOriginal width in pixels.
media[].heightnumberOriginal height in pixels.
media[].duration_msnumbercan be nullVideo length in milliseconds; null for photos and GIFs.
media[].variantsobject[]Playable files for videos and GIFs: MP4s from highest to lowest bitrate, then the HLS playlist. Empty for photos.
media[].variants[].urlstringFile URL on video.twimg.com.
media[].variants[].content_typestringvideo/mp4, or application/x-mpegURL for the HLS playlist.
media[].variants[].bitratenumbercan be nullBits per second; null for the HLS playlist.
hashtagsstring[]Hashtags in the text, without #.
mentionsstring[]Usernames @mentioned, including the ones a reply is addressed to.
linksstring[]Links in the text, expanded (not t.co). The tweet's own photos and videos aren't included.
pollobjectcan be nullThe tweet's poll; null if it has none.
poll.optionsobject[]The choices, in order.
poll.options[].labelstringThe choice's text.
poll.options[].votesnumbercan be nullVotes for it, exact; null if X doesn't show them.
poll.ends_atstringcan be nullWhen voting ends (or ended), ISO 8601; null if X doesn't say.
poll.closedbooleanVoting has ended, so the counts are final.
articleobjectcan be nullAn X Article (long-form post): title, preview, body and cover. Its tweet's text is just the article's link. null for other tweets.
article.titlestringThe article's title.
article.preview_textstringcan be nullThe opening lines X shows on the article's card; null if none.
article.textstringcan be nullThe full body as plain text, blocks separated by blank lines. null in user-tweets, where X sends only the preview.
article.coverstringcan be nullCover image URL; null if none.
reply_to_idstringcan be nullId of the tweet this replies to; null if it isn't a reply.
reply_to_handlestringcan be nullUsername of the account this replies to; null if it isn't a reply.
conversation_idstringcan be nullId of the thread's first tweet (its own id if it starts one); null if X doesn't say.
quoted_idstringcan be nullId of the tweet this one quotes; null if it isn't a quote.
possibly_sensitivebooleanX marks the media as possibly sensitive.
quoted_tweetobjectcan be nullThe tweet this one quotes (without its own quoted or retweeted tweet); null if none or it's no longer available.
quoted_tweet.idstringTweet id, e.g. 2104593672624886205.
quoted_tweet.urlstringThe tweet on x.com.
quoted_tweet.textstringThe text as x.com shows it: long posts in full, t.co links expanded, without a reply's leading @mentions or the trailing media link. A retweet shows the original's text. Empty for media-only tweets.
quoted_tweet.created_atstringWhen it was posted, ISO 8601.
quoted_tweet.langstringcan be nullLanguage as X detects it, e.g. en (und when it can't tell); null if unknown.
quoted_tweet.sourcestringcan be nullThe app it was posted from, e.g. Twitter for iPhone; null if X doesn't say.
quoted_tweet.authorobjectWho posted it.
quoted_tweet.author.idstringNumeric user id. It stays the same when the handle changes.
quoted_tweet.author.handlestringUsername (handle), without @.
quoted_tweet.author.namestringDisplay name.
quoted_tweet.author.avatarstringcan be nullProfile picture URL, 400×400; null if none.
quoted_tweet.author.verifiedbooleanHas the blue check (X Premium).
quoted_tweet.author.verified_typestringcan be nullBusiness (gold check, a verified organization) or Government (grey check); null otherwise.
quoted_tweet.author.followersnumbercan be nullFollowers when fetched; null when X's main source was busy and we used its embed data instead.
quoted_tweet.countsobjectEngagement when fetched. Exact numbers, not rounded. A retweet shows the original's, as x.com does.
quoted_tweet.counts.likesnumberLikes.
quoted_tweet.counts.repliesnumberReplies.
quoted_tweet.counts.retweetsnumbercan be nullReposts (retweets); null when X's main source was busy and we used its embed data instead.
quoted_tweet.counts.quotesnumbercan be nullQuote posts; null when X's main source was busy and we used its embed data instead.
quoted_tweet.counts.bookmarksnumbercan be nullBookmarks; null when X's main source was busy and we used its embed data instead.
quoted_tweet.counts.viewsnumbercan be nullViews; null on tweets from before 2023 (X didn't count them then), and null when X's main source was busy and we used its embed data instead.
quoted_tweet.mediaobject[]Attached photos, videos and GIFs, in order. Empty if none.
quoted_tweet.media[].typestringphoto, video or gif (X plays GIFs as silent looping MP4s).
quoted_tweet.media[].urlstringThe image; for videos and GIFs, the poster (thumbnail) image.
quoted_tweet.media[].widthnumberOriginal width in pixels.
quoted_tweet.media[].heightnumberOriginal height in pixels.
quoted_tweet.media[].duration_msnumbercan be nullVideo length in milliseconds; null for photos and GIFs.
quoted_tweet.media[].variantsobject[]Playable files for videos and GIFs: MP4s from highest to lowest bitrate, then the HLS playlist. Empty for photos.
quoted_tweet.media[].variants[].urlstringFile URL on video.twimg.com.
quoted_tweet.media[].variants[].content_typestringvideo/mp4, or application/x-mpegURL for the HLS playlist.
quoted_tweet.media[].variants[].bitratenumbercan be nullBits per second; null for the HLS playlist.
quoted_tweet.hashtagsstring[]Hashtags in the text, without #.
quoted_tweet.mentionsstring[]Usernames @mentioned, including the ones a reply is addressed to.
quoted_tweet.linksstring[]Links in the text, expanded (not t.co). The tweet's own photos and videos aren't included.
quoted_tweet.pollobjectcan be nullThe tweet's poll; null if it has none.
quoted_tweet.poll.optionsobject[]The choices, in order.
quoted_tweet.poll.options[].labelstringThe choice's text.
quoted_tweet.poll.options[].votesnumbercan be nullVotes for it, exact; null if X doesn't show them.
quoted_tweet.poll.ends_atstringcan be nullWhen voting ends (or ended), ISO 8601; null if X doesn't say.
quoted_tweet.poll.closedbooleanVoting has ended, so the counts are final.
quoted_tweet.articleobjectcan be nullAn X Article (long-form post): title, preview, body and cover. Its tweet's text is just the article's link. null for other tweets.
quoted_tweet.article.titlestringThe article's title.
quoted_tweet.article.preview_textstringcan be nullThe opening lines X shows on the article's card; null if none.
quoted_tweet.article.textstringcan be nullThe full body as plain text, blocks separated by blank lines. null in user-tweets, where X sends only the preview.
quoted_tweet.article.coverstringcan be nullCover image URL; null if none.
quoted_tweet.reply_to_idstringcan be nullId of the tweet this replies to; null if it isn't a reply.
quoted_tweet.reply_to_handlestringcan be nullUsername of the account this replies to; null if it isn't a reply.
quoted_tweet.conversation_idstringcan be nullId of the thread's first tweet (its own id if it starts one); null if X doesn't say.
quoted_tweet.quoted_idstringcan be nullId of the tweet this one quotes; null if it isn't a quote.
quoted_tweet.possibly_sensitivebooleanX marks the media as possibly sensitive.
retweeted_tweetobjectcan be nullFor retweets: the original tweet and its author. The retweet's own text, media, links and counts mirror it (as on x.com); its id, author and created_at are the retweet's. null for everything else.
retweeted_tweet.idstringTweet id, e.g. 2104593672624886205.
retweeted_tweet.urlstringThe tweet on x.com.
retweeted_tweet.textstringThe text as x.com shows it: long posts in full, t.co links expanded, without a reply's leading @mentions or the trailing media link. A retweet shows the original's text. Empty for media-only tweets.
retweeted_tweet.created_atstringWhen it was posted, ISO 8601.
retweeted_tweet.langstringcan be nullLanguage as X detects it, e.g. en (und when it can't tell); null if unknown.
retweeted_tweet.sourcestringcan be nullThe app it was posted from, e.g. Twitter for iPhone; null if X doesn't say.
retweeted_tweet.authorobjectWho posted it.
retweeted_tweet.author.idstringNumeric user id. It stays the same when the handle changes.
retweeted_tweet.author.handlestringUsername (handle), without @.
retweeted_tweet.author.namestringDisplay name.
retweeted_tweet.author.avatarstringcan be nullProfile picture URL, 400×400; null if none.
retweeted_tweet.author.verifiedbooleanHas the blue check (X Premium).
retweeted_tweet.author.verified_typestringcan be nullBusiness (gold check, a verified organization) or Government (grey check); null otherwise.
retweeted_tweet.author.followersnumbercan be nullFollowers when fetched; null when X's main source was busy and we used its embed data instead.
retweeted_tweet.countsobjectEngagement when fetched. Exact numbers, not rounded. A retweet shows the original's, as x.com does.
retweeted_tweet.counts.likesnumberLikes.
retweeted_tweet.counts.repliesnumberReplies.
retweeted_tweet.counts.retweetsnumbercan be nullReposts (retweets); null when X's main source was busy and we used its embed data instead.
retweeted_tweet.counts.quotesnumbercan be nullQuote posts; null when X's main source was busy and we used its embed data instead.
retweeted_tweet.counts.bookmarksnumbercan be nullBookmarks; null when X's main source was busy and we used its embed data instead.
retweeted_tweet.counts.viewsnumbercan be nullViews; null on tweets from before 2023 (X didn't count them then), and null when X's main source was busy and we used its embed data instead.
retweeted_tweet.mediaobject[]Attached photos, videos and GIFs, in order. Empty if none.
retweeted_tweet.media[].typestringphoto, video or gif (X plays GIFs as silent looping MP4s).
retweeted_tweet.media[].urlstringThe image; for videos and GIFs, the poster (thumbnail) image.
retweeted_tweet.media[].widthnumberOriginal width in pixels.
retweeted_tweet.media[].heightnumberOriginal height in pixels.
retweeted_tweet.media[].duration_msnumbercan be nullVideo length in milliseconds; null for photos and GIFs.
retweeted_tweet.media[].variantsobject[]Playable files for videos and GIFs: MP4s from highest to lowest bitrate, then the HLS playlist. Empty for photos.
retweeted_tweet.media[].variants[].urlstringFile URL on video.twimg.com.
retweeted_tweet.media[].variants[].content_typestringvideo/mp4, or application/x-mpegURL for the HLS playlist.
retweeted_tweet.media[].variants[].bitratenumbercan be nullBits per second; null for the HLS playlist.
retweeted_tweet.hashtagsstring[]Hashtags in the text, without #.
retweeted_tweet.mentionsstring[]Usernames @mentioned, including the ones a reply is addressed to.
retweeted_tweet.linksstring[]Links in the text, expanded (not t.co). The tweet's own photos and videos aren't included.
retweeted_tweet.pollobjectcan be nullThe tweet's poll; null if it has none.
retweeted_tweet.poll.optionsobject[]The choices, in order.
retweeted_tweet.poll.options[].labelstringThe choice's text.
retweeted_tweet.poll.options[].votesnumbercan be nullVotes for it, exact; null if X doesn't show them.
retweeted_tweet.poll.ends_atstringcan be nullWhen voting ends (or ended), ISO 8601; null if X doesn't say.
retweeted_tweet.poll.closedbooleanVoting has ended, so the counts are final.
retweeted_tweet.articleobjectcan be nullAn X Article (long-form post): title, preview, body and cover. Its tweet's text is just the article's link. null for other tweets.
retweeted_tweet.article.titlestringThe article's title.
retweeted_tweet.article.preview_textstringcan be nullThe opening lines X shows on the article's card; null if none.
retweeted_tweet.article.textstringcan be nullThe full body as plain text, blocks separated by blank lines. null in user-tweets, where X sends only the preview.
retweeted_tweet.article.coverstringcan be nullCover image URL; null if none.
retweeted_tweet.reply_to_idstringcan be nullId of the tweet this replies to; null if it isn't a reply.
retweeted_tweet.reply_to_handlestringcan be nullUsername of the account this replies to; null if it isn't a reply.
retweeted_tweet.conversation_idstringcan be nullId of the thread's first tweet (its own id if it starts one); null if X doesn't say.
retweeted_tweet.quoted_idstringcan be nullId of the tweet this one quotes; null if it isn't a quote.
retweeted_tweet.possibly_sensitivebooleanX marks the media as possibly sensitive.

Cost and freshness

Each call costs 1 credit. Calls turned away before they reach the platform (invalid parameters, a key or balance problem, a rate limit) are free, and so are 5xx errors. A not_found is charged, since the platform was checked. How charging works.

Answers are cached for up to 5 minutes. A repeat call within that time can return the same data, and costs the same.

Errors

A failed call returns success: false, an error message, a code your program can check, and a docs link. These are the errors this endpoint can return. All error codes.

StatusCodeMeaning
401missing_api_keyNo API key was sent. Put it in the x-api-key header.
401invalid_api_keyThis key doesn't exist or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack, or wait for tomorrow's free top-up.
402over_max_creditsThis call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged.
403account_suspendedThis account is suspended. Email support@lurkapi.com. Not charged.
404not_foundWhat you asked for (a post, an ad, a subreddit) doesn't exist, or there's no endpoint at that path. Charged if the platform was checked.
405method_not_allowedEndpoints only take GET, with parameters in the URL.
429rate_limitedToo many calls in a short time. Wait as many seconds as the retry-after header says, then retry.
500internal_errorSomething broke on our side. Retry. Not charged.
502upstream_errorThe platform didn't send a usable answer. Retry. Not charged.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds. Not charged.
504upstream_timeoutThe platform took over 30 seconds to answer (90 for web pages). Retry. Not charged.

Use it in Claude

Connect LurkAPI to Claude and ask in plain English. This endpoint is the twitter_tweet tool. For example:

Ask Claude
Use LurkAPI's twitter_tweet tool with url "https://x.com/NASA/status/2104593672624886205", then summarize what you find.

Claude calls twitter_tweet with arguments like these, and each call costs 1 credit:

Tool arguments
{"url": "https://x.com/NASA/status/2104593672624886205"}

To save tokens, tool results leave out empty fields, keep one URL per image or video, and give transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts. Its _note gives the offset for the next part, and later parts are free for 15 minutes. Pass trim=false for the full response.

From the blog

All posts