Get number of retweet of any URL with new Twitter API 1.1


#1

Hi,
i’ve a question about new twitter API 1.1

Now i use: http://urls.api.twitter.com/1/urls/count.json?url=SOME_URL_HERE and i get number of retweet of any URL.

Wich is the new function in API 1.1 to get number of retweet of any URL?

Thanks.


#2

That is an undocumented endpoint that is not permitted for use in any version of the API.


#3

Is there no alternative to get retweet by url?
Thanks


#4

Counting in real time using the Streaming API is the recommended approach.

[faq:6899]


#5

@episod, can you provide an example using the above APIs that you mention?


#6

{“count”:0,“url”:“http://some_url_here/”}


#7

{“count”:0,“url”:“http://some_url_here/”}


#8

Inside of each record from https://api.twitter.com/1.1/statuses/retweets there is a attribute called “retweeted_status”, witch has the “retweet_count” that you seek.


#9

Did anyone find a way for this to work? The problem I see with using the streaming API, is that it returns a list of all of the tweets containing the url, where all we need is the count, and it is limited to 100 replies. For a high traffic link this is not going to work.