Answer the question
In order to leave comments, you need to log in
Twitter count.json - Tweet deleted, but post still counts?
Hello!
The task is to count all mentions of the link on Twitter. I do this:
I turn here - http://urls.api.twitter.com/1/urls/count.json?url=URL
In response, JSON comes with the number of mentions. However, if a person wrote a tweet with a link, and then deleted it, the value is added, but not removed after deletion, i.e. considered incorrect. Thus, a person can 50 retweet and delete it, and the value will only increase.
Why is this happening? Maybe I'm using the wrong link? How to count references of links correctly?
Thanks
Answer the question
In order to leave comments, you need to log in
This endpoint is absolutely not official and not documented, it is used for buttons and the position of the twitter administration is “you cannot use this url”. So what he says in response and how he forms the data is a mystery (I assume that hard caching is involved there).
If you need the _EXACT_ number of links… there is no solution…
If you need to count the number of clicks on the “tweet” button, see the documentation for the button.
If you need an approximate amount, use stream.twitter.com/1/statuses/filter.json from api (https://dev.twitter.com/docs/streaming-apis/parameters#track)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question