In_reply_to Fields Are Null on Retweets


This seems odd. My python script is pulling back tweets that are clearly retweets, and that have lots of data in the retweeted_status sub-fields, but all the “in_reply_to” fields are null.

Here’s an example of the data for one tweet. Notice that all the in_reply fields are null, but the retweeted _status fields are populated.

“text” : “RT @NiallOfficial: Cmon ukraine!”,
“in_reply_to_status_id” : null,
“in_reply_to_screen_name” : null,
“in_reply_to_user_id” : null,
“in_reply_to_user_id_str” : null,
“in_reply_to_status_id_str” : null,

“retweeted_status” : {
“text” : “Cmon ukraine!”,
“id” : NumberLong(“215156690419597312”),
“id_str” : “215156690419597312”,
“user” : {
“screen_name” : “NiallOfficial”,

Any idea what’s up with that? I want to use “in_reply_to_user_id_str” to identify retweets, but that obviously won’t work if it is null even for retweets. What is the most reliable way in the API to detect if a tweet is a retweet?