이 페이지에서는 YouTube Data API 및 YouTube Live Streaming API의 일반적인 사용 사례를 살펴볼 수 있습니다.
리소스와 메서드를 선택하면 아래 표가 업데이트되어 각 사용 사례에 대한 설명을 포함한 일반적인 사용 사례 목록이 표시됩니다. 또한 다음 사항도 제외됩니다.
curl
에서 작동하는 코드 샘플이 표시됩니다.
리소스 |
메서드 |
Use cases | |
---|---|
list (by channel ID) | This example retrieves channel data for the GoogleDevelopers YouTube channel. It uses the id request parameter to identify the channel by its YouTube channel ID. |
list (by YouTube handle) | This example retrieves channel data for the "Google for Developers" YouTube channel. It uses the forHandle request parameter to identify the channel by its YouTube handle. |
list (by YouTube username) | This example retrieves channel data for the GoogleDevelopers YouTube channel. It uses the forUsername request parameter to identify the channel by its YouTube username. |
list (my channel) | This example retrieves the channel data for the authorized user's YouTube channel. It uses the mine request parameter to indicate that the API should only return channels owned by the user authorizing the request. |
list (channels managed by a content owner) | This example retrieves a list of channels managed by the specified YouTube content owner. |