X (Twitter) Tweet Scraper | $0.40/1K Tweets | Pay Per Result avatar

X (Twitter) Tweet Scraper | $0.40/1K Tweets | Pay Per Result

Pricing

from $0.40 / 1,000 results

Go to Apify Store
X (Twitter) Tweet Scraper | $0.40/1K Tweets | Pay Per Result

X (Twitter) Tweet Scraper | $0.40/1K Tweets | Pay Per Result

Extract the timeline of any X (Twitter) account. Add a handle and get ID, URL, text, timestamp, likes, retweets, replies, quotes, views, and media. Export to JSON or CSV, run it via API, or plug it into your agent. $0.40 per 1,000 tweets, pay per result. Served by AnyAPI.

Pricing

from $0.40 / 1,000 results

Rating

0.0

(0)

Developer

AnyAPI

AnyAPI

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

5 hours ago

Last modified

Share

Give it an X handle and it returns one row per post from that account's Posts tab: post ID, URL, text, timestamp, language, likes, retweets, replies, quotes, views, bookmarks, whether it is a reply or pinned, and any attached media. It pages back through the timeline until it reaches the number of posts you asked for.

Input

FieldTypeRequiredDescription
handlestringyesX / Twitter handle, without the leading @.
maxItemsintegernoStop after this many results. Defaults to 100. Each result is charged once.

Output

Every result row is written to the dataset as one JSON object:

{
"id": "1899999999999999999",
"url": "https://x.com/elonmusk/status/1899999999999999999",
"text": "Starship launch window opens tomorrow.",
"createdUtc": 1772236800,
"lang": "en",
"likes": 184203,
"retweets": 21044,
"replies": 9821,
"quotes": 1203,
"views": 24810332,
"bookmarks": 4021,
"isReply": false,
"isPinned": false,
"media": [],
"source": "AnyAPI"
}

Standby mode

This Actor also runs in Standby mode. Send the same input as a JSON body in a POST request and it answers with { "items": [ ... ] }, the same rows a standard run would write, charged the same way.

Pricing

This Actor is billed per result, plus one small fixed charge per run. A result event is charged for every row it writes, and the Actor Start event is charged once when the run begins. A run that finds nothing, or that comes back with an empty list, writes no rows and pays the start charge only. Both prices are on this Actor's Apify Store page.

Support

Something wrong with this Actor, a field you need, or a platform you want added? Open an issue on this Actor, or email support@getanyapi.com and a human will answer.

One shape across every platform

This Actor belongs to a set of sixteen on this account that read YouTube, Instagram, TikTok, X, Reddit, Threads, Facebook Ads Library and Google News. They take the same kind of input, write the same kind of row, bill the same way, and stamp every row with "source": "AnyAPI", so a pipeline written against one of them reads all of them without a second parser.

PlatformActors
YouTubesearch, channel videos, comments, transcripts
Instagramprofile posts, post comments
TikTokprofile videos, keyword search, video comments
Xprofile, user tweets
Redditsearch, post comments
OtherThreads posts, Facebook Ads Library, Google News