Search YouTube for videos, retrieve channel details, or upload a video by adapting the official Data API samples in your preferred language.
Build a dashboard that pulls a channel's view counts and watch hours using the Analytics API samples as a starting point.
Start, stop, and monitor a live YouTube broadcast programmatically by adapting the Live Streaming API samples.
No setup instructions included, you must obtain YouTube API credentials separately and consult the YouTube API documentation.
This repository contains official code samples provided by YouTube for working with its developer APIs. The samples cover three distinct YouTube APIs: the Data API, the Analytics API, and the Live Streaming API. The Data API lets developers interact with YouTube's core features programmatically. This includes searching for videos, retrieving details about channels and playlists, uploading videos, and managing subscriptions. The Analytics API provides access to performance statistics and reporting data, so a developer could build a tool that shows a channel owner how many views or watch hours their videos received over a given period. The Live Streaming API handles the creation and management of live broadcasts, letting developers start, stop, and monitor live video streams through code rather than the YouTube website. The repository organizes its samples by programming language. Each language has its own directory, so a developer working in Python would find Python files there, while a developer working in Java would use the Java directory. The samples cover a wide range of tasks, but they are short, focused examples rather than full applications. The README is intentionally brief. It names the three APIs and explains the folder structure, but nothing more. There are no setup instructions, no explanation of how to obtain API credentials, and no guidance on rate limits or usage quotas. Someone using these samples would need to refer to the separate YouTube API documentation for those details. This repository functions as a code reference alongside that documentation, not as a self-contained tutorial.
← youtube on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.