
Tweet Scraper|$0.25/1K Tweets | Pay-Per Result | No Rate Limits
Pay $0.25 for 1,000 Tweets

Tweet Scraper|$0.25/1K Tweets | Pay-Per Result | No Rate Limits
Pay $0.25 for 1,000 Tweets
Only $0.25/1000 tweets for Twitter scraping, 100% reliability, swift data retrieval.This incredible low price is almost too good to be true.Thanks to our large-scale operations and efficient servers, we can offer you rock-bottom prices that no competitors can match. Don't miss this opportunity !
Multiple profiles
What is your recommendation to elegantly handle a query that might have anywhere from 10-500 profiles to query for a specified date range?

Hi, I'll send you sample code later. What programming language would you like to see the sample code in?

What is the time range of the tweets you want to query? One month? One year? Or something else?
00xjelly
It would be a date range picker, so the query should be able to handle multiple date ranges if possible. TypeScript with React, specifically using Next.js 14

// Define the API token and request body const API_TOKEN = "<YOUR_API_TOKEN>"; // Replace with your actual API token
const reqbody = { searchTerms: [ "from:elonmusk since:2024-01-01_00:00:00_UTC until:2024-01-02_00:00:00_UTC", "from:NASA since:2024-01-01_00:00:00_UTC until:2024-01-02_00:00:00_UTC", ], };
// Define the API endpoint
const url = https://api.apify.com/v2/acts/kaitoeasyapi~twitter-x-data-tweet-scraper-pay-per-result-cheapest/run-sync-get-dataset-items?token=${API_TOKEN}
;
// Function to send the POST request async function sendRequest() { try { const response = await fetch(url, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(reqbody), // Convert the request body to JSON });
1// Handle the response 2if (response.ok) { 3 const data = await response.json(); 4 console.log("Request successful!"); 5 console.log("Response data:", data); 6} else { 7 console.error("Request failed!"); 8 console.error("Status code:", response.status); 9 console.error("Error message:", await response.text()); 10}
} catch (error) { console.error("An error occurred:", error); } }
// Call the function to send the request sendRequest();

This way, you will get all the tweets from multiple profiles for the specified time period in one go. If you have any other questions, please leave a comment or contact me via x.com/kaitoEasyApi.
00xjelly
Hi there, this has been working fine. However I have added an 'upload csv' functionality that has profiles in which to run the actor. When I try with say 30 profiles, some are being called correctly but others are receiving a 402 error. Is there a rate limit or something similar to be aware of? Or a specific method to handle bulk multiple profile requests? E.g. 30+?
00xjelly
Is it preferable to batch process large CSVs?

Hi, could you please provide your run_id? Please keep it confidential.
00xjelly
There are multiple, it's running on every profile in the csv
00xjelly
Is it even possible to combine multiple into one run? I noticed the tool tip for search terms notes that each unique would be an additional run? In that instance, is there a rate limit on how many unique search terms can exist at once? Hence the need to batch process a large CSV?

Hi there, as I mentioned earlier, you can use searchTerms
to run multiple search conditions simultaneously.
Sorry, I don't quite understand what you mean by "added an 'upload csv' functionality." There is no such function on the API.

If possible, please share your runId or code. Or contact me on Twitter or Telegram. https://x.com/KaitoEasyAPI https://t.me/KaitoEasyAPI
Actor Metrics
335 monthly users
-
69 bookmarks
>99% runs succeeded
4.4 hours response time
Created in Oct 2024
Modified 9 hours ago