Twitter (X) Reply Scraper avatar

Twitter (X) Reply Scraper

Try for free

2 hours trial then $20.00/month - No credit card required now

Go to Store
Twitter (X) Reply Scraper

Twitter (X) Reply Scraper

louisdeconinck/twitter-reply-scraper
Try for free

2 hours trial then $20.00/month - No credit card required now

Extract detailed information about tweets and their replies from Twitter/ X.com. This scraper collects data on tweet & comment details, user information, and reply content, providing insights for social media analysis, sentiment tracking & trend monitoring. No authentication or cookies needed.

Twitter (X) Reply Scraper is an Apify actor that allows you to extract detailed information about tweets and their replies from Twitter.com / X.com. This scraper can collect data on tweet & comment details, user information, and reply content, providing valuable insights for social media analysis, sentiment tracking, or trend monitoring.

Why use Twitter (X) Reply Scraper?

  • Comprehensive Data Collection: Gather extensive information about tweets, including text, engagement metrics, and timestamps.
  • Reply Insights: Extract detailed information about replies & comments, including user data and engagement metrics.
  • Flexible Scraping Options: Choose to focus on specific tweets or users based on your research needs.
  • No Authentication Required: No need for cookies or authentication, removing the risk of bans and making it easier to use.

How to use Twitter (X) Reply Scraper

  1. Set up your Input:

    • Provide start URLs from X.com (e.g., specific search URLs).
    • Set the maximum number of tweets to scrape.
    • Set the maximum number of replies per tweet to scrape.
  2. Run the Actor: Start the actor and let it crawl the specified X pages.

  3. Retrieve Results: Once the run is complete, download the scraped data in your preferred format (JSON, CSV, or Excel).

Input Configuration

  • startUrls: Provide a list of URLs from X.com (e.g., specific tweet URLs).
  • maxSearchResults: Set the maximum number of search results to scrape.
  • maxReplies: Set the maximum number of replies per tweet to scrape. If you're only interested in the tweet, set this to 0, it will greatly reduce your usage costs and speed up the process a lot.

Example Input

1{
2	"startUrls": [
3		{
4			"url": "https://x.com/search?q=%23journorequest+min_replies%3A10&src=typed_query&f=live"
5		},
6		{
7			"url": "https://x.com/search?q=%23durftevragen+min_replies%3A10&src=typed_query&f=live"
8		}
9	],
10	"maxSearchResults": 30,
11	"maxReplies": 10
12}

Obtaining Start URLs

You can copy any X.com search URL and use it as a start URL. You can select the Latest tab to get the latest tweets or the Top tab to get the most popular tweets.

There is also an advanced search option available at https://x.com/search-advanced where you can use various parameters to refine your search results more precisely.

You can set these parameters in the advanced search page:

  • Words:

    • Use keywords or phrases to search for specific content.
    • Example: "breaking news" will find tweets containing the exact phrase "breaking news".
    • Use "OR" to search for tweets containing either of two terms (e.g., "cats OR dogs").
    • Use "-" before a word to exclude tweets containing that word (e.g., "-cats" excludes tweets with "cats").
    • Use "#" to search for specific hashtags (e.g., "#ThrowbackThursday").
  • Accounts:

    • Use "from:" to find tweets from a specific account (e.g., "from:@X").
    • Use "to:" to find replies to a specific account (e.g., "to:@X").
    • Use "@" to find tweets mentioning specific accounts (e.g., "@SFBART OR @Caltrain").
  • Filters:

    • Select "Replies" to include or exclude reply tweets.
    • Choose "Links" to include or focus on tweets with links.
  • Engagement:

    • Use "min_replies:", "min_faves:", or "min_retweets:" followed by a number to set minimum engagement thresholds.
  • Date Range:

    • Specify a date range to narrow down the search period.
  • Language:

    • Select a specific language to filter tweets.
  • Location:

    • Specify a location to find geo-tagged tweets from that area.

Output Data

