X (Twitter) Posts Search

X (Twitter) Posts Search

by scraper_one

✨ Search for X (formerly Twitter) posts using keywords or hashtags. Retrieve post URLs, content, publication dates, author details, and engagement met...

83,625 runs
482 users
Try This Actor

Opens on Apify.com

About X (Twitter) Posts Search

✨ Search for X (formerly Twitter) posts using keywords or hashtags. Retrieve post URLs, content, publication dates, author details, and engagement metrics. Ideal for monitoring brand mentions on X over time.

What does this actor do?

X (Twitter) Posts Search is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

X (Twitter) Posts Search Apify Actor This Apify Actor searches for posts on X (formerly Twitter) based on keywords or hashtags. The results include post URL, content, publication date, author information, and engagement metrics. It's a powerful tool for monitoring public conversations on X, tracking brand mentions, staying updated on trending topics, and discovering high-engagement posts in real time. Stay ahead of potential reputation risks, detect viral content, and join relevant discussions 🚀 ## Features - 🔍 Search by keywords or hashtags - 🕐 Filter by time window (e.g. posts from the last 7 days) - 🧵 Choose between top or latest results - 🎥 Retrieve media (images, videos, gifs) from posts - 📊 Extract engagement metrics (likes, reposts, replies, quotes) ## Input Parameters | Parameter | Type | Required | Description | |----------------|----------|----------|------------------------------------------------------------------------------------------------------------------| | query | string | ✅ | Keyword or hashtag to search posts for. | | resultsCount | number | ❌ | Maximum number of posts to extract. If not set, only a few of the first posts will be returned. | | timeWindow | number | ❌ | Time window in days, counting back from today. E.g. 7 = last 7 days. Works only with 'Latest' Search Type. | | searchType | string | ❌ | Type of search results: "top" or "latest". Defaults to platform’s default if not specified. | ### Example Input json { "query": "SpaceX", "resultsCount": 30, "timeWindow": 7, "searchType": "latest" } ## Output Data The actor returns an array of JSON objects representing individual X posts. ### Example Output json [ { "postText": "#Iceland hospital\nAnd\nPolice hell !! See you soon on court 😉 https://t.co/axWj1bexPl", "postUrl": "https://x.com/Maj33Majewska/status/1905313916126736649", "timestamp": 1743097211000, "conversationId": "1905313916126736649", "postId": "1905313916126736649", "media": [ { "mediaUrlHttps": "https://pbs.twimg.com/amplify_video_thumb/1905313794902966272/img/0HvmBic_wjBJQa3b.jpg", "type": "video", "id": "1905313794902966272" } ], "author": { "name": "Natalie", "screenName": "Maj33Majewska", "followersCount": 142, "favouritesCount": 300, "friendsCount": 171, "description": "Strict and intelligent person is curious about @SpaceX" }, "replyCount": 0, "quoteCount": 0, "repostCount": 0, "favouriteCount": 0 } ] ✅ Let us know if you'd like to include additional data fields or filters. ## Usage 1. Create an Apify account and open the actor page. 2. Configure input parameters in the Apify UI or via API. 3. Run the actor and monitor logs for progress. 4. Download extracted posts in JSON, CSV, or Excel format. ## Limitations & Notes - Ensure your usage of X's data complies with their Terms of Service. - Avoid excessive scraping to reduce the risk of IP blocking or rate limiting. - Media content is linked directly from X and may expire or be removed. - Rate-limited – Free users can make only a few requests per day. Contact us if you need higher or custom limits! ## Works Best With For best results, use this actor together with X Post Replies Scraper. First, search for tweets matching your criteria using X Posts Search, then pass those tweet URLs into this X Post Replies Scraper to extract replies and enrich your dataset. ✅ ### Best Use Case Flow - 🔎 Run X Posts Search → Find relevant tweets based on keywords or hashtags - 📥 Feed tweet URLs into X Post Replies Scraper → Get replies for each tweet - 📊 Gain insights → Analyze engagement, sentiment, and conversation threads This combination provides a powerful workflow for understanding discussions around specific topics on X. 🚀 ## Other Recommended Scrapers If you're working with multiple platforms or want additional data sources, check out these scrapers: - 🐦 X Post Replies Scraper — Scrap replies of multiple X ( Twitter) posts - 🐦 X Profile Posts Scraper — Scrap posts of specific X ( Twitter) profile - 📘 Facebook Posts Search — Discover Facebook posts for a given topic or page - 📘 Facebook Comments Scraper — Extract comments from public Facebook posts - 📘 Facebook Reactions Scraper — Scrap reactions from Facebook posts (like, sad, haha, angry etc.) - 👟 Zalando Price Alert — Track Zalando products and receive alerts when prices drop - 🎬 YouTube Search Scraper — Extract videos from search queries - 🎬 YouTube Comments Scraper — Extract comments from posted videos - 🍔 Big Mac Price Scraper — Get the most current Big Mac prices around the world - ## Support & Contact 📬 Need help or found a bug? Open an issue or contact us at scraper1one@gmail.com

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try X (Twitter) Posts Search now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
scraper_one
Pricing
Paid
Total Runs
83,625
Active Users
482
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support