私は、YouTubeアプリケーションを作った:
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=20&q=YOURKEYWORD&type=video&key=YOURAPIKEY
はあなたが自由のためのGoogleからの取得することができます登録APIキーを持っていることを確認してください。サーバーの答えはJSON-Formatになります。これはすでによく知っているはずです。
youtube.comの検索ボックスにキーワードを入力したのと同じように、これは1つのYouTube動画を表す20個のエントリを含むリストを返すようになりました。
{
"kind": "youtube#searchListResponse",
"etag": "\"q5k97EMVGxODeKcDgp8gnMu79wM/EkP6ScMYfT4xPyx9BIwzJc1IcsM\"",
"nextPageToken": "CBQQAA",
"regionCode": "DE",
"pageInfo": {
"totalResults": 1000000,
"resultsPerPage": 20
},
"items": [
{
"kind": "youtube#searchResult",
"etag": "\"q5k97EMVGxODeKcDgp8gnMu79wM/gWwm8abtbKoWg-uMt7NUmwSLzbA\"",
"id": {
"kind": "youtube#video",
"videoId": "iVIjckwltkk"
},
"snippet": {
"publishedAt": "2014-02-25T18:22:56.000Z",
"channelId": "UChl6CG-V7LgqhfwkvbHH67Q",
"title": "Kids At The Zoo: Compilation",
"description": "In this funny animal video, tune in to see an awesome compilation of kids interacting with their favorite animals at the zoo. SUBSCRIBE TO PETSAMI: ...",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/iVIjckwltkk/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/iVIjckwltkk/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/iVIjckwltkk/hqdefault.jpg",
"width": 480,
"height": 360
}
},
"channelTitle": "Kyoot Animals",
"liveBroadcastContent": "none"
}
}, ... and so on
]
}
おかげSCD3:キーワードとして "動物園" のために、私のAPIキーと
例。それは働いている!私は前にこのようなものを試しましたが、なぜフィルタを適用するよう求めていたのですか? – sf9251