Twitter X Posts Scraper avatar

Twitter X Posts Scraper

Pricing

$19.99/month + usage

Go to Apify Store
Twitter X Posts Scraper

Twitter X Posts Scraper

🐦 Twitter X Posts Scraper collects posts from X (Twitter) with text, timestamps, likes, reposts, replies, hashtags & media links. ⚑ Fast, reliable, and scalable for social listening, competitor tracking, sentiment, and marketing research. πŸ”Ž Perfect for analysts & growth teams; CSV/JSON export.

Pricing

$19.99/month + usage

Rating

0.0

(0)

Developer

ScrapeLabs

ScrapeLabs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 hours ago

Last modified

Share

Twitter X Posts Scraper

The Twitter X Posts Scraper is a fast, reliable X posts scraper tool that collects recent posts from X (Twitter) profiles and usernames β€” including text, timestamps, engagement metrics, hashtags, and media links β€” in structured records you can export to CSV or JSON. It solves the manual copy-paste problem by automating data collection from profiles so marketers, developers, data analysts, and researchers can run scalable social listening, competitor tracking, and sentiment or marketing research. With per-user limits, sorting, and optional proxy fallback, this Twitter posts scraper and X tweet scraper scales from quick checks to bulk monitoring across multiple profiles.

What data / output can you get?

Below are the exact output fields the actor saves to the Apify dataset, with examples. You can export results to CSV or JSON.

Data typeDescriptionExample value
idPost (tweet) ID1988877569597260072
urlPublic post URLhttps://x.com/elonmusk/status/1988877569597260072
user_postedUsername (handle) of the authorelonmusk
nameDisplay name of the authorElon Musk
descriptionFull text of the postLong press on any image to turn it into a video...
date_postedISO-8601 timestamp (UTC)2025-11-13T07:52:18.000Z
likesLike count1729
repliesReply count554
repostsRepost/retweet count368
quotesQuote count38
viewsView/impression count1399060
bookmarksBookmark count213
is_verifiedBlue verification statustrue
followersAuthor follower count229031060
followingAuthor following count1226
posts_countTotal posts by the author89153
profile_image_linkProfile image URLhttps://pbs.twimg.com/profile_images/..._normal.jpg
biographyBio/description from profileBuilding rockets and cars...
hashtagsList of hashtags found in the post["AI","launch"]
tagged_usersMentioned usernames["tetsuoai"]
photosFirst photo URL if presenthttps://pbs.twimg.com/media/XXXXX.jpg
videosVideo URLs (highest bitrate first)["https://video.twimg.com/.../file.mp4"]
quoted_postObject with data about quoted post (if any){"post_id":"...", "description":"..."}
external_urlWebsite from profile (if present)https://tesla.com
inputObject with the actor-constructed input URL{"url":"https://x.com/elonmusk/status/1988877569597260072/"}

Note: Media fields include a single β€œphotos” URL (first photo) and an array of β€œvideos” URLs. β€œquoted_post” provides context if the post quotes another post.

Key features

  • ⚑ Fast, reliable profile post extraction
    Scrapes posts from X profiles/usernames with text, timestamps, engagement metrics, hashtags, and media links for analysis-ready datasets.

  • 🧩 Bulk X posts scraper (multiple inputs)
    Add multiple usernames or profile URLs to startUrls to process profiles in batches β€” ideal for automated Twitter posts scraper workflows.

  • πŸ”Ž Sortable results (recent, oldest, popular)
    Control result order via sortOrder to prioritize latest posts, earliest posts, or most-liked posts for downstream analysis.

  • 🎯 Per-user limits with maxTweets
    Define how many posts to collect per profile to manage cost, speed, and coverage.

  • 🏷️ Hashtag and mention capture
    Works as a Twitter hashtag scraper for individual posts by extracting hashtags and tagged users from each post.

  • πŸ” Optional Apify proxy with smart fallback
    If requests fail, the actor can step through datacenter and residential proxy options for more stable runs.

  • πŸ“¦ Structured exports to CSV/JSON
    Clean, consistent output that’s ready for BI tools, pipelines, or simple downloads.

  • πŸ‘₯ X user posts scraper for analysts and growth teams
    Designed for social listening, competitor tracking, and marketing research β€” from individual profiles to bulk monitoring.

