pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://apify.com/builditn0w/x-twitter-scrapper

GotdEJBWmJleWptaDFMR3BsQS9yczpmaWxsOjMyOjMyL2NiOjEvYUhSMGNITTZMeTloY0dsbWVTMXBiV0ZuWlMxMWNHeHZZV1J6TFhCeWIyUXVjek11ZFhNdFpXRnpkQzB4TG1GdFlYcHZibUYzY3k1amIyMHZTVmgxVGxRM1JsZE1kemxVYWxCUWRUZ3Zla1ZQUjJOTVN6Rk9aMEkwTTI5R1l6SXRiV0Z6YVd0bExtcHdaV2MuanBlZw.webp"/>Post (Tweet) Scrapper - X.com / Twitter (Pay per result) · Apify
Post (Tweet) Scrapper - X.com / Twitter (Pay per result) avatar
Post (Tweet) Scrapper - X.com / Twitter (Pay per result)
Under maintenance

Pricing

$0.35 / 1,000 posts

Go to Apify Store
Post (Tweet) Scrapper - X.com / Twitter (Pay per result)

Post (Tweet) Scrapper - X.com / Twitter (Pay per result)

Under maintenance

Developed by

Lars

Lars

Maintained by Community

💰 $0.35 per 1000 tweets / custom search query

0.0 (0)

Pricing

$0.35 / 1,000 posts

6

145

19

Last modified

8 months ago

X (Twitter) Search Crawler

This Apify Actor fetches tweets from X (formerly Twitter) based on provided search queries. It uses the X API to search for tweets and returns the data in a structured format.

Input

The Actor accepts the following input parameters:

FieldTypeDescription
searchQueriesArrayArray of search queries to fetch tweets from X (e.g., from:username since:2024-01-01 until:2024-01-31)

Search Query Syntax

X (Twitter) supports a variety of search operators that you can use to refine your search:

  • from:username - Tweets from a specific user
  • to:username - Tweets replying to a specific user
  • since:YYYY-MM-DD - Tweets after a specific date
  • until:YYYY-MM-DD - Tweets before a specific date
  • #hashtag - Tweets containing a specific hashtag
  • url:example.com - Tweets containing links to a specific domain
  • filter:media - Tweets containing media (images, videos)
  • filter:links - Tweets containing links
  • filter:replies - Tweets that are replies
  • filter:retweets - Tweets that are retweets
  • min_retweets:n - Tweets with at least n retweets
  • min_faves:n - Tweets with at least n likes

You can combine these operators to create more specific searches.

Search Query Examples

A simple search query example:

from:apify since:2024-01-01 until:2024-01-31

A search query example with multiple operators:

from:apify since:2024-01-01 until:2024-01-31 filter:media

Output

The Actor outputs the tweet data in a structured format, including:

  • Tweet ID
  • Tweet text
  • Tweet URL
  • Creation timestamp
  • Engagement metrics (likes, retweets, replies, quotes, bookmarks)
  • Media attachments (if present)
  • Information about whether the tweet is a retweet or quote
  • Search query used to find the tweet

Output Schema

Each tweet is returned as a JSON object with the following structure:

FieldTypeDescription
urlStringThe full URL to the tweet on X.com
idStringThe unique identifier of the tweet
textStringThe full text content of the tweet
retweet_countNumberNumber of retweets
reply_countNumberNumber of replies
like_countNumberNumber of likes
quote_countNumberNumber of quote tweets
bookmark_countNumberNumber of bookmarks
created_atStringThe timestamp when the tweet was created
isretweetBooleanWhether the tweet is a retweet
isquoteBooleanWhether the tweet is a quote tweet
mediaArrayArray of media objects attached to the tweet
search_queryStringThe search query used to find this tweet

For tweets with media, each item in the media array has the following structure:

FieldTypeDescription
typeStringThe type of media (e.g., "photo", "video", "animated_gif")
urlStringThe URL to the media file
display_urlStringThe shortened URL displayed in the tweet
expanded_urlStringThe full URL to the media on X.com

Sample Output

Example of a tweet without media:

{
"url": "https://x.com/username/status/1234567890123456789",
"id": "1234567890123456789",
"text": "@another_user This is an example tweet text showing what the output looks like!",
"retweet_count": 0,
"reply_count": 1,
"like_count": 2,
"quote_count": 0,
"bookmark_count": 0,
"created_at": "Sat Dec 28 15:12:37 +0000 2024",
"isretweet": false,
"isquote": false,
"media": [],
"search_query": "from:username since:2024-11-26 until:2024-12-31"
}

Example of a tweet with media:

{
"url": "https://x.com/username/status/1234567890123456789",
"id": "1234567890123456789",
"text": "@another_user This is an example tweet with an image attached!",
"retweet_count": 0,
"reply_count": 0,
"like_count": 1,
"quote_count": 0,
"bookmark_count": 0,
"created_at": "Fri Dec 27 22:49:00 +0000 2024",
"isretweet": false,
"isquote": false,
"media": [
{
"type": "photo",
"url": "https://pbs.twimg.com/media/example_image.jpg",
"display_url": "pic.x.com/example",
"expanded_url": "https://x.com/username/status/1234567890123456789/photo/1"
}
],
"search_query": "from:username since:2024-11-26 until:2024-12-31"
}
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy