Tweets-x-Scraper avatar

Tweets-x-Scraper

Pricing

from $10.00 / 1,000 results

Go to Apify Store
Tweets-x-Scraper

Tweets-x-Scraper

Extract anything from X (Twitter) with speed and precision. This smart scraper auto-detects what to collect—tweets, profiles, users, lists, or media—and delivers clean, structured data instantly. Just enter usernames, URLs, or keywords and let automation do the rest.

Pricing

from $10.00 / 1,000 results

Rating

5.0

(6)

Developer

Mikolabs

Mikolabs

Maintained by Community

Actor stats

4

Bookmarked

280

Total users

18

Monthly active users

a day ago

Last modified

Share

Extract anything from X (Twitter) with speed and precision. This smart scraper auto-detects what to collect—tweets, profiles, users, lists, or media—and delivers clean, structured data instantly. Just enter usernames, URLs, or keywords and let automation do the rest.

Extract anything from X (Twitter) with speed and precision. This smart scraper auto-detects what to collect—tweets, profiles, users, lists, or media—and delivers clean, structured data instantly. Just enter usernames, URLs, or keywords and let automation do the rest.

🚀 Features

Smart Automatic Routing

The Actor automatically detects what you want to scrape based on your inputs:

  • Twitter Usernames → Automatically scrapes profiles (smart mode detection)
  • Twitter List URLs → Automatically scrapes list content
  • Search Terms → Automatically searches tweets or users

Intelligent Profile Scraping

When scraping profiles, the Actor automatically selects the best mode:

  • Media Only Mode - Check Media Only to extract only tweets with images/videos
  • With Replies Mode - Enable Include Replies to get all tweets including replies
  • Normal Mode - Standard tweet scraping (default)
  • Profile Search - Add search terms to find specific content within profiles

Advanced Features

  • 🎯 Advanced Filtering - Filter by date, location, media type, engagement metrics
  • 👤 Profile Information - Extract complete profile details (bio, stats, avatar, banner)
  • 📷 Media Extraction - Get direct URLs for images and videos with HLS preview links
  • 📊 Engagement Stats - Collect likes, retweets, comments, and quotes
  • 🔄 Rate Limiting Protection - Built-in retry logic and exponential backoff
  • 📄 Pagination - Automatic handling of multiple pages
  • 📋 Structured Output - Clean JSON output to Apify dataset

📋 Input Configuration

Main Input Fields

1. Twitter Usernames

Add one or more Twitter usernames to scrape profiles. The Actor will automatically:

  • Choose between normal, with-replies, or media-only mode based on your settings No mode selection needed - just provide your inputs and go! 🚀by minimum likes (minLikes), minimum retweets (minRetweets), minimum replies (minReplies), verified authors only (onlyVerified), quotes only (onlyQuotes), or tweets with external links (includeLinks).
  • Rich Media & Content: Extracts full-resolution images, original MP4 videos, animated GIFs, video poster thumbnails, and Twitter card previews.
  • Anti-Blocking Built-In: Integrated support for Apify Residential proxies and intelligent session recycling.

📋 Input Parameters

ParameterTypeDefaultDescription
twitterHandlesArray["rish_w3b"]Twitter handles to scrape (with or without @).
listUrlsArray[]Twitter list URLs (e.g. https://x.com/i/lists/123456).
searchTermsArray[]Search terms, keywords, hashtags, or phrases.
searchTypeString"tweets"tweets (Global Tweet Search), users (User Search), or profile_tweets (Search Within Profiles).
includeRepliesBooleanfalseInclude replies when scraping profiles.
includeRetweetsBooleantrueInclude retweets in results.
mediaOnlyBooleanfalseOnly scrape tweets containing images or videos.
maxItemsInteger100Maximum items to scrape across all targets (0 = unlimited for paid users; max 10 for free users).
startDateString""Start date filter (YYYY-MM-DD).
endDateString""End date filter (YYYY-MM-DD).
locationString""Location filter (e.g. 'New York', 'London').
onlyImagesBooleanfalseFilter tweets that contain images.
onlyVideosBooleanfalseFilter tweets that contain videos.
onlyVerifiedBooleanfalseOnly tweets from verified accounts.
onlyQuotesBooleanfalseOnly quote tweets.
includeNativeRetweetsBooleantrueInclude native retweets in search.
includeLinksBooleanfalseOnly tweets containing external URLs.
latestTweetsBooleanfalseOnly scrape tweets from the last 7 days.
safeSearchBooleanfalseEnable safe search to filter sensitive content.
minLikesInteger0Minimum likes threshold.
minRepliesInteger0Minimum replies threshold.
minRetweetsInteger0Minimum retweets threshold.
tweetLanguageString""Language code (e.g. 'en', 'es', 'fr').
scrapeProfileInfoBooleantrueExtract full profile metadata header when scraping handles.
useResidentialProxyBooleanfalseUse Apify Residential Proxy for maximum reliability.
maxRetriesInteger5Retry attempts per failed page request.

💡 Example Configurations

1. Scrape Profile Timelines with Media

{
"twitterHandles": ["elonmusk", "OpenAI"],
"scrapeProfileInfo": true,
"mediaOnly": false,
"maxItems": 100
}

2. Scrape a Twitter List

{
"listUrls": [
"https://x.com/i/lists/123456789"
],
"maxItems": 200
}
{
"searchTerms": ["artificial intelligence", "#LLM"],
"searchType": "tweets",
"minLikes": 50,
"tweetLanguage": "en",
"startDate": "2024-01-01",
"maxItems": 500
}

4. Search Users by Topic

{
"searchTerms": ["crypto founder", "AI researcher"],
"searchType": "users",
"maxItems": 50
}

📊 Output Dataset Format

Tweet Item

{
"id": "1892837465928172635",
"type": "tweet",
"url": "https://x.com/elonmusk/status/1892837465928172635",
"text": "Exciting advances in AI systems coming this year.",
"timestamp": "2026-08-21T16:20:00Z",
"username": "elonmusk",
"fullname": "Elon Musk",
"likes": 42500,
"retweets": 8300,
"replies": 3200,
"quotes": 940,
"has_media": true,
"images": ["https://pbs.twimg.com/media/xyz123.jpg"],
"videos": [],
"urls": ["https://x.ai"],
"hashtags": ["AI"],
"mentions": [],
"author": {
"username": "elonmusk",
"fullname": "Elon Musk",
"verified": true,
"verified_type": "blue",
"profile_picture": "https://pbs.twimg.com/profile_images/.../photo.jpg"
}
}

Profile Metadata Item

{
"id": "elonmusk",
"type": "profile",
"username": "elonmusk",
"fullname": "Elon Musk",
"bio": "...",
"location": "Texas",
"website": "https://x.com",
"joined": "June 2009",
"followers": 180000000,
"following": 500,
"tweets_count": 45000,
"banner": "https://pbs.twimg.com/profile_banners/.../banner.jpg",
"profile_picture": "https://pbs.twimg.com/profile_images/.../photo.jpg",
"verified": true,
"verified_type": "blue"
}

⚖️ License

This project is licensed under the AGPL-3.0 License.