![Twitter Scraper Lite - Cheapest and Fastest - Pay Per Result avatar](https://images.apifyusercontent.com/WCPJu7x4x55MUT3Y3w2hRiYc7oEEZs4LYopW3MIqKi8/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vbmZwMWZwdDVnVWxCd1Bjb3IvRmJjaG9sQU1jUzN5WkpybTcta2xpcGFydHouY29tLnBuZw.webp)
Twitter Scraper Lite - Cheapest and Fastest - Pay Per Result
Try for free
Pay $0.20 for 1,000 tweets
View all Actors![Twitter Scraper Lite - Cheapest and Fastest - Pay Per Result](https://images.apifyusercontent.com/WCPJu7x4x55MUT3Y3w2hRiYc7oEEZs4LYopW3MIqKi8/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vbmZwMWZwdDVnVWxCd1Bjb3IvRmJjaG9sQU1jUzN5WkpybTcta2xpcGFydHouY29tLnBuZw.webp)
![Twitter Scraper Lite - Cheapest and Fastest - Pay Per Result](https://images.apifyusercontent.com/WCPJu7x4x55MUT3Y3w2hRiYc7oEEZs4LYopW3MIqKi8/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vbmZwMWZwdDVnVWxCd1Bjb3IvRmJjaG9sQU1jUzN5WkpybTcta2xpcGFydHouY29tLnBuZw.webp)
Twitter Scraper Lite - Cheapest and Fastest - Pay Per Result
apidojo/twitter-scraper-lite
Try for free
Pay $0.20 for 1,000 tweets
Twitter Scraper searches and extracts data from Twitter (with historic data from 2006) - parses and converts the data to structured formats: HTML table, JSON, CSV, Excel, and XML. Super cheap Twitter API for $0.20/1000 tweets. Easy usage, customizable. Perfect for integration for products!
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "searchTerms": [
11 "apify"
12 ],
13 "sort": "Latest",
14 "maxItems": 1000,
15 "twitterHandles": [
16 "elonmusk",
17 "cnn"
18 ],
19 "startUrls": [
20 "https://twitter.com/search?q=gpt&src=typed_query&f=live"
21 ]
22};
23
24(async () => {
25 // Run the Actor and wait for it to finish
26 const run = await client.actor("apidojo/twitter-scraper-lite").call(input);
27
28 // Fetch and print Actor results from the run's dataset (if any)
29 console.log('Results from dataset');
30 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31 const { items } = await client.dataset(run.defaultDatasetId).listItems();
32 items.forEach((item) => {
33 console.dir(item);
34 });
35})();
36
37// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 131 monthly users
- 24 stars
- 100.0% runs succeeded
- 5.9 hours response time
- Created in May 2024
- Modified about 21 hours ago
Categories