X (Twitter) Advanced Search Tweet Scraper 𝕏 avatar
X (Twitter) Advanced Search Tweet Scraper 𝕏

Pricing

from $20.00 / 1,000 results

Go to Apify Store
X (Twitter) Advanced Search Tweet Scraper 𝕏

X (Twitter) Advanced Search Tweet Scraper 𝕏

Twitter/X scraper is Lightning-fast with 60+ advanced filters. Extract tweets by engagement, media, users, keywords, time, and location. Supports Latest/Top sorting, threads, quotes, and polls. Returns profiles, media URLs, engagement stats, and metadata.

Pricing

from $20.00 / 1,000 results

Rating

0.0

(0)

Developer

mikolabs

mikolabs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

🚀 X (Twitter) Advanced Search Actor

The most powerful and flexible Twitter search solution for Apify - Unlock the full potential of X (formerly Twitter) data collection with our sophisticated search capabilities and advanced filtering system.

Apify Python LICENSE

🌐 Available on Apify Store: https://apify.com/mikolabs/x-twitter-advanced-search-tweet-scraper

💰 Pricing: $20 per 1,000 results - The most affordable Twitter scraping solution on Apify!


🌟 What Makes Us Superior?

Our X (Twitter) Advanced Search Actor represents the pinnacle of social media data extraction technology. Unlike basic scrapers that offer limited functionality, we provide:

  • No Twitter API key required - Scrapes directly from Twitter
  • 🎯 60+ advanced filters across 8 comprehensive categories
  • 🔍 Dual search modes - Simple query or structured advanced filters
  • Enterprise-grade reliability - Built for scalability and performance
  • 📊 Rich metadata extraction - Complete tweet data with engagement stats
  • 🔄 Smart pagination - Automatic handling of large datasets
  • 🛡️ Robust error handling - Comprehensive retry logic and validation

🎯 Dual Search Modes for Maximum Flexibility

Simple Query Mode

Use traditional X search syntax for quick, straightforward searches:

{
"query": "artificial intelligence OR AI from:elonmusk since:2024-01-01",
"queryType": "Latest",
"numberOfTweets": 100
}

Advanced Filter Mode

Leverage our revolutionary structured filter system for precise, complex data collection:

{
"query": "AI",
"queryType": "Top",
"numberOfTweets": 500,
"engagementLevel": "high",
"mediaTypes": ["image", "video"],
"contentLanguage": "en",
"timeSince": "2024-01-01",
"timeUntil": "2024-12-31",
"usersVerifiedOnly": true,
"contentKeywords": ["machine learning", "neural networks"],
"contentHashtags": ["AI", "MachineLearning"],
"engagementMinLikes": 100,
"engagementMinRetweets": 10
}

💡 Tip: You can use either query OR advanced filters — at least one must be provided.


🔍 Industry-Leading Filter System

Our proprietary filtering technology offers 8 comprehensive filter categories with 60+ individual filter options:

