Page Summary
-
The YouTube Content ID API is exclusively for YouTube content partners and is not available to all developers or users, and you can check your eligibility through the Google API Console or the YouTube Help Center.
-
Google API client libraries can simplify the implementation of the YouTube Content ID API and are available for several programming languages, including Java, JavaScript, .NET, Objective-C, PHP, and Python.
-
Each client library has corresponding documentation and samples available, providing examples of usage and implementation to aid developers.
-
In addition to the client libraries listed, there are also early-stage libraries available for Dart, Go, Node.js, and Ruby, each with their respective documentation and samples.
-
For PHP developers, pre-generated API bindings are available as an alternative to the Google API client library.
The YouTube Content ID API is intended for use by YouTube content partners and is not accessible to all developers or to all YouTube users. Access requires a YouTube Content Manager account, and the API appears in the Google Cloud console only when you sign in with a Google Account that is an active Content Manager user (allow 1 to 2 days after accepting an invitation for access to sync). If you still don't see the YouTube Content ID API after 2 days, contact your YouTube point of contact or partner support.
Google API client libraries, which are available for many programming languages, can greatly simplify your YouTube Content ID API implementation.
Dart
Get the latest YouTube Content ID API client library for Dart. Read the client library's developer's guide.
Go
Get the latest YouTube Content ID API client library for Go. Read the client library's developer's guide.
Java
This page contains information about getting started with the YouTube Content ID API by using
the Google API Client Library for Java. For more information, see the following documentation: Select your build environment (Maven or Gradle) from the following tabs:
Add the following to your Add the following to your
Add the client library to your project
pom.xml file:build.gradle file:
JavaScript
Read the client library's developer's guide.
.NET
This page contains information about getting started with the YouTube Content ID API by using
the Google API Client Library for .NET. For more information, see the following documentation: Install the NuGet package:
Google.Apis.
Downloading the library
Node.js
Get the latest YouTube Content ID API client library for Node.js. Read the client library's developer's guide.
Obj-C
Get the latest YouTube Content ID API client library for Objective-C. Read the client library's developer's guide.
PHP
Get the latest YouTube Content ID API client library for PHP. Read the client library's developer's guide.
Python
This page contains information about getting started with the YouTube Content ID API by using
the Google API Client Library for Python (v1/v2). For more information, see the following documentation: You can either use a package manager or manually download and install the Python client library: Use pip or setuptools to manage your installation. You might
need to run Because the Python client libraries aren't installed in the
App Engine Python runtime environment,
you must
copy them into your application just like third-party libraries.
System requirements
Install the client library
Managed install
sudo first.
pip install --upgrade google-api-python-client
easy_install --upgrade google-api-python-client
Manual install
python setup.py install
App Engine
Ruby
This page contains information about getting started with the YouTube Content ID API by using
the Google API Client Library for Ruby. For more information, see the following documentation:
Depending on your system, you might need to prepend these commands with
If you haven't installed the Google API Client Library for Ruby before, install by using
Install the
google-api-client gemsudo.
RubyGems:
gem install google-api-client
If you already have the gem installed, update to the latest version:
gem update -y google-api-client
Get started with the Google API Client Library for Ruby
To learn how to make your first request, see the Get started guide.
Other ways to access the YouTube Content ID API
The following table lists other ways to access the YouTube Content ID API:
| Access method | Description |
|---|---|
| APIs Explorer | An interactive tool that lets you try out Google APIs right from your browser. |
We recommend using the client libraries in the selector, or you can download the pre-generated PHP API bindings.