X (Twitter) Search Scraper avatar

X (Twitter) Search Scraper

Pricing

$7.50 / 1,000 tweet results

Go to Apify Store
X (Twitter) Search Scraper

X (Twitter) Search Scraper

X (Twitter) Search Scraper is a data extraction tool that collects public posts, profiles, hashtags, and engagement metrics from X (formerly Twitter) based on specific search queries. It enables users to gather real-time social media data without manually browsing the platform.

Pricing

$7.50 / 1,000 tweet results

Rating

0.0

(0)

Developer

Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

3

Monthly active users

a day ago

Last modified

Share

X (Twitter) Search Scraper — Search, Tweet & Profile Scraper

Search Twitter/X by keyword, grab a single tweet by URL, or pull a user's recent posts — all with one input field. No Twitter API key needed.

Pricing: $7.50 / 1,000 tweets | Output: JSON / CSV / Excel / HTML / XML | Tabs: Top · Latest · Photos · Videos


TL;DR — Quick Start

{ "query": "n8n automation", "max_results": 20, "product": "Latest" }

Or paste a tweet URL:

{ "query": "https://x.com/elonmusk/status/2065485963120328945" }

Or a profile:

{ "query": "https://x.com/elonmusk" }

The Actor auto-detects whether you're searching by keyword, fetching a single tweet, or browsing a user's timeline.


Who Is This For? — Use Cases

UserHow They Use It
Marketers & Brand ManagersMonitor brand mentions, track campaign hashtags, analyze competitor activity on X
Lead Generation TeamsFind prospects mentioning relevant keywords or engaging with competitors
Data Scientists & ML EngineersBuild training datasets for NLP, sentiment analysis, and trend prediction models
Researchers & JournalistsCollect tweets by topic, date range, or author for qualitative and quantitative analysis
Customer Support TeamsTrack product mentions and sentiment in real time to respond faster
Investors & AnalystsTrack sentiment around stocks, crypto, or market-moving events as they unfold
Content CreatorsResearch trending topics, find viral content patterns, and identify influencer engagement
Compliance & LegalArchive public tweets for regulatory compliance, evidence collection, or audit trails

Input Modes — Auto-Detected

The query field accepts three types of input. The Actor detects which mode to use automatically.

1. Search Query (default)

Keywords, hashtags, or advanced search operators.

FieldTypeDefaultDescription
querystring"apify"Keywords, hashtags, or advanced search operators
max_resultsinteger20Max tweets to return (1–100)
productselect"Top"Search tab: Top, Latest, Photos, Videos

Examples:

{ "query": "n8n automation", "max_results": 10, "product": "Latest" }
{ "query": "ai -filter:retweets", "max_results": 50, "product": "Top" }
{ "query": "from:elonmusk", "max_results": 20 }

2. Tweet URL

Paste a tweet link to fetch that single tweet and its replies.

{ "query": "https://x.com/elonmusk/status/2065485963120328945" }
{ "query": "https://twitter.com/username/status/123456789" }

max_results and product are ignored in this mode.

3. Profile

Paste a profile URL or @handle to get the user's recent tweets.

FieldNotes
queryhttps://x.com/elonmusk or @elonmusk
max_resultsControls how many recent tweets to pull (1–100)
{ "query": "https://x.com/elonmusk", "max_results": 30 }
{ "query": "@n8n_io", "max_results": 10 }

Advanced Search Query Examples

GoalQuery
Tweets from a specific userfrom:elonmusk
Exclude retweetsai -filter:retweets
Date rangeclimate since:2026-01-01 until:2026-03-01
Language filterAI lang:en
Minimum engagementcrypto min_faves:100
Mentions of a user@apify
Specific hashtag#n8n
Combine operatorsfrom:nasa filter:media since:2026-01-01

Output Format

Each dataset item contains:

{
"id": "1234567890123456789",
"url": "https://x.com/i/status/1234567890123456789",
"text": "Hello world!",
"author": {
"id": "12345",
"name": "Display Name",
"screen_name": "username",
"avatar": "https://pbs.twimg.com/...",
"verified": true
},
"metrics": {
"likes": 42,
"retweets": 10,
"replies": 5,
"views": 2000,
"bookmarks": 3
},
"media": [
{ "type": "photo", "url": "https://pbs.twimg.com/..." }
],
"createdAt": "Thu Jun 11 00:36:46 +0000 2026",
"lang": "en",
"is_retweet": false
}

Download results as JSON, CSV, HTML, Excel, or XML from the Output tab or via the Apify API.


Pricing

Pay-per-event at $7.50 per 1,000 tweets ($0.0075/tweet). Example costs:

TweetsCost
100$0.75
1,000$7.50
10,000$75.00
100,000$750.00

Your Apify account spending limit is always respected — the Actor stops automatically when the limit is reached.


Tips for Best Results

  • Search mode: Use advanced search operators for precise queries (from:user, since:, lang:en, -filter:retweets)
  • Tweet mode: Only the first tweet in the thread is fetched; replies appear as separate items
  • Profile mode: Set max_results to what you actually need — you pay per tweet
  • Search tab: Use Latest for real-time monitoring, Top for relevance-ranked results
  • The Latest tab often returns fewer results than Top — if you need volume, use Top

FAQ

This Actor extracts only publicly available tweets. Respect X's Terms of Service and applicable privacy regulations (GDPR, etc.). Consult your legal team for your specific use case.

What happens if the search returns no results?

The Actor pushes an empty dataset and exits cleanly. Try broadening your query or switching from Latest to Top.

How do I get more than 100 results?

The current limit is 100 tweets per run. For larger volumes, run the Actor multiple times with different queries.

What if authentication fails?

Contact the developer to refresh the Twitter credentials. Authentication tokens expire when the X session is logged out.