VOOZH about

URL: https://apify.com/scrapeflow/twitter-x-posts-scraper

โ‡ฑ Twitter X Posts Scraper ยท Apify


Pricing

$19.99/month + usage

Go to Apify Store

Twitter X Posts Scraper

๐Ÿฆ Twitter X Posts Scraper pulls tweets at scale by user, hashtag, or keywordโ€”text, timestamps, author, likes, retweets, replies, views, hashtags, mentions & media URLs. ๐Ÿ”Ž Ideal for social listening, sentiment & competitive research. ๐Ÿš€ Export clean JSON/CSV for analytics.

Pricing

$19.99/month + usage

Rating

0.0

(0)

Developer

๐Ÿ‘ ScrapeFlow

ScrapeFlow

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

2 months ago

Last modified

Share

Twitter X Posts Scraper

Twitter X Posts Scraper is an Apify actor that extracts tweets at scale from Twitter/X by username, profile URL, or numeric user ID. It solves the hassle of manual copying by delivering clean, structured tweet data โ€” including text, engagement metrics, author metadata, hashtags, mentions, and media URLs โ€” ready for analytics and automation. Built for marketers, developers, data analysts, and researchers, this scraper enables social listening, sentiment analysis, and competitive research workflows at scale.

What data / output can you get?

Below are real fields produced by the actor, as pushed to the Apify dataset during a run.

Data fieldDescriptionExample value
idTweet identifier (rest_id)"1988877569597260072"
urlCanonical Tweet URL"https://x.com/elonmusk/status/1988877569597260072"
user_postedAuthor handle (screen_name)"elonmusk"
nameAuthor display name"Elon Musk"
descriptionFull tweet text"@tetsuoai Long press on any image to turn it into a video..."
date_postedISO timestamp (UTC)"2025-11-13T07:52:18.000Z"
likesLike count1729
repliesReply count554
repostsRetweet/Repost count368
quotesQuote count38
viewsView/impression count"1399060"
bookmarksBookmark count213
is_verifiedBlue verification flagtrue
followersAuthor follower count229031060
followingAuthor following count1226
posts_countAuthor total posts89153
profile_image_linkProfile image URL"https://pbs.twimg.com/profile_images/โ€ฆ/normal.jpg"
biographyAuthor bio text""
hashtagsHashtag texts from tweet["AI","video"]
tagged_usersMentioned usernames["tetsuoai"]
photosFirst photo URL if presentnull
videosSorted MP4 video URLs (highest bitrate first)["https://video.twimg.com/.../file.mp4"]
quoted_postJSON object with quoted post details{"post_id": "123...", "description": "..."}
external_urlAuthor external URL from profilenull
inputObject with the tweetโ€™s input link{"url": "https://x.com/elonmusk/status/1988877569597260072/"}

Notes:

  • Export results from the Apify dataset in JSON, CSV, or Excel.
  • Some fields may be null when not present (e.g., photos, videos, hashtags, quoted_post).

Key features

  • ๐Ÿšฆ Dynamic authorization capture Automatically captures the required authorization header from X network requests before API calls. If blocked, the run stops with a clear message.

  • ๐Ÿ” Proxy fallback logic Starts without a proxy and automatically falls back to Apify datacenter and then residential proxies (with retries) if requests fail, improving stability on X.

  • ๐Ÿงฎ Flexible sorting Choose how results are ordered before saving: recent (newest first), oldest (oldest first), or popular (most liked first).

  • ๐ŸŽฏ Per-profile tweet limits Control results with Max Tweets per User (1โ€“100) to balance depth and speed.

  • ๐Ÿงต Rich tweet + author metadata Collects tweet text, timestamps, likes, replies, reposts, quotes, views, bookmarks, hashtags, mentions, media URLs, and author info (followers, following, posts count, profile image, bio).

  • ๐Ÿ“ฆ Clean, structured outputs Pushes a consistent JSON object per tweet to the Apify dataset โ€” ready for BI tools, notebooks, and automation.

  • ๐Ÿงฐ Developer-friendly Integrate runs via the Apify API, schedule jobs, and pipe data to downstream systems.

  • ๐Ÿ”Œ Workflow-ready Export to JSON/CSV/Excel and connect the dataset to your analytics stack or automation platforms.

How to use Twitter X Posts Scraper - step by step

  1. Create or log in to your Apify account Youโ€™ll run the actor from the Apify platform UI or via API.

  2. Open the Twitter X Posts Scraper actor Find โ€œTwitter X Posts Scraperโ€ in the Apify Store and click โ€œTry for freeโ€.

  3. Add your inputs to startUrls Accepts:

  4. Choose Sort Order Set sortOrder to one of: recent, oldest, popular.

  5. Set Max Tweets per User Limit how many tweets to collect per input with maxTweets (1โ€“100).

  6. (Optional) Configure Apify proxies By default, no Apify proxy is used. If requests fail, the actor can automatically switch to datacenter and then residential proxies for retries.

  7. Run the actor The actor resolves user IDs, fetches tweets via X APIs, sorts according to your preference, and writes each result to the dataset.

  8. Export your data Open the runโ€™s Dataset and export to JSON, CSV, or Excel for analysis or pipelines.