1. Content Filters

  • Keywords: Search for specific words or phrases
  • Exact Phrases: Match complete quoted phrases
  • Hashtags: Include/exclude specific hashtags
  • Cashtags: Stock symbols (e.g., $TSLA, $AAPL)
  • Language: Filter by tweet language (26+ languages supported)
  • Emoticons: Positive (:) :-) :P :D) or negative (:( :-() sentiment
  • Question Marks: Find question-based tweets
  • Exclude Keywords/Hashtags: Remove unwanted content

2. User Filters

  • From Users: Tweets from specific accounts (from:username)
  • To Users: Replies to specific users (to:username)
  • Mention Users: Tweets mentioning users (@username)
  • Exclude Users: Filter out specific accounts
  • List Members: Tweets from Twitter list members (list:list_id)
  • Verified Only: Blue checkmark or verified users
  • Blue Verified Only: Twitter Blue subscribers

3. Geographic Filters

  • Near Location: Geotagged tweets near a city (near:"San Francisco")
  • Within Radius: Within specific distance (within:25km)
  • Geocode: Precise coordinates (geocode:37.7764685,-122.4172004,10km)
  • Place ID: Twitter Place Object ID (place:96683cc9126741d1)

4. Time Filters

  • Date Range: Start and end dates (since:2024-01-01, until:2024-12-31)
  • Relative Time: Last X time (within_time:24h, within_time:7d)
  • Unix Timestamps: Precise time control
  • Tweet ID Boundaries: Snowflake ID-based pagination (since_id:, max_id:)

5. Engagement Filters

  • Minimum/Maximum Likes: Filter by like count (min_faves:100)
  • Minimum/Maximum Retweets: Filter by retweet count (min_retweets:10)
  • Minimum/Maximum Replies: Filter by reply count (min_replies:5)
  • Smart Presets: low, medium, high, viral engagement levels
  • Has Engagement: Must have any engagement

6. Media Filters

  • Media Types: Images, videos, GIFs, native video, Spaces
  • Has Links: Tweets containing URLs
  • Has Mentions: Tweets with @mentions
  • Has Hashtags: Tweets with hashtags
  • News Only: Tweets linking to news sites
  • Safe Content: Exclude potentially sensitive content

7. Tweet Type Filters

  • Include Types: Original tweets, retweets, replies, quotes
  • Exclude Types: Filter out specific tweet types
  • Conversation ID: Thread/conversation tweets (conversation_id:)
  • Quoted Tweet ID: Quotes of specific tweets (quoted_tweet_id:)
  • Quoted User ID: Quotes from specific users (quoted_user_id:)
  • Poll Types: Tweets containing polls (2-4 choice polls)

8. App/Source Filters

  • Sources: Tweets from specific apps (source:twitter_for_iphone)
  • Exclude Sources: Filter out specific apps
  • Card Domain: Twitter Card domain (card_domain:youtube.com)
  • Card URL: Twitter Card URL (card_url:)
  • Card Name: Card types (audio, animated_gif, player, app, summary, etc.)

📦 Rich Data Extraction

Each result includes comprehensive metadata:

{
"searchType": "post",
"type": "tweet",
"query": "python programming",
"data": {
"tweet_url": "https://x.com/username/status/123456789",
"tweet_id": "123456789",
"author": {
"fullname": "Python Dev",
"username": "pythondev",
"verified": true,
"profile_picture": "https://pbs.twimg.com/...",
"bio": "Python enthusiast",
"followers": 15000,
"following": 500
},
"text": "Just released a new Python library! #python #coding",
"timestamp": "2024-01-15T10:30:00Z",
"stats": {
"likes": 150,
"retweets": 45,
"comments": 12,
"quotes": 3
},
"media": [
{
"type": "image",
"url": "https://pbs.twimg.com/media/..."
}
],
"urls": ["https://github.com/..."],
"hashtags": ["python", "coding"],
"mentions": ["@pythonorg"]
}
}

🚀 Three Search Modes

1. Global Search (Post Search)

Search tweets across all of Twitter using keywords, hashtags, time, geo, media, and engagement filters.

{
"query": "climate change",
"queryType": "Latest",
"numberOfTweets": 500,
"timeSince": "2024-01-01",
"contentLanguage": "en"
}

Scrape tweets from a specific user profile with date range, keywords, and engagement filters.

{
"query": "AI",
"username": "elonmusk",
"numberOfTweets": 200,
"timeSince": "2024-01-01"
}

Discover Twitter user profiles based on search queries.

{
"query": "python developer",
"searchType": "user"
}

📋 Complete Input Schema

Core Parameters

ParameterTypeDescriptionExample
querystringBase search query"artificial intelligence"
queryTypeenumLatest or Top"Latest"
numberOfTweetsintegerNumber of tweets (20-10000)100
maxPagesintegerMaximum pages to scrape50

Engagement Filters

ParameterTypeDescription
engagementLevelenumPreset: none, low, medium, high, viral
engagementMinLikesintegerMinimum likes
engagementMaxLikesintegerMaximum likes
engagementMinRetweetsintegerMinimum retweets
engagementMaxRetweetsintegerMaximum retweets
engagementMinRepliesintegerMinimum replies
engagementMaxRepliesintegerMaximum replies
engagementHasEngagementbooleanMust have any engagement

Content Filters

ParameterTypeDescription
contentKeywordsarrayKeywords to search for
contentExactPhrasesarrayExact phrases (quoted)
contentHashtagsarrayHashtags to include
contentExcludeHashtagsarrayHashtags to exclude
contentCashtagsarrayStock symbols
contentExcludeKeywordsarrayKeywords to exclude
contentLanguageenumLanguage code (en, es, fr, etc.)
contentEmoticonsenumpositive or negative
contentQuestionMarksbooleanInclude question marks

User Filters

ParameterTypeDescription
usersFromUsersarrayTweets from specific users
usersToUsersarrayReplies to specific users
usersMentionUsersarrayTweets mentioning users
usersExcludeFromUsersarrayExclude tweets from users
usersListMembersarrayFrom list members
usersVerifiedOnlybooleanVerified users only
usersBlueVerifiedOnlybooleanBlue verified users only

Time Filters

ParameterTypeDescription
timeSincestringStart date (YYYY-MM-DD)
timeUntilstringEnd date (YYYY-MM-DD)
timeWithinTimestringRelative time (24h, 7d, 30s)
timeSinceUnixintegerStart Unix timestamp
timeUntilUnixintegerEnd Unix timestamp
timeSinceIdstringSince tweet ID (Snowflake)
timeMaxIdstringMax tweet ID (Snowflake)

Geo Filters

ParameterTypeDescription
geoNearstringNear location
geoWithinRadiusstringWithin radius (25km, 15mi)
geoGeocodestringCoordinates (lat,long,radius)
geoPlaceIdstringTwitter Place ID

Media Filters

ParameterTypeDescription
mediaTypesarrayimage, video, media, native_video, spaces
mediaHasLinksbooleanMust contain links
mediaHasMentionsbooleanMust contain mentions
mediaHasHashtagsbooleanMust contain hashtags
mediaNewsOnlybooleanNews links only
mediaSafeContentOnlybooleanSafe content only

Tweet Type Filters

ParameterTypeDescription
tweetTypesarrayInclude types (retweet, reply, quote)
tweetTypesExcludearrayExclude types
tweetConversationIdstringConversation/thread ID
tweetQuotedTweetIdstringQuoted tweet ID
tweetQuotedUserIdstringQuoted user ID
tweetPollTypesarrayPoll types

App/Source Filters

ParameterTypeDescription
appsSourcesarrayApp sources
appsExcludeSourcesarrayExclude sources
cardDomainstringCard domain
cardUrlstringCard URL
cardNameenumCard name (audio, animated_gif, player, etc.)

Additional Parameters

ParameterTypeDescription
proxyUrlstringOptional proxy URL
baseUrlstringBase URL for scraping (optional)

📖 Advanced Search Operators Reference

Our actor supports the complete range of X's advanced search operators. Here's your comprehensive reference:

Content Operators

OperatorDescriptionExample
"exact phrase"Search for exact phrases"machine learning"
keyword1 keyword2Both keywords (implicit AND)AI technology
keyword1 OR keyword2Either keywordAI OR artificial intelligence
+forced_termForce inclusion (prevent spelling correction)+radiooooo
-excluded_termExclude termsAI -spam
#hashtagHashtag search#AI
$cashtagStock symbol search$TSLA
?Questions onlyWhat ?
:) or :(Positive/negative emoticons:) OR :(
url:domain.comURL content searchurl:github.com
lang:enLanguage filterlang:en

User Operators

OperatorDescriptionExample
from:usernameTweets from specific userfrom:elonmusk
to:usernameReplying to specific userto:support
@usernameMentioning specific user@company_handle
list:list_idTweets from list memberslist:715919216927322112
filter:verifiedVerified users onlyfilter:verified
filter:blue_verifiedBlue checkmark usersfilter:blue_verified

Geographic Operators

OperatorDescriptionExample
near:"city"Geotagged in locationnear:"San Francisco"
within:radiusWithin radius of locationwithin:10km
geocode:lat,long,radiusPrecise coordinatesgeocode:37.7764685,-122.4172004,10km
place:place_idSpecific place IDplace:96683cc9126741d1

Time Operators

OperatorDescriptionExample
since:2024-01-01From date (inclusive)since:2024-01-01
until:2024-12-31Before date (exclusive)until:2024-12-31
since_time:timestampUnix timestamp fromsince_time:1640995200
until_time:timestampUnix timestamp untiluntil_time:1672531199
since_id:tweet_idAfter Snowflake IDsince_id:1138872932887924737
max_id:tweet_idAt or before Snowflake IDmax_id:1144730280353247233
within_time:2dRelative time windowwithin_time:24h

Engagement Operators

OperatorDescriptionExample
min_retweets:5Minimum retweetsmin_retweets:100
min_faves:10Minimum likesmin_faves:1000
min_replies:100Minimum repliesmin_replies:50
filter:has_engagementHas any engagementfilter:has_engagement

Media Operators

OperatorDescriptionExample
filter:mediaAll media typesfilter:media
filter:imagesImages onlyfilter:images
filter:videosVideos onlyfilter:videos
filter:linksContains linksfilter:links
filter:newsNews contentfilter:news

Tweet Type Operators

OperatorDescriptionExample
filter:retweetsRetweets and quotesfilter:retweets
filter:repliesReply tweetsfilter:replies
filter:quoteQuote tweetsfilter:quote
conversation_id:idConversation threadconversation_id:1140437409710116865
quoted_tweet_id:idQuotes of specific tweetquoted_tweet_id:1138631847783608321
quoted_user_id:idQuotes from specific userquoted_user_id:11348282

App/Source Operators

OperatorDescriptionExample
source:client_nameFrom specific appsource:twitter_for_iphone
card_domain:domainCard domaincard_domain:youtube.com
card_url:urlCard URLcard_url:pscp.tv
card_name:nameCard namecard_name:player

📚 Complete Reference: For the full list of operators, see Twitter Advanced Search Operators Documentation


🎯 Pre-Built Filter Presets

Viral Content

{
"engagementLevel": "viral",
"engagementMinLikes": 1000,
"engagementMinRetweets": 100
}

News Content

{
"mediaNewsOnly": true,
"mediaHasLinks": true,
"contentLanguage": "en"
}

Verified Users Only

{
"usersVerifiedOnly": true
}

Recent Tweets (24 hours)

{
"timeWithinTime": "24h"
}

Local News

{
"geoNear": "New York",
"geoWithinRadius": "50km",
"mediaNewsOnly": true
}

💡 Pro Tips for Maximum Results

Optimization Strategies

  1. Start Specific: Begin with targeted filters and expand as needed
  2. Combine Filters: Use multiple filter types for precise results
  3. Test Iteratively: Experiment with different combinations
  4. Monitor Performance: Track query performance and adjust accordingly

Advanced Techniques

  • Use Engagement Presets: Leverage smart presets for common use cases
  • Time-Based Filtering: Combine date ranges with engagement filters for trending content
  • Geographic Targeting: Use location filters for local market research
  • Content Analysis: Combine language and sentiment filters for brand monitoring

Best Practices

  • Validate Inputs: Our actor validates all filter combinations automatically
  • Handle Pagination: Use cursor-based pagination for large datasets
  • Monitor Rate Limits: Be aware of limitations for high-volume operations
  • Data Quality: Use exclusion filters to improve result relevance

📊 Output

Results are stored in the default Apify dataset with multiple built-in views:

  • 📄 All Tweets - Complete tweet data
  • 👤 Users - User profile information
  • 🔥 High Engagement Tweets - Filtered by engagement
  • 🖼 Tweets with Media - Media-rich tweets

Export Formats

  • JSON - Structured data format
  • CSV - Spreadsheet-compatible
  • Excel - Microsoft Excel format
  • XML - XML format

💰 Pricing

Best Value on Apify: Only $20 per 1,000 results - The cheapest Twitter scraping solution available!

  • Transparent Pricing - No hidden fees
  • Pay Per Result - Only pay for what you get
  • Free Trial Available - Try before you buy
  • Scalable - Perfect for both small and large projects

Get Started: https://apify.com/mikolabs/x-twitter-advanced-search-tweet-scraper


⭐ Use Cases

  • Social Listening & Trend Analysis - Monitor brand mentions and industry trends
  • Brand Monitoring - Track your brand across Twitter
  • Crypto & Stock Sentiment Tracking - Analyze market sentiment
  • Lead Generation - Find potential customers and partners
  • Academic & Research Datasets - Collect data for research
  • Media & Journalism Research - Investigate stories and sources
  • Competitor Analysis - Monitor competitor activities
  • Influencer Discovery - Find relevant influencers
  • Crisis Management - Track negative mentions
  • Content Research - Find trending topics and content ideas

Our actor operates within ethical boundaries and legal frameworks:

  • Public Data Only: We only collect publicly available information
  • No Private Data: We do not access private accounts or DMs
  • GDPR Compliant: Respects privacy regulations and user consent
  • Rate Limiting: Built-in safeguards prevent excessive usage
  • Transparent Operations: Clear documentation of data collection

⚠️ Important: Always respect Twitter's Terms of Service and robots.txt. Use responsibly and ethically.


📞 Support and Documentation

  • Comprehensive Examples: Extensive code samples and use cases
  • Filter Documentation: Detailed explanations of all filter options
  • API Reference: Complete technical documentation
  • Community Support: Active community and expert assistance

📄 License

Licensed under Apache License 2.0 - Free to use, modify, and integrate in commercial projects.


🚀 Getting Started

  1. Set up your Apify account - Create an account at apify.com
  2. Visit the Actor - Go to https://apify.com/mikolabs/x-twitter-advanced-search-tweet-scraper
  3. Choose your search method - Simple Query or Advanced Filters
  4. Configure your parameters - Use our comprehensive filter system
  5. Execute the actor - Run and collect your structured data
  6. Analyze and integrate - Export in multiple formats

🔥 Ready to unlock the full potential of X (Twitter) data? Start with our advanced search capabilities and experience the difference that superior technology makes.

💰 Best Value: Only $20 per 1,000 results - The cheapest Twitter scraping solution on Apify!

Transform your social media intelligence with the most powerful X (Twitter) search solution available.

👉 Get Started Now: https://apify.com/mikolabs/x-twitter-advanced-search-tweet-scraper