Skip to main content
  • Home
  • Guides
  • Samples
  • Terms
  • YouTube API Code Samples
  • YouTube Data API
  • YouTube Analytics API
  • YouTube Live API

YouTube API Code Samples
Stay organized with collections Save and categorize content based on your preferences.

The lists below identify the languages for which YouTube API code samples are available:

YouTube Data API (v3)

  • Apps Script
  • Go
  • Java
  • JavaScript
  • .NET
  • PHP
  • Python
  • Python on App Engine
  • Ruby

YouTube Analytics API

  • Apps Script
  • Java
  • JavaScript
  • PHP
  • Python
  • Ruby

YouTube Live API

  • Java
  • PHP
  • Python

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-05-07 UTC.

  • 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
    • Developer Policies
    • Required Minimum Functionality
    • Branding Guidelines
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • Google AI
  • All products
  • Terms
  • Privacy
  • Manage cookies
  • Sign up for the Google for Developers newsletter Subscribe
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어