The actor will output the following data for each tweet and its replies:

  • tweetLink: The URL of the tweet.
  • avatar: The URL of the user's avatar.
  • fullname: The full name of the user who posted the tweet.
  • handle: The handle of the user who posted the tweet.
  • verified: Whether the user is verified.
  • tweetDate: The timestamp of the tweet.
  • tweetContent: The text of the tweet.
  • commentCount: The number of comments the tweet has received.
  • retweetCount: The number of retweets the tweet has received.
  • quoteCount: The number of quotes the tweet has received.
  • likeCount: The number of likes the tweet has received.
  • repliesData: An array of replies to the tweet, each containing the same fields as the tweet.

Example Output

1{
2	"tweetLink": "https://x.com/meehikabarua/status/1867564631180632295",
3	"avatar": "https://pbs.twimg.com/profile_images/1690785189792735232/BmUFicth_bigger.jpg",
4	"fullname": "Meehika Barua",
5	"handle": "@meehikabarua",
6	"verified": null,
7	"tweetDate": "2024-12-13T13:38:00.000Z",
8	"tweetContent": "Looking for menswear experts to comment on what to wear to job interview for a Men's Journal piece. Deadline 16th Dec. Email in bio.\n#journorequest #prrequest",
9	"commentCount": 11,
10	"retweetCount": 4,
11	"quoteCount": 0,
12	"likeCount": 11,
13	"repliesData": [
14		{
15			"tweetLink": "https://x.com/editorielle/status/1867567715252408465",
16			"avatar": "https://pbs.twimg.com/profile_images/1730590378942681088/MbS2v-ce_bigger.jpg",
17			"fullname": "EDITORIELLE",
18			"handle": "@editorielle",
19			"verified": "verified",
20			"tweetDate": "2024-12-13T13:50:00.000Z",
21			"tweetContent": "We've shared this with our Fashion network for you Meehika! Thanks, Bethany x",
22			"commentCount": 1,
23			"retweetCount": 0,
24			"quoteCount": 0,
25			"likeCount": 1
26		},
27		{
28			"tweetLink": "https://x.com/MediaMatchMaker/status/1867585988102697438",
29			"avatar": "https://pbs.twimg.com/profile_images/1148575226432802818/nLiLszhz_bigger.png",
30			"fullname": "MediaMatchMaker",
31			"handle": "@MediaMatchMaker",
32			"verified": "verified",
33			"tweetDate": "2024-12-13T15:02:00.000Z",
34			"tweetContent": "Hi Meehika, we have shared this for you and let us know if we can help with any future journo requests. - Media Matchmaker Team",
35			"commentCount": 1,
36			"retweetCount": 0,
37			"quoteCount": 0,
38			"likeCount": 0
39		},
40		{
41			"tweetLink": "https://x.com/KintijaPR/status/1867602139679498305",
42			"avatar": "https://pbs.twimg.com/profile_images/1854884381308895232/uPeanSn1_bigger.jpg",
43			"fullname": "kintija/ kiki",
44			"handle": "@KintijaPR",
45			"verified": null,
46			"tweetDate": "2024-12-13T16:07:00.000Z",
47			"tweetContent": "Hey Meehika, have dropped you an email in regard to this! 😊",
48			"commentCount": 1,
49			"retweetCount": 0,
50			"quoteCount": 0,
51			"likeCount": 1
52		},
53		{
54			"tweetLink": "https://x.com/makesyoucakes/status/1867565936443580435",
55			"avatar": "https://pbs.twimg.com/profile_images/1767833219280580608/MR3fO5Yd_bigger.jpg",
56			"fullname": "Makepeace Sitlhou",
57			"handle": "@makesyoucakes",
58			"verified": null,
59			"tweetDate": "2024-12-13T13:43:00.000Z",
60			"tweetContent": "Only guy worth talking to @dieworkwear",
61			"commentCount": 1,
62			"retweetCount": 0,
63			"quoteCount": 0,
64			"likeCount": 2
65		}
66	]
67}
Developer
Maintained by Community

Actor Metrics

  • 41 monthly users

  • 2 stars

  • 50% runs succeeded

  • 23 days response time

  • Created in Oct 2024

  • Modified 25 days ago