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
Related
I am looking at Twitter API reference but I cannot seem to find the right API to get a tweet and its replies that would be equivalent to what I can see on the Twitter web site of given status itself.
What Twitter API returns status and its replies?
There is no API endpoint that returns all the replies of an individual Tweet. You'd need to use the search API to find them.
I am using the Twitter API in a Swift application, I want to show a particular tweet along with all of its replies, How can I do it?
I saw many old posts that say "there is no way to retrieve the replies of a tweet", Has it changed? is there a way to do that now?
example of post
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 want to see how many tweets does a link have. For Facebook, you can use FQL to get the number of Likes each page has.
Is there a page in the Twitter API documentations that describe how to do this?
This seems to work, without authentication:
http://urls.api.twitter.com/1/urls/count.json?url=example.com
For example, to get the number of tweets for this random page on mashable:
http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fmashable.com%2F2012%2F01%2F21%2Ftop-10-tech-this-week-13
Returns the following JSON:
{"count":1204,"url":"http://mashable.com/2012/01/21/top-10-tech-this-week-13/"}
Twitter hasn't released any developer APIs for analytics based on links (assuming you're only interested in links that are wrapped by the t.co wrapper). You can look at the existing documentation but it's not very good.
I don't believe there will be any API for getting the number of tweets that link to an arbitrary url.
What's the REST API call required to undo/remove/destroy/delete a retweet (of another user) from the authenticated user's timeline? There's simply no mention of this in the API documentation on the Twitter website.
Native retweet has all attributes of a simple tweet including a unique ID. So, you can use statuses/destroy method to remove it.
How to get that ID depends on your application. First, it's returned by statuses/retweet method. Second, you can get user's timeline and parse out ID of this tweet.