Use Cases and Code Snippets
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["This page lets you explore common use cases for the YouTube Data API and YouTube Live Streaming API.\n\nWhen you select a resource and method, the table below updates to display a list of common use cases, including a description of each use case, for that method. In addition:\n\n- You can click on a use case name to populate the API Explorer widget with sample parameter and property values for that use case.\n- You can click the code icon () next to any sample name to open the fullscreen APIs Explorer and populate it with the sample values for that use case. The fullscreen APIs Explorer shows working code samples for Java, JavaScript, PHP, Python, and `curl`.\n\n|----------|--------|\n| Resource | Method |"]]