Pro Tip: Avoid adding tweet URLs in startUrls. Supply usernames or profile URLs for best results and continuous pagination.

Use cases

Use caseDescription
Social media analytics & reportingTrack engagement (likes, replies, quotes, reposts, views) and content performance across key profiles to inform strategy.
Sentiment & NLP datasetsCollect clean tweet text with hashtags, mentions, and media links to power labeling, training, and inference.
Competitive intelligenceMonitor competitor posting habits, content themes, and engagement over time.
Brand monitoring & social listeningCapture responses and mentions via tagged users and quotes to understand customer feedback.
Research & journalismBuild auditable datasets of public posts with timestamps and author context for studies or stories.
API pipelines & automationTrigger runs via the Apify API and export structured records directly to downstream tools.

Why choose Twitter X Posts Scraper?

This actor focuses on precision, structured outputs, and resilient collection from public Twitter/X profiles.

  • ๐Ÿง  Accurate, structured fields
  • ๐ŸŒ Scales across multiple profiles with per-profile limits
  • ๐Ÿงฐ Developer access via the Apify API
  • ๐Ÿ›ก๏ธ Proxy fallback for higher resiliency on X
  • ๐Ÿ’ธ Efficient, clean data with minimal post-processing
  • ๐Ÿ”Œ Integrations-ready exports (JSON/CSV/Excel)

Compared to ad-hoc scripts or unstable browser extensions, this production-ready Apify actor delivers consistent datasets and proxy-aware reliability for ongoing workflows.

Is it legal / ethical to use Twitter X Posts Scraper?

Yes โ€” when done responsibly. This actor collects publicly available Twitter/X data and does not access private profiles. Users should:

  • Scrape public information only and respect Twitter/X terms.
  • Comply with applicable data protection laws (e.g., GDPR, CCPA).
  • Avoid misuse of data and excessive request volumes.
  • Consult legal counsel for edge cases or special jurisdictions.

Input parameters & output format

Example JSON input

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