How to use Twitter X Posts Scraper - step by step

  1. Create or log in to your Apify account
    Access the actor from your Apify dashboard.

  2. Open the actor and add inputs
    In the startUrls field, enter one value per line using any of these formats:

  3. Important: Do not add tweet/status URLs
    The actor skips tweet URLs and expects profile identifiers only. Provide usernames or user IDs.

  4. Choose sortOrder
    Select one of:

    • recent (newest first)
    • oldest (oldest first)
    • popular (most liked first)
  5. Set maxTweets
    Choose how many posts to collect per input (1–100). Higher values take longer.

  6. Configure proxy (optional)
    Leave proxyConfiguration.useApifyProxy disabled by default. Enable Apify Proxy if you encounter blocks, timeouts, or empty results. The actor can fall back across proxy types for stability.

  7. Run the actor and monitor progress
    The actor resolves each username, fetches posts, sorts them per your settings, and saves them to the dataset as it goes.

  8. Export results
    Open the Dataset tab to download data as JSON or CSV for your pipelines, dashboards, or reports.

Pro Tip: Add multiple profiles to startUrls to build a lightweight X data extractor for posts that powers recurring social listening or competitor tracking workflows.

Use cases

Use case nameDescription
Social listening for marketingTrack brand and competitor posts to analyze engagement patterns, hashtags, and audience reactions across profiles.
Competitor tracking for growth teamsMonitor rivals’ posting cadences and top-performing content using sortOrder=popular.
Sentiment and trend analysisExport CSV/JSON for NLP pipelines to assess sentiment, themes, and virality across recent posts.
Campaign performance benchmarkingCompare likes, replies, quotes, and reposts over time per profile to fine-tune content strategy.
Research & journalism datasetsBuild structured corpora of profile posts with timestamps and media links for transparent reporting.
Data enrichment for dashboardsFeed clean, structured post data into BI tools for automated reporting and alerts.
Bulk monitoring for agenciesUse the Bulk X posts scraper capability to track multiple clients’ profiles at once with consistent output fields.

Why choose Twitter X Posts Scraper?

This Twitter post extractor focuses on accurate, structured profile post data with scalable runs and clean exports.

  • βœ… Accuracy-first output: Captures post text, timestamps, engagement, hashtags, media links, and author metadata in consistent records.
  • πŸ“ˆ Built for scale: Process multiple profiles in a single run with per-user limits and sorting for fast insights.
  • 🧠 Smarter stability: Optional Apify proxy with fallback across datacenter and residential options when needed.
  • 🧰 Developer- and analyst-friendly: Clear JSON/CSV exports for pipelines, notebooks, and BI tools.
  • πŸ’Έ Efficient & focused: Only the fields you need for social listening, competitor tracking, and marketing research β€” no noisy extras.
  • πŸ”„ Strong sorting controls: Recent/oldest/popular sortOrder to match your analysis workflow.
  • 🐦 Better than browser extensions: Production-ready infrastructure and dataset exports β€” no flaky manual scraping.

Yes, when used responsibly. This actor is designed to collect publicly available profile post data. As with any web data collection:

  • Only collect and use public information you’re allowed to access.
  • Review and respect X (Twitter) terms of service and your local regulations.
  • Avoid abusive request patterns; enable proxies if you encounter rate limits or blocks.
  • Do not attempt to access private profiles or protected data.
  • Consult your legal team for specific compliance needs.

Input parameters & output format

Example JSON input

{
"startUrls": [
"elonmusk",
"https://x.com/BarackObama",
"@username"
],
"sortOrder": "recent",
"maxTweets": 10,
"proxyConfiguration": {
"useApifyProxy": false
}
}

