以下のリストは、この方法の一般的なユースケースを示しています。ユースケースにカーソルを合わせて説明を表示するか、ユースケースをクリックして API Explorer でサンプル パラメータ値を読み込みます。全画面表示の API Explorer を開くと、エクスプローラで入力されたパラメータ値が動的に更新されるコードサンプルを確認できます。
次の表に、この方法の一般的なユースケースを示します。ユースケース名をクリックすると、API Explorer でサンプル パラメータ値を読み込むことができます。または、ユースケース名の下にあるコードアイコンをクリックすると、全画面表示の API Explorer でユースケースのコードサンプルを確認できます。全画面表示の UI では、パラメータ値やプロパティの値を更新すると、入力した値に合わせてコードサンプルが動的に更新されます。
この方法には、以下に説明する一般的なユースケースが 1 つあります。説明の下にあるボタンをクリックすると、API Explorer にサンプル値が入力されます。また、API Explorer が全画面表示され、それらの値を使用するコードサンプルが表示されます。また、値を変更すると、コードサンプルが動的に更新されます。
Use cases | |
---|---|
list (by video ID) | This example retrieves information about a specific video. It uses the id parameter to identify the video. |
list (multiple video IDs) | This example retrieves information about a group of videos. The id parameter value is a comma-separated list of YouTube video IDs. You might issue a request like this to retrieve additional information about the items in a playlist or the results of a search query. |
list (most popular videos) | This example retrieves a list of YouTube's most popular videos. The regionCode parameter identifies the country for which you are retrieving videos. The sample code is set to default to return the most popular videos in the United States. You could also use the videoCategoryId parameter to retrieve the most popular videos in a particular category. |
list (my liked videos) | This example retrieves a list of videos liked by the user authorizing the API request. By setting the rating parameter value to dislike , you could also use this code to retrieve disliked videos. |