2017-10-18 11 views
0

オタクの統計情報を取得するためのYouTube APIはありますか?API経由でオタクのためのyoutube statを抽出する

stats for nerds data

私は統計のために周りを見回しているが、彼らは、私は、特にビデオの右クリックで利用可能なオタクデータの統計情報を探しています、再生回数にlikeCountなどを指摘します。

URL: https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY 
    &part=snippet,statistics&fields=items(id,snippet,statistics) 

Description: This example adds the fields parameter to remove all 
      kind and etag properties from the API response. 

API response: 

{ 
"videos": [ 
    { 
    "id": "7lCDEYXw3mM", 
    "snippet": { 
    "publishedAt": "2012-06-20T22:45:24.000Z", 
    "channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw", 
    "title": "Google I/O 101: Q&A On Using Google APIs", 
    "description": "Antonio Fuentes speaks to us and takes questions on working with Google APIs and OAuth 2.0.", 
    "thumbnails": { 
    "default": { 
     "url": "https://i.ytimg.com/vi/7lCDEYXw3mM/default.jpg" 
    }, 
    "medium": { 
     "url": "https://i.ytimg.com/vi/7lCDEYXw3mM/mqdefault.jpg" 
    }, 
    "high": { 
     "url": "https://i.ytimg.com/vi/7lCDEYXw3mM/hqdefault.jpg" 
    } 
    }, 
    "categoryId": "28" 
    }, 
    "statistics": { 
    "viewCount": "3057", 
    "likeCount": "25", 
    "dislikeCount": "0", 
    "favoriteCount": "17", 
    "commentCount": "12" 
    } 
    } 
] 
} 

答えて

0

あなたがオタクの統計情報を探している場合は、Resource representation of Videosを確認してください。以下のデータを入手できます:

{ 
    "kind": "youtube#video", 
    "etag": etag, 
    "id": string, 
    ... 
    "fileDetails": { 
    "fileName": string, 
    "fileSize": unsigned long, 
    "fileType": string, 
    "container": string, 
    "videoStreams": [ 
     { 
     "widthPixels": unsigned integer, 
     "heightPixels": unsigned integer, 
     "frameRateFps": double, 
     "aspectRatio": double, 
     "codec": string, 
     "bitrateBps": unsigned long, 
     "rotation": string, 
     "vendor": string 
     } 
    ], 
    "audioStreams": [ 
     { 
     "channelCount": unsigned integer, 
     "codec": string, 
     "bitrateBps": unsigned long, 
     "vendor": string 
     } 
    ], 
    "durationMs": unsigned long, 
    "bitrateBps": unsigned long, 
    "creationTime": string 
    }, 
    "processingDetails": { 
    "processingStatus": string, 
    "processingProgress": { 
     "partsTotal": unsigned long, 
     "partsProcessed": unsigned long, 
     "timeLeftMs": unsigned long 
    }, 
    "processingFailureReason": string, 
    "fileDetailsAvailability": string, 
    "processingIssuesAvailability": string, 
    "tagSuggestionsAvailability": string, 
    "editorSuggestionsAvailability": string, 
    "thumbnailsAvailability": string 
    }, 
    ... 
} 
関連する問題