YouTube
  • YouTube
  • 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 Samples Terms
YouTube
  • YouTube
  • Home
  • Guides
  • Samples
  • Terms
  • YouTube API Code Samples
  • YouTube Data API
  • YouTube Analytics API
  • YouTube Live Streaming API
  • Home
  • Products
  • YouTube
  • Samples

YouTube API Code Samples

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 Streaming 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 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
  • YouTube Researcher Program YouTube Researcher Program
    For researchers interested in using data from YouTube’s global API
  • 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
  • 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
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어