@tonariman Good point! I don´t get that, too. Another point regarding the reliability of the tweet-count is, that some domains are systematically ignored, f.e. almost all NYTimes-Articles. For those, you can querry the tweets from topsy (on the other hand, topsy’s stats won´t show tweets for the most cnn.com articles, but Twitter API does). Is there an somehow official constraint for some urls like nyt?
Greetings,
T.
We also need this feature available in the APIs. We do a similar thing to collect the Facebook like counts and Facebook provides a simple REST call we can do, plus batch 20-50 URLs in the HTTP request which reduces a lot of network traffic and load. Twitter definitely needs this as well.
It doesn’t make sense to stream each URL and manually collect the retweets, it’s not scalable. Is there a place were we can add this as a feature request?
episod
#10
It’s a known desire that you want this data. At this time, usage of the http://urls.api.twitter.com/1/urls/count.json API directly is s
till forbidden. The only valid source of this data for third parties is if you derive it yourself at this time. You should just consider it data unavailable to you at this time if the means available to you is unscalable for you to track.
So you are saying that any developer who uses the API directly on a users account, without their knowledge and does things like change passwords and direct all their personal phone calls ans text messages through google voice, and intercepts all their emails before sending some - but perhaps not all - to the intended recipient using google, twitter and Facebook development tools, are you saying that the developer knows that what they are doing is wrong? Because that’s pretty much how I feel, being the recipient of this treatment, I find it fascinating to hear it said that developers know they are doing something very wrong. Interesting topic.
And as a programmer myself who did batch development fo hundreds of thousands of customers, your answer makes perfect sense. It’s completely illogical for what the tool was designed for. Look at the problem differently though, if you were not interested in hundreds or thousands of users, but just a very few, doesn’t the question now make sense?
episod
#13
I don’t follow what you’re saying or the relation of that to an undocumented endpoint?
For the record the answer to the question, or at least how it was answered just now for me personally, is simply knock the user out of Twitter and lock them out until you get what you want.
1 Like
You probably don’t understand because I’m not a twitter developer, so the better question is, why is my personal twitter ID able to get into this development site? It’s what I have been asking myself. Enough on this topic, though, don’t want to take up too much of your time on my first time here. Many thanks.
mosey78@gmail.com
episod
#17
They are effectively one and the same.
episod
#18
Twitter developers use their own Twitter logins and passwords to log into this site and discuss the API & platform. If you want to cease getting any emails from this developer’s site, you can address your settings at [alias:/user].
So you really aren’t concerned about the programming being developed and approved here - by you- and what you are aware of right now that should want you to protect your development rights, you are really just not wanting me to be inconvenienced? Gotcha. I’m glad everything is so well documented, very nice coding standards as far as that goes. You have my email. Enough said.
Sara, you should try re-reading what you’ve written before posting it. It has come to my attention that every single one of your posts here is extremely confusing and hard to follow. I’m just getting a basic “I’m angry” vibe from your posts… Other than that they are pretty much just you blabbering.
2 Likes
Does the 1.1 API change any of this? Specifically, are we able to get number of times a url was shared and cache it? 20 api calls per page load just to get counts would really drag the site down.
Is there a quick and easy way to get tweet count? Why can’t we have something similar to http://graph.facebook.com/http://twitter.com , which works on cross domain as well?
Also , I tried the method mentioned by @Joan_Artes
And we can use cdn.api.twitter.com/1/urls/count.json to retrieve the count? Like this way → http://joelb.me/blog/2012/tutorial-creating-a-custom-tweet-button-with-counter/
But I guess it doesn’t work now.
Please help me in getting tweet count from my domain with a simple ajax call , and if it is not possible then is there any third party api which does that ?
episod
#24
This is not a feature offered or documented in the API.
I refuse to add any JavaScript loaded from third party domains for a good reason. I do not trust CDNs, I do not trust Google, I do not trust Facebook and I do not trust Twitter either.
Adding JavaScript from third party domains is dangerous and effectively opens up a terrible backdoor for the loaded script to hijack the browser and session. It used to be a conspiracy theory, but in times of Edward Snowden and the NSA spying scandal you should really rethink this.
The urls/count.json is the only piece missing to create a twitter button which includes an URL count and does not require untrusted code to be loaded from Twitter directly.
I can rather live with an undocumented API - which might break in the future - than opening up a backdoor in my websites.
Is there any penalty involved when using this API nonetheless? I would like to use this to query share count. Refreshing the count every now and then (e.g. hourly) is sufficient and will generate way less load on the Twitter network than a regular Twitter button.