🏯 Tweet Scraper V2 ($0.4 / 1K tweets) - X / Twitter Scraper avatar
🏯 Tweet Scraper V2 ($0.4 / 1K tweets) - X / Twitter Scraper

Pricing

from $0.40 / 1,000 tweets

Go to Store
🏯 Tweet Scraper V2 ($0.4 / 1K tweets) - X / Twitter Scraper

🏯 Tweet Scraper V2 ($0.4 / 1K tweets) - X / Twitter Scraper

Developed by

API Dojo

API Dojo

Maintained by Community

⚡️ 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!

2.6 (72)

Pricing

from $0.40 / 1,000 tweets

719

Total users

17K

Monthly users

2.1K

Runs succeeded

>99%

Issues response

5.3 hours

Last modified

13 hours ago

YO

Limitations on number of tweets retrieved

Closed

yoy48kes opened this issue
11 days ago

HI, I will be scraping tweets using only search terms (so not scraping profiles). I was wondering if there is any limitation on how many tweets are retrieved per time span using since and until.

I need to retrieve approximately 700K tweets from 2020 to 2021. Can I do one run for the whole 4 years? (ofc I would be splitting in batches but can the batches still cover the 4 years? for example 100k tweets per batch, or there is a limitation of some sort?)

Also I wanted to ask if such an amount of tweets is doable using the console, if done in batches, or it is necessary to use API.

thanks

apidojo avatar

Hello,

Unfortunately twitter is not very predictable so we suggest you to create several runs for that purpose. Please keep in mind that we have some ground rules for this actor mentioned at https://apify.com/apidojo/tweet-scraper#important-note. If you think your runs can violate these, please consider using Twitter Scraper Unlimited (https://apify.com/apidojo/twitter-scraper-lite)

Cheers

YO

yoy48kes

10 days ago

Hi. I understand, I think I will be splitting in quarters (4 months per run). My question is, is there a limit of how many tweets i can get in this 4 month per search? I read somewhere in the documentation that a query only returns 800 tweets, does it apply to my case where i use search terms (not on a specific profile)? For example, for one term, is there a limit in how many tweets i can scrape if i use since and until for a 4 months interval?

apidojo avatar

Hello,

We don't have any limitations but Twitter has them and it is very hard to know when and how many they do. Previously they were applying 800 tweet limitation per query but recently we saw that you can fetch more than 10s of thousands tweet with some queries.

We are passing this query directly to Twitter and return you whatever it returns to us, that's why we don't have certain answers to your question. However it's always a good idea to try to split your queries.

Cheers

YO

yoy48kes

10 days ago

Another question:

Is there a difference in using "since" and "until" in this way (with the search terms);

"searchTerms": [
"from:NASA since:2023-01-01 until:2023-03-01",
"from:NASA since:2023-03-01 until:2023-05-01",
"from:NASA since:2023-05-01 until:2023-07-01",
"from:NASA since:2023-07-01 until:2023-09-01",
"from:NASA since:2023-09-01 until:2023-12-01"
],

or using start date and end date from query wizard?

apidojo avatar

Hello,

It depends. For instance start/end date filters don't work with startUrls or twitterHandles.

If you are using searchTerms with Twitter queries, don't use any other filters as you don't need them. Those are only helpers to build the queries for you. The best and most advanced way is to use only searchTerms

Cheers

apidojo avatar

Hello,

It depends. For instance start/end date filters don't work with startUrls or twitterHandles.

If you are using searchTerms with Twitter queries, don't use any other filters as you don't need them. Those are only helpers to build the queries for you. The best and most advanced way is to use only searchTerms

Cheers

YO

yoy48kes

10 days ago

So you mean that i should use only searchterms and put since and until in there like this:

{ "includeSearchTerms": true, "maxItems": 3000, "onlyImage": false, "onlyQuote": false, "onlyTwitterBlue": false, "onlyVerifiedUsers": false, "onlyVideo": false, "searchTerms": [ "covid OR vaccine OR anxiety OR depression OR autism since:2020-01-01 until:2020-04-30", "arthritis OR antibiotics OR flu jab OR dementia OR bronchitis since:2020-01-01 until:2020-04-30", "chronic obstructive pulmonary disease OR heart failure OR coronavirus OR diabetes OR bacterial meningitis since:2020-01-01 until:2020-04-30", "chlamydia OR back pain OR hemorrhage OR bowel cancer OR stroke syndrome since:2020-01-01 until:2020-04-30", "infertility OR nutritional deficiencies OR pneumonia OR herpes OR vitamin d since:2020-01-01 until:2020-04-30" ], "tweetLanguage": "en" }

????

This is what im doing but for some reasons 90% of the tweets are on one day (29th April), how can I solve this problem? I need to cover the whole time window

apidojo avatar

Hello,

Seems like there are lots of tweets with these queries and you need to increase the maxItems. Also please consider using parentheses with OR queries.

Cheers

YO

yoy48kes

10 days ago

Hi, what is exactly maxItems? You mean how many results i want from the run? Also, why parenteses with OR queries? where should the parenteses be?

cheers

apidojo avatar

Hello,

maxItems is the maximum items you want from a single run, please refer to the documentation we have information for all of these there https://apify.com/apidojo/tweet-scraper#input-parameters

To get more information on how to use Twitter queries, please refer to the official documentation at https://developer.x.com/en/docs/x-api/v1/rules-and-filtering/search-operators and some unofficial documents like https://github.com/igorbrigadir/twitter-advanced-search

Cheers