Help us understand the problem. What is going on with this article?

特定のURLの、ツイート数・いいね数を取得するAPI

More than 5 years have passed since last update.

よく使うのでメモ。

URLのツイート数

http://fnobi.com のツイート数を取得

http://urls.api.twitter.com/1/urls/count.json?url=http://fnobi.com/

返り値

{"count":1,"url":"http:\/\/fnobi.com\/"}

count 1ですかfnobi.com…。

URLのいいね数

http://google.com/ のいいね数を取得

http://graph.facebook.com/http://google.com/

返り値

{
   "id": "http://google.com/",
   "shares": 7582903,
   "comments": 133525
}

※fnobi.comはいいね数ゼロでつらかったので、google.comにしました。

fnobi
面白法人のテクニカルディレクター 兼 作曲家 兼 ドルヲタ ⌨️ http://github.com/fnobi 🎼 http://soundcloud.com/fnobi
http://fnobi.com/
kayac
古都鎌倉から新しい技術と面白いサービスを、次々にリリースする面白法人カヤックのフロントエンジニアチーム
http://www.kayac.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした