How to Scrape Any X (Twitter) Profile's Tweets: NASA vs SpaceX, Step by Step

X.com Twitter User Tweets Scraper exports the tweets of any public X (Twitter) profile, by handle or profile URL. Every tweet comes with its view count, likes, retweets, replies, quotes, bookmarks, the full text of long posts, the quoted tweet and the author’s profile. There’s no X login. Replies are optional, and a monitoring mode returns only new tweets on scheduled runs.

To show what that data is good for, I asked a simple question. NASA has 92.1 million followers on X and SpaceX has 41.9 million. Who actually gets more views? One run pulled the last 50 posts of each account: 100 tweets in 8 seconds.

With less than half the followers, SpaceX’s posts got more views.

Here is how to repeat the run, with real Apify Console screenshots, the exact input, a sample tweet, the analysis code and pricing.

What you get

Input Example Notes
twitterHandles NASA, SpaceX Usernames, with or without @
startUrls https://x.com/apify Profile URLs (x.com or twitter.com). Searches, lists and single tweets are skipped with a warning
maxItems 50 (default) Tweets per user, exact, including the pinned tweet
includeReplies true Also return the user’s replies
onlyNewTweets + monitorName true, "nasa" Scheduled runs return only tweets you haven’t received before

Each tweet includes url, full_text (plus the full text of long posts), created_at, lang, viewCount, favorite_count, retweet_count, reply_count, quote_count, bookmark_count, entities, the quoted tweet, and an author object (screen_name, name, followers_count, is_blue_verified, bio, location and more). Promoted tweets are skipped.

Step 1: Open the Actor

Open X.com Twitter User Tweets Scraper on Apify and click Try for free. New to Apify? Sign up here for the free monthly credit.

X.com Twitter User Tweets Scraper on the Apify Store

Step 2: Add handles and set tweets per user

On the Input tab, list the accounts under Twitter handles (usernames) or paste profile URLs into Start URLs (Bulk edit takes one per line). A user listed in both is scraped once. Set Maximum number of tweets per user. I used NASA, SpaceX and 50.

Scrape at least 50 tweets per run: the pricing notes ask users not to run tiny scrapes of fewer than 50 items.

Input form with Twitter handles NASA and SpaceX and 50 tweets per user

Step 3: Replies and monitoring (optional)

Include replies toggle and the Monitoring section with Only new tweets and Monitor name

How monitoring works, from the README: the memory lives in a key-value store named x-twitter-monitor-state in your account. Up to 10,000 of the newest tweets are remembered per user. The pinned tweet is returned once. If the memory can’t be read, the run stops without returning or charging tweets. Use a different monitorName for each schedule.

Step 4: Or paste the input as JSON

{
  "twitterHandles": ["NASA", "SpaceX"],
  "maxItems": 50,
  "includeReplies": false,
  "onlyNewTweets": false
}

JSON input editor

The Actor requires Maximum cost per run (under Run options) to be at least $2.00. You’re still only charged for the tweets you get: this run cost $0.15 on the Free plan.

Step 5: Save & start, then read the Tweets table

Click Save & start. The run succeeded with 100 results in 8 seconds. The Tweets view shows the URL, text, author, author followers, views, likes, retweets, replies, quotes, bookmarks, language and date. After a run, Console also offers to schedule it (every hour by default), which pairs well with monitoring:

Run output in the Tweets view with the Schedule this run banner

Where NASA’s rows end and SpaceX’s begin you can see the comparison directly. The author follower count halves, but the view counts don’t:

NASA rows with 92M followers next to SpaceX rows with 41.9M followers and higher views

The most-viewed SpaceX post in the run (shortened):

{
  "id": "2121316300702056595",
  "url": "https://x.com/SpaceX/status/2121316300702056595",
  "full_text": "Watch Starship Flight 15\nhttps://t.co/xvmIH2diNA",
  "viewCount": 8400162,
  "favorite_count": 46691,
  "retweet_count": 6826,
  "reply_count": 3282,
  "quote_count": 1756,
  "bookmark_count": 6228,
  "lang": "en",
  "created_at": "Fri Nov 13 18:56:32 +0000 2026",
  "author": {
    "screen_name": "SpaceX",
    "name": "SpaceX",
    "followers_count": 41878434,
    "is_blue_verified": true
  }
}

Step 6: Export

Click Export to download JSON, CSV, XML, Excel, HTML Table, RSS or JSONL, from the Tweets view or All fields.

Export dataset dialog

Reproduce the comparison in Python

This is the analysis behind the numbers above (pip install apify-client):

from statistics import median
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("xtdata/twitter-x-user-tweets-scraper").call(run_input={
    "twitterHandles": ["NASA", "SpaceX"],
    "maxItems": 50,
})

tweets = list(client.dataset(run["defaultDatasetId"]).iterate_items())
for handle in ("NASA", "SpaceX"):
    mine = [t for t in tweets if t["author"]["screen_name"] == handle]
    original = [t for t in mine if not t["full_text"].startswith("RT @")]
    print(handle,
          "retweets:", len(mine) - len(original),
          "median views:", median(int(t.get("viewCount") or 0) for t in original),
          "median likes:", median(t["favorite_count"] for t in original))

Node.js (npm install apify-client), with monitoring for a daily schedule:

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('xtdata/twitter-x-user-tweets-scraper').call({
    twitterHandles: ['NASA'],
    onlyNewTweets: true,
    monitorName: 'nasa-daily',
    maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`${items.length} new tweets since the last run`);

Pricing

Pay per tweet saved to the dataset, plus a tiny start event. Duplicates (such as a pinned tweet shown twice) are not charged twice, and there is no minimum charge per run.

Event Free plan Bronze Silver Gold / Platinum / Diamond
Each tweet $1.50 / 1,000 $0.80 / 1,000 $0.60 / 1,000 $0.50 / 1,000
Actor start $0.0001 $0.0001 $0.0001 $0.0001

The 100-tweet run above cost $0.15 on the Free plan, about $0.08 on Bronze.

Tips

FAQ

Do I need an X account? No. Only publicly visible data is read, without logging in.

Can I get search results or lists? This Actor is for profile timelines. For keyword searches, hashtags, lists and reply threads use X.com Twitter API Scraper.

Is the pinned tweet included? Yes, once, and it counts toward maxItems.

Ready to run your own head-to-head? Open X.com Twitter User Tweets Scraper on Apify.