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

best4webdesign
@best4webdesign Marco Corti

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.

1 year 21 weeks ago

Replies

episod
@episod Taylor Singletary

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

1 year 21 weeks ago
best4webdesign
@best4webdesign Marco Corti

Is there no alternative to get retweet by url?
Thanks

1 year 21 weeks ago
episod
@episod Taylor Singletary

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

How do I count retweets?

Tweets in the REST and Streaming APIs contain a field called retweet_count that provides the number of times that tweet has been retweeted. You can obtain the retweet count for any arbitrary tweet by using GET statuses/show/:id.

You can count retweets as they happen by using a The Streaming APIs. In particular, User streams and Site streams allow you to be streamed retweet events about/around an authenticated user in real time.

1 year 21 weeks ago
juampy72
@juampy72 Juampy

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

1 year 7 weeks ago
16LSA
@16LSA LovePreeT

{"count":0,"url":"http:\/\/some_url_here\/"}

42 weeks 2 days ago
16LSA
@16LSA LovePreeT

{"count":0,"url":"http:\/\/some_url_here\/"}

42 weeks 2 days ago
mariowise
@mariowise Mario López

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.

7 weeks 2 days ago