Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
X (Twitter): List a profile's tweetsTry it

X (Twitter): List a profile's tweets

The tweets of a profile on X (Twitter), tab by tab (posts, replies, reposts, videos, photos), newest first, 20 or so a page, with their text, counts, media and author, read with your connected X account.

20 creditsa callWorks today
Try itDocs
1Request
The profile: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa).
The tab of the profile's page: posts, replies, reposts, or one of the two lists of its Media tab, videos or photos.
The connected X account to read with (GET /v2/accounts).
Where to go on, from next in an answer, as it is: opaque, and only for the profile and tab it was given with (otherwise invalid_cursor).
20 credits a call
Code, from the fields above
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "x",
    "operation": "tweets/list",
    "options": {
      "profile": "nasa"
    }
  }'
2Response

An example answer, from the contract. Run it on your own input with your API key.

{
  "object": "run",
  "id": "run_df6ueordlxhipljdflyzjg6vdq",
  "livemode": true,
  "source": "x",
  "operation": "tweets/list",
  "version": "1.7.0",
  "schema_url": "https://api.lobstr.io/v2/catalog/x/tweets/list",
  "options": {
    "profile": "nasa"
  },
  "fields": null,
  "status": "succeeded",
  "count": 1,
  "has_more": true,
  "next": {
    "source": "x",
    "operation": "tweets/list",
    "options": {
      "profile": "nasa",
      "cursor": "gAAAAABpNWd0x2kQ8vZr3TfYc1LmRb7uHsE9wA4jXoKqDn6yPiGt5"
    }
  },
  "cost": {
    "credits": 20
  },
  "results": [
    {
      "object": "tweet",
      "id": "2122000000000000001",
      "position": 1,
      "is_pinned": false,
      "is_promoted": false,
      "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",
      "observed_at": "2026-11-16T15:00:00Z"
    }
  ]
}

102 fields per tweet

Every call returns them for each record, in the results of its JSON answer.

List a profile's tweets

102 fields
object
text
tweet
id
id
The tweet's id.
2122000000000000001
position
number
Its rank in the profile's tab, across pages.
1
is_pinned
yes / no
Whether the profile pinned it at the top of its Posts tab (the page writes Pinned above it).
No
is_promoted
yes / no
Whether it is an ad X places among the profile's tweets: a tweet of an advertiser, shown to the connected account that reads. Given where X puts it.
No

What it costs

Billed by the call: 20 credits, whatever the page holds (up to 20 tweets). Pick how many calls a month.

Every plan

20 credits a call

Calls a month

100

Per 100 calls

$4.00

On Starter, $20 a month for up to 500 calls.

Live

Built to run

Every call counts; a day is green at 99.5% successful.

Successful calls
98.99%
Median call
2.5 s
90 days agoToday
99.5% or more (SLA)98 to 99.5%95 to 98%Under 95%

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/list.

List a profile's tweets

When do I use it?

You want what an account posts on X: pass its handle (nasa, @nasa) or its profile's address. tab is the profile's own: posts (the default: its tweets, its threads as their tweets one by one), replies (its replies, each with the tweet it answers, which is another account's: author says whose a tweet is), reposts (the tweets it reposted, each with the tweet repeated in retweeted_tweet), videos or photos (the two lists of its Media tab: its tweets with a video, or with a photo, ten or so a page). Follow next unchanged for older tweets. An empty page is not the end of the list, keep following next until it is null (empty pages are free). X never says a list is over (it gives a cursor on every page): next is null when X gives none, or after three empty pages in a row, a rule of this API. It needs one of your X accounts connected (POST /v2/accounts), and X counts each account's requests: about 250 pages of posts, or 50 of any other tab, for 15 minutes. For tweets about a subject, or an account's tweets between two dates, use x/tweets/search.

What do I give it?
  • profile (required): The profile: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa). Not its display name.
  • tab: The tab of the profile's page: posts, replies, reposts, or one of the two lists of its Media tab, videos or photos.
  • 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?

The tweets of a profile on X (Twitter), tab by tab (posts, replies, reposts, videos, photos), newest first, 20 or so a page, with their text, counts, media and author, read with your connected X account. Every record has the same fields, empty ones included: they are all listed above.

How do I get the next page?

Each answer ends with next: the following call, whole. Send it as it is; it is null after the last page. A page holds 20 records at most.

Pricing

What does a call cost?

20 credits per call that returns tweets, a short last page included. An empty answer, a failed call and a busy account are free.

When is a call free?
  • an empty page (past the end, or nothing found)
  • a call that fails
  • a call the account is too busy for (it answers with retry_after)

Errors

What can go wrong?
  • invalid_profile (422): Pass a profile's handle (nasa, @nasa) or its address (https://x.com/nasa); tab is posts, replies, reposts, videos or photos.
  • profile_not_found (404): X has no profile with this handle (not charged).
  • profile_unavailable (404): X does not show this profile, suspended or withheld (not charged).
  • profile_protected (403): This profile's posts are protected: X shows them to its followers only, and your connected X account does not follow it (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 profile right now: it pauses a couple of seconds between two pages, and X counts each account's requests (about 250 pages of posts, 50 of any other tab, 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): 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/list. Its page for agents, in Markdown: x/tweets/list.md.

Where is its full description?

The contract, as JSON: https://api.lobstr.io/v2/catalog/x/tweets/list: 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.