I have found this question. However I think this has changed on API version 1.1.
If I use the search/tweets
method, how can I see if the tweet is a RT?
The retweeted field is false if the retweet is not done using the retweet button but rahter via RT, so in such a case, just search the "text" field of all tweets for this pattern
RT @
This pattern can be of help, but I don't think there is any other function for this.
To the ones who are using Hydrator
1 and relying on its CSV
export of the hydrated JSONL
file: you can check reweet_id
(no it's not a typo in version 0.0.12
), and if it's NA
then it's an original tweet as I found.
original_twitter_tweets = twitter_csv_data %>% filter(is.na(reweet_id))
As @Joe Mayo said, check for the retweeted_status
key on the status object.
I have an example that is not caught by @Apoorv Ashutosh's suggestion.
See: https://twitter.com/gppvt/status/474162466776449024 this will redirect (because it is a retweet) to the original tweet. However if you get this tweet through the twitter API, it has retweeted_status
. Notice the text does not contain "RT".