3
votes

Hey. I successfully installed Twitter Streaming API. I can read statuses but don't know exactly how to distinguish between tweets and retweets.

http://dev.twitter.com/pages/tweet_entities

So my questions are - how do you know that a is a tweet/retweet - how can I get the list of user ids that have retweeted the original tweet

Thx.

3
I think, that if retweeted_status key exists then this is a retweet. Am I right? But why is retweeted key always false? - xpepermint

3 Answers

2
votes

{ "retweeted": true } is only the case if user logged into the streaming API did the retweeting.

See http://blog.programmableweb.com/2010/08/30/twitter-api-adds-retweet-count-and-more/

0
votes

If you are looking for particular RTs lets say from Jack and Paul. Jut track "RT @Jack" and "RT @Paul".

0
votes

In the JSON you get back from the API, you'll get data like this:

{
    "retweeted":false,
    "text":"Testing streaming api",
    "geo":{...}
}

Simply get the value of retweeted and you have your answer.