YouTube
  • YouTube
  • Data API
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Home Guides Reference Samples Support
YouTube
  • YouTube
  • Data API
  • Home
  • Guides
  • Reference
  • Samples
  • Support
  • Index
  • Java, JavaScript, PHP, Python
    • Use cases and code samples
  • Other languages
    • Apps Script
    • Go
    • .NET
    • Ruby
  • Home
  • Products
  • YouTube
  • Data API
  • Samples

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 2022-11-04 UTC.

  • Blog Blog
    The latest news on the YouTube blog
  • GitHub GitHub
    Find API code samples and other YouTube open-source projects.
  • Issue Tracker Issue Tracker
    Something wrong? Send us a bug report!
  • Stack Overflow Stack Overflow
    Ask a question under the youtube-api tag
  • Videos Videos
    Check out the YouTube Developer Relations team's YouTube channel
  • Tools

    • Google APIs Explorer
    • YouTube Player Demo
    • Configure a Subscribe Button
  • Issue Tracker

    • File a bug
    • Request a feature
    • See open issues
  • Product Info

    • Terms of Service
    • Branding Guidelines
    • Monetization Guidelines
    • APIs subject to Deprecation Policy
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • ICP证合字B2-20070004号
  • Sign up for the Google Developers newsletter Subscribe
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어