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

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

Try for free

Pay $0.25 for 1,000 Tweets

Go to Store
Tweet Scraper|$0.25/1K Tweets | Pay-Per Result | No Rate Limits

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

kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest
Try for free

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 !

00

Multiple profiles

Closed

00xjelly opened this issue
2 days ago

What is your recommendation to elegantly handle a query that might have anywhere from 10-500 profiles to query for a specified date range?

KaitoEasyApi avatar

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

KaitoEasyApi avatar

What is the time range of the tweets you want to query? One month? One year? Or something else?

00

00xjelly

2 days ago

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

KaitoEasyApi avatar

// 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();

KaitoEasyApi avatar

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.

Developer
Maintained by Community

Actor Metrics

  • 268 monthly users

  • 51 stars

  • >99% runs succeeded

  • 5.6 hours response time

  • Created in Oct 2024

  • Modified 16 hours ago