偏差値40からのはてなブログ生活

頑張って書いてみる

TwitterAPIがv1.1になると「urls.api.twitter.com」はどうなるのか調べてみた

そろそろTwitterAPIがv1.1に移行されるわけですが、特定URLに対するツイート数を返却する「urls.api.twitter.com はどうなるんだろうか?」と思って調べてみました。


ちなみにこんなふうに使います
http://urls.api.twitter.com/1/urls/count.json?url=http://www.hatena.ne.jp/


なんで、気にしてるのかというとこういうChrome拡張を以前作って重宝しているんですが、この拡張の中で表題のAPIを叩いております。
これが使えないと不便なのでどうにかしようと重い腰を上げました。


で、探してみたところ、公式フォーラムでそれらしい書き込みを発見

Discussion around Planning API v1's Retirement
https://dev.twitter.com/discussions/14709


以下引用

@osxfactor OS X Factor
Do you know if access to http://urls.api.twitter.com/ will be shutdown when the 1.1 API goes in to effect on 3/5? We currently query this to get the Tweet count of articles. For example:

http://urls.api.twitter.com/1/urls/count.json?url=http://nba.si.com/2013/02/26/kobe-bryant-los-angeles-lakers-playoffs-guarantee/&callback=jQuery152028114859224297106_1361926882592&_=1361926883356

Would love to know if we're going to have to rewrite this or if our current method of getting this count will continue to work post 1.1.

APIがv1.1になったあと http://urls.api.twitter.com/ にアクセスしたらどうなんの?今使ってんだけど(適当)って質問に対し


中の人のリプライが

@episod Taylor Singletary
urls.api.twitter.com is not a valid API endpoint -- it's an underlying detail of our Tweet Button architecture. You would be wise to not use or rely on it regardless of its relation to the API retirement process.

  • urls.api.twitter.com は正式なAPIエンドポイントじゃないよ(ツイートボタン用だよ)
  • API云々とは関係なく使わないほうが賢明だよ

とのこと(多分)


とりあえずは影響ないのかもしれないけど、、、
まあ、あとは公式ウィジェットだなー