Input parameters

  • startUrls (array, required)
    Description: Twitter URLs, usernames, or keywords to scrape (add one value per line). Examples include profile URLs (https://x.com/username or https://twitter.com/username) and usernames with or without @.
    Default: none (prefill example: "elonmusk")

  • sortOrder (string, optional)
    Description: How to order scraped tweets before saving. Options: recent (newest first), oldest (oldest first), popular (most liked first).
    Default: "recent"

  • maxTweets (integer, optional)
    Description: Upper limit of tweets to collect per profile/input. Higher values take longer. Allowed range: 1–100.
    Default: 10

  • proxyConfiguration (object, optional)
    Description: Apify proxy settings for Twitter/X. Default is no Apify proxy. The actor can step through fallback proxies if requests fail (datacenter, then residential retries). Enable when you see blocks, timeouts, or empty results.
    Default: {"useApifyProxy": false}

Example JSON output

[
{
"biography": "Building rockets and cars...",
"bookmarks": 213,
"date_posted": "2025-11-13T07:52:18.000Z",
"description": "@tetsuoai Long press on any image to turn it into a video in less than 30 seconds https://t.co/Nsp7Ba0flp",
"external_url": null,
"followers": 229031060,
"following": 1226,
"hashtags": null,
"id": "1988877569597260072",
"input": {
"url": "https://x.com/elonmusk/status/1988877569597260072/"
},
"is_verified": true,
"likes": 1729,
"name": "Elon Musk",
"photos": null,
"posts_count": 89153,
"profile_image_link": "https://pbs.twimg.com/profile_images/1983681414370619392/oTT3nm5Z_normal.jpg",
"quoted_post": {
"data_posted": null,
"description": null,
"post_id": null,
"profile_id": null,
"profile_name": null,
"url": null,
"videos": null
},
"quotes": 38,
"replies": 554,
"reposts": 368,
"tagged_users": ["tetsuoai"],
"url": "https://x.com/elonmusk/status/1988877569597260072",
"user_posted": "elonmusk",
"videos": [
"https://video.twimg.com/amplify_video/1988877511368019968/vid/avc1/576x856/34pcJSQSXqqM4JRQ.mp4?tag=23"
],
"views": 1399060
}
]

Notes:

  • Tweet/status URLs as inputs are skipped. Provide usernames or user IDs/profile URLs in startUrls.
  • Some fields may be null if not present in the source (e.g., media fields, external_url, hashtags).

FAQ

Can I use the Twitter X Posts Scraper without coding?

Yes. You can run this X posts scraper tool entirely in the Apify UI by pasting usernames or profile URLs, choosing options, and exporting CSV/JSON.

What input formats are supported?

Provide usernames (elonmusk), @usernames (@jack), or full profile URLs (https://x.com/BarackObama or https://twitter.com/BarackObama) in startUrls. Tweet/status URLs are skipped.

Can I sort results by popularity or recency?

Yes. Set sortOrder to recent, oldest, or popular to control whether newest, oldest, or most-liked posts appear first.

How many posts can I get per profile?

Use maxTweets to set the upper limit per profile. Allowed range is 1–100, with 10 as the default.

Does it extract media and hashtags?

Yes. Each record can include a first photo URL (photos), an array of video URLs (videos), and hashtags and tagged_users extracted from the post content.

When should I enable proxies?

Enable proxyConfiguration when you see blocks, timeouts, or empty results. The actor can step through datacenter and residential fallback options to improve stability.

Is this a Twitter hashtag scraper or X thread scraper?

This actor fetches posts from user profiles and extracts hashtags per post. It is not a hashtag or search results scraper and does not take tweet/status URLs as inputs.

What export formats are available?

You can download results from the Apify dataset in JSON or CSV to feed analytics, enrichment, or reporting workflows.

Closing CTA / Final thoughts

The Twitter X Posts Scraper is built to extract structured posts from X profiles at scale for social listening, competitor tracking, and research. With clean JSON/CSV output, per-user limits, sort controls, and optional proxy fallback, it helps marketers, developers, analysts, and researchers automate profile monitoring with confidence. Run it from the Apify UI for a Twitter posts scraper without coding, or export datasets to power your analytics and automation pipelines. Start extracting smarter profile insights today.