Skip to content

Instantly share code, notes, and snippets.

@hnakamur
Created June 3, 2013 05:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hnakamur/5696320 to your computer and use it in GitHub Desktop.
YouTube Data API v3で特定の動画の再生回数を取得する ref: http://qiita.com/items/bd7b85f4ee5b2f6a3d00
https://www.googleapis.com/youtube/v3/videos?part=statistics&id=EJNPYff3lxU&fields=items%2Fstatistics&key={YOUR_API_KEY_HERE}
{
"items": [
{
"statistics": {
"viewCount": "48",
"likeCount": "0",
"dislikeCount": "0",
"favoriteCount": "0",
"commentCount": "0"
}
}
]
}
https://www.googleapis.com/youtube/v3/videos?part=statistics&id=EJNPYff3lxU%2CuYPYlfuuY_E&fields=items(id%2Cstatistics)&key={YOUR_API_KEY}
{
"items": [
{
"id": "EJNPYff3lxU",
"statistics": {
"viewCount": "48",
"likeCount": "0",
"dislikeCount": "0",
"favoriteCount": "0",
"commentCount": "0"
}
},
{
"id": "uYPYlfuuY_E",
"statistics": {
"viewCount": "11",
"likeCount": "0",
"dislikeCount": "0",
"favoriteCount": "0",
"commentCount": "0"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment