Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter API: Check if a tweet is a retweet

Tags:

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? I see that the retweeted field always returns false. Is there another field I can use for this answer?

like image 448
Diolor Avatar asked Sep 18 '13 10:09

Diolor


People also ask

How do you check if a tweet is a retweet Tweepy?

Try to access to a tweet with his ID and the author_name. Automatically, it's redirect to the original tweet (different ID and author_name). After some search I found people talking about a "retweeted_status" key. If the key exit, so it's a RT.

How do I get a list of retweets?

To get the list of retweeters, we simply do an API call to statuses/retweeters/ids.

Does Twitter tell you if someone retweets your retweet?

Yes, this happens. And you can be notified of it. In Settings, there is an "Activity related to your Retweets" section.

Can you use regex in Twitter search?

Twitter unfortunately doesn't support searching of tweets using regular expressions which means that you do have to post process. There's not actually any official documentation from Twitter to that effect, but everyone who uses the Twitter search API post-processes their tweets using regex (including me).


1 Answers

If it's a retweet, the tweet will contain a property named retweeted_status. To be complete, retweeted_status will not appear if the tweet is not a retweet. More info at: Tweets.

like image 74
Joe Mayo Avatar answered Sep 17 '22 16:09

Joe Mayo