Parameter reference:

  • startUrls (array, required)
    • Description: Twitter URLs, usernames, or keywords. Add one value per line (e.g., https://x.com/username, username, or @username).
    • Default: none
  • sortOrder (string, optional)
    • Description: Ordering of tweets before saving. Options: recent, oldest, popular.
    • Default: "recent"
  • maxTweets (integer, optional)
    • Description: Max tweets to collect per profile/input. Allowed range 1โ€“100.
    • Default: 10
  • proxyConfiguration (object, optional)
    • Description: Apify proxy settings. Default uses no Apify proxy. Actor can fall back to datacenter then residential proxies if requests fail.
    • Default: {"useApifyProxy": false}

Notes:

  • Tweet URLs (โ€ฆ/status/ID) in startUrls are detected and skipped; use profile URLs, usernames, or numeric user IDs.

Example JSON output

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

Field notes:

  • photos is a single URL string when a photo is present; null otherwise.
  • videos is an array of mp4 URLs sorted by bitrate (highest first) when present; null otherwise.
  • quoted_post contains nested details for quoted tweets when available; values may be null if not present.

FAQ

Do I need to input tweet URLs or usernames?

Use usernames, @handles, profile URLs, or numeric user IDs. Tweet URLs (โ€ฆ/status/ID) are detected and skipped, so provide profiles/usernames for data collection.

How many tweets per user can it scrape?

You can set maxTweets between 1 and 100 per input. The actor paginates through the user timeline until it reaches your limit or no more pages are available.

What sort options are supported?

Set sortOrder to one of: recent (newest first), oldest (oldest first), or popular (most liked first). Sorting is applied before saving records.

What data fields are included in the output?

Each record includes tweet text, timestamps, likes, replies, reposts, quotes, views, bookmarks, hashtags, mentions, media URLs (photos/videos), and author metadata (followers, following, posts_count, profile_image_link, biography), plus quoted_post details when available.

Do I need to use a proxy?

By default, the actor starts without an Apify proxy. If requests fail or you encounter blocks, it can automatically fall back to datacenter and then residential proxies with retries to improve stability.

Does it require being logged in to X?

The actor dynamically captures the authorization header from Xโ€™s network traffic. If it cannot capture the header, the run stops with the message โ€œFailed to capture authorization header. Make sure you're logged in to Twitter/X.โ€

Can I export data to CSV or Excel?

Yes. Open the runโ€™s Dataset in Apify and export to JSON, CSV, or Excel for downstream analytics and reporting.

Can I run it via API or automate it?

Yes. As an Apify actor, it can be triggered via the Apify API, scheduled, and integrated into pipelines for automated social analytics.

Closing CTA / Final thoughts

Twitter X Posts Scraper is built to deliver clean, reliable tweet and author data from public Twitter/X profiles at scale. With flexible sorting, proxy-aware resiliency, and structured outputs, itโ€™s ideal for marketers, developers, analysts, and researchers who need efficient social data pipelines. Trigger runs via the Apify API, export to JSON/CSV/Excel, and connect the results to your BI or automation stack โ€” start extracting smarter social insights today.

You might also like

Twitter X Posts Scraper

scrapier/Twitter-X-Posts-Scraper

๐Ÿฆ Twitter X Posts Scraper extracts X posts/tweets at scale โ€” by user, hashtag, keyword, or date โ€” with text, hashtags, mentions, links, media, timestamps, likes, replies & reposts. ๐Ÿ“Š Perfect for social listening, competitor analysis, sentiment & marketing research. โšก CSV/JSON export.

Twitter X Posts Scraper

api-empire/Twitter-X-Posts-Scraper

๐Ÿฆ Twitter-X Posts Scraper extracts tweets/posts at scale โ€” text, hashtags, mentions, timestamps, likes, retweets, replies, threads, media & links. ๐Ÿ” Query by keywords, users, dates. ๐Ÿ“Š Export CSV/JSON for social listening, sentiment, marketing & research. ๐Ÿš€ Fast, reliable.

Twitter X Posts Scraper

scrapio/Twitter-X-Posts-Scraper

๐Ÿฆ Twitter X Posts Scraper extracts public tweets from X (Twitter): content, timestamps, hashtags, mentions, media URLs, and engagement (likes, replies, retweets/reposts). ๐Ÿ”Ž Filter by user, keyword, or date. ๐Ÿš€ Ideal for social listening, marketing analytics, trend tracking & research.

Twitter X Tweets Scraper Scraper

scraply/Twitter-X-Tweets-Scraper-Scraper

๐Ÿฆ Twitter X Tweets Scraper pulls tweets at scale โ€” by user, keyword, hashtag, or date โ€” with text, links, media, replies, retweets, likes & timestamps. ๐Ÿ” Export CSV/JSON, filter with advanced queries. ๐Ÿš€ Perfect for social listening, market research & sentiment analysis.

Twitter X Posts Scraper

scraply/Twitter-X-Posts-Scraper

๐ŸฆโŒ Twitter X Posts Scraper extracts posts/tweets from profiles, hashtags, or searchโ€”capturing text, timestamps, author info, replies, retweets, likes, links, hashtags, mentions, media & threads. ๐Ÿš€ Perfect for social listening, competitor analysis & content research.

Twitter X Tweets Scraper Scraper

scrapeflow/Twitter-X-Tweets-Scraper-Scraper

๐Ÿฆ X (Twitter) Tweets Scraper extracts tweets by user, keyword or hashtag โ€” capturing text, media, timestamps, likes, retweets, quotes & replies. Export CSV/JSON for analytics. ๐Ÿš€ Perfect for social listening, sentiment, competitor research & marketing.

Twitter X Posts Scraper

simpleapi/Twitter-X-Posts-Scraper

๐Ÿฆ Twitter X Posts Scraper extracts tweets from profiles, hashtags & searches โ€” with text, timestamps, authors, links, likes, retweets & replies. โšก Perfect for social listening, trend tracking, competitor analysis & content research. ๐Ÿ“Š Exports CSV/JSON for analytics.

Twitter X Tweets Scraper

scraperx/Twitter-X-Tweets-Scraper-Scraper

๐Ÿฆ Twitter X Tweets Scraper pulls public tweets by keyword, hashtag, or handleโ€”capturing text, timestamps, likes, retweets, replies, links & media. ๐Ÿ“Š Export CSV/JSON. ๐Ÿ”Ž Ideal for social listening, brand monitoring, competitor insights & trend research. ๐Ÿš€

Twitter X Posts Scraper

scrapemesh/Twitter-X-Posts-Scraper

๐Ÿฆ Twitter X Posts Scraper extracts public posts at scaleโ€”text, timestamps, likes, reposts, replies, hashtags, mentions, media & links. ๐Ÿ”Ž Ideal for social listening, trend tracking, sentiment & competitor analysis. โšก Structured, ready-to-use data for marketing & research.

Twitter Posts Scraper

simpleapi/twitter-posts-scraper

Twitter Posts Scraper collects tweets and thread data from public X (Twitter) accounts and searches. It returns tweet text, timestamps, author, metrics (likes/retweets/replies), media URLs, hashtags, mentions, and IDs. Ideal for social listening, analytics, research, and automation. Fast & scalable