Page Summary
-
This page lists code samples for the YouTube Data API (v3) in .NET, PHP, and Python.
-
PHP samples cover uploading and monetizing videos, managing asset labels, and uploading references, including versions for service account authorization.
-
Python samples provide examples for creating, managing, and using asset labels, as well as creating assets and claiming videos.
-
Both .NET and Python provide code samples for retrieving a content owner's managed channels using the channels.list method.
The following lists identify the code samples available for the YouTube Content ID API and related YouTube partner operations:
.NET
Java
- Create, manage, and use asset labels (
assetLabels.insert) - Create an asset; upload and claim a video (
assets.insert) - Retrieve a content owner's managed channels (
channels.list)
PHP
- Upload and monetize a video (service account authorization)
- Upload and monetize a video
- Create, manage, and use asset labels
- Upload a reference (service account authorization)
- Upload a reference
- Retrieve a content owner's managed channels (service account authorization)