
🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper
Pricing
$0.40 / 1,000 tweets

🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper
⚡️ Lightning-fast search, URL, list, and profile scraping, with customizable filters. At $0.40 per 1000 tweets, and 30-80 tweets per second, it is ideal for researchers, entrepreneurs, and businesses! Get comprehensive insights from Twitter (X) now!
3.9 (54)
Pricing
$0.40 / 1,000 tweets
630
Monthly users
1.4k
Runs succeeded
>99%
Response time
4.6 hours
Last modified
6 hours ago
You can access the 🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "startUrls": [
12 "https://twitter.com/apify",
13 "https://twitter.com/search?q=apify%20&src=typed_query",
14 "https://twitter.com/i/lists/78783491",
15 "https://twitter.com/elonmusk/with_replies"
16 ],
17 "searchTerms": [
18 "web scraping",
19 "scraping from:apify"
20 ],
21 "twitterHandles": [
22 "elonmusk",
23 "taylorswift13"
24 ],
25 "conversationIds": [
26 "1754067365707563045",
27 "1732037140111102460"
28 ],
29 "maxItems": 1000,
30 "sort": "Latest",
31 "tweetLanguage": "en",
32 "author": "apify",
33 "inReplyTo": "webexpo",
34 "mentioning": "elonmusk",
35 "geotaggedNear": "Los Angeles",
36 "withinRadius": "15km",
37 "geocode": "37.7764685,-122.4172004,10km",
38 "placeObjectId": "96683cc9126741d1",
39 "minimumRetweets": 5,
40 "minimumFavorites": 5,
41 "minimumReplies": 5,
42 "start": "2021-07-01",
43 "end": "2021-07-02",
44 "customMapFunction": (object) => { return {...object} }
45};
46
47// Run the Actor and wait for it to finish
48const run = await client.actor("apidojo/tweet-scraper").call(input);
49
50// Fetch and print Actor results from the run's dataset (if any)
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use 🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
npm install apify-client
Other API clients include:
Pricing
Pricing model
Pay per resultThis Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.
Price per 1,000 items
$0.40