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.
- 22 of NASA’s 50 posts were retweets (SpaceX: 6), so I compared original posts only.
- Median views per original post: SpaceX 1.02M, NASA 772K.
- Median likes per original post: SpaceX 8,239, NASA 3,084 (2.7×).
- Total views of the 50 posts: SpaceX 57.9M, NASA 35.3M.
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.

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.

Step 3: Replies and monitoring (optional)
- Include replies: also return each user’s replies.
- Only new tweets (monitoring) with a Monitor name: the first run returns tweets as usual and remembers them; later runs return only tweets that weren’t returned before. Use it with an Apify Schedule.

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
}

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:

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:

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.

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
maxItemsis per user. To cap a whole run, use maximum charged results or maximum cost in Run options.- Filter retweets in analysis like the Python example above. Retweets show the original’s counts differently (for example, 0 likes on the retweet itself).
- If some users fail, the others are still returned and a warning is logged. If a run moves to another server, it continues where it stopped.
- Reshape tweets with
customMapFunction(plain synchronous JavaScript, not for filtering).
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.