Twitter API: Check if a tweet is a retweet

前端 未结 9 2430
南笙
南笙 2020-12-15 05:33

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?

9条回答
  •  太阳男子
    2020-12-15 05:54

    As everyone else has mentioned, you can check to see if the retweeted_status property exists in the response subfield for that Tweet.

    However, per the current version of the API, every Tweet object has the field retweeted that stores a boolean value (True or False) that will tell you if a Tweet has been retweeted.

提交回复
热议问题