I was looking at the twitter API, and I couldn't tell if the api allows you to pull your tweets that others have retweeted, or tweets you retweeted. What I'm trying to do is pull in the most recent tweet an account retweeted. I figured if the retweet api didn't do this I could just pull in the timeline and loop through until I reach the last retweet?
These calls will help:
Returns 20 of the most recent retweets posted by the authenticating
user http://api.twitter.com/1/statuses/retweeted_by_me.json
Returns 20 of the most recent tweets of the authenticated user that
have been retweeted by others
http://api.twitter.com/1/statuses/retweets_of_me.json
Returns 20 of the most recent retweets posted by the authenticating
users friends http://api.twitter.com/1/statuses/retweeted_to_me.json
Each works for your own account.
Related
I am looking to get the count of how many users were mentioned by a particular user in its tweets for a specific period of time.
I am looking to achieve it in Twitter API 1.1
For example, an arbitrary user #user1 mentioned 20 users in his tweets since last 10 days.
Can we get the total Retweet_Count per an account OR per Screenname like followers count at user level as followers count is a property associated with user information, Where as Retweet_Count is a field associated with each individual Tweet.
I'm thinking I need to get all the tweets of a user then add the filed Retweet_Count in each & every tweet a user received. Here the problem is the total number of tweets getting using twitter rest api are limited to last 200 tweets (only 2 weeks old tweets in these 200).
We cannot find historical tweets with Streaming API, If we store all the real time tweets using streaming api in our local database then with the use of id of each tweet record in our local data base we need to call twitter rest api call(GET statuses/show/:id) in a loop, then add all the Retweet_Count value in this loop. But due to this the number of restapi calls are increasing to get the total Retweet_Count.
Please suggest me for the better approach.
No, that's not at all possible .
Since the retweet_count associates with each tweet, you need to get all the tweets first.
The reason why i said it's impossible is because if a user has more than 3200 tweets, then you can't get the exact retweet_count as twitter offers only 3200 most recent tweets of a user through GET statuses/user_timeline.
GET statuses/user_timeline method can only return up to 3,200 of a
user’s most recent Tweets. Native retweets of other statuses by the
user is included in this total, regardless of whether include_rts is
set to false when requesting this resource.
One more thing. Some Tweets retweent_count may vary time to time. I mean some may undo retweet & some may retweet old tweet or past week tweet. So, you need to retrieve all the tweets again and again to update-to-date with exact retweet_count. By doing this, there are more chances that you will fall in Twitter's Rate Limit.
Is there a way in the Twitter API v1.1 to get the id's of all the users that replied, favorited and retweeted to a particular tweet using its id?
I've searched in older posts but I didn't find an simple way to do it.
Thanks
According to Twitter Staff Episod,
It's not possible with the API after the fact for a tweet that has more than 100 retweets. You would need to collect them in real time as they happen to collect them all. The Streaming API is the best bet for tracking such things.
So, you can only get 100 Retweets ID of a tweet through REST API. Move to Streaming API to get all the Retweets ID but you can't get the past data. You can only get data in Streaming API from present - to - future.
I am new to using twitter streaming api.
I want to allow users to tweet from my application a text . And then if some body retweets that, i want to get notified.
If there are thousands of users who tweeted from my app, i need to know if somebody retweeted for each of their tweet.
Do we need to do constantly search for each users tweet id using streaming api to see if there are any retweets. ?
For this to happen , should i user give permission for my twitter app so we can see if any retweets
I'm trying to get the last tweet from the people I follow using the twitter api (http://api.twitter.com/1/statuses/friends.json&screen_name=[username]), but I noticed that if the user's last tweet is a retweet, the json data does not contain a "status" element.
Using the "user timeline" api does not work either, the last tweet is the last non retweeted tweet.
Is there a way to get the real last status, even if it's a RT, through the twitter API?
This was addressed recently by the Twitter devs. You can now add a include_rts=true to your call to user_timeline. See the full discussion here: http://groups.google.com/group/twitter-development-talk/browse_thread/thread/7a4be385ff549ed0