I can't get old tweets having "Premium - Search Tweets: Full-archive endpoint"


#1

Hello!
I applied for Premium and was accepted. Now I try to search old tweets in R, however I get nothing:

search = searchTwitter(’@whitehouse’, n = 10, since = ‘2018-05-20’, until = ‘2018-05-27’)
Warning message:
In doRppAPICall(“search/tweets”, n, params = params, retryOnRateLimit = retryOnRateLimit, :
10 tweets were requested but the API can only return 0

Could you help me? Thanks.
Iryna


#2

It looks like you’re probably using an R library that does not support premium search (it is trying to call the search/tweets endpoint, and that represents the standard search API).

There’s an example of some R code that you might be able to use in this thread.