Google API client libraries, which are available for many programming languages,
can greatly simplify your YouTube API implementation.

### Dart

Get the latest [YouTube Data API client library for Dart](https://pub.dev/packages/googleapis). Read the
client library's [developer's guide](https://pub.dev/documentation/googleapis/latest/).

### Go

Get the latest [YouTube Data API client library for Go](https://github.com/google/google-api-go-client). Read the
client library's [developer's guide](https://github.com/google/google-api-go-client).

### Java

<br />


This page contains information about getting started with the YouTube Data API v3 by using
the Google API Client Library for Java. For more information, see the following documentation:

- Browse the [Javadoc reference for the YouTube Data API v3](https://googleapis.dev/java/google-api-services-youtube/latest/).
- Read the [Developer's Guide for the Google API Client Library for Java](https://github.com/googleapis/google-api-java-client/).
- Interact with this API in your browser using the [APIs Explorer for the YouTube Data API v3](https://developers.google.com/apis-explorer.md.txt#p/youtube/v3/).

## Sample

The [youtube-api-samples](https://github.com/youtube/api-samples/tree/master/java) may help you get started using the client library.

## Add the client library to your project

Select your build environment (Maven or Gradle) from the following tabs:


Maven

Add the following to your `pom.xml` file:
<iframe src="https://developers.devsite.google/frame/youtube/data/libraries_540bc5861bc405efcd44a99fd34b0aee3572e80d83c76b77c94f78170250405c.frame" class="framebox inherit-locale " allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

See [all versions available on the Maven Central Repository](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.apis%22%20AND%20a%3A%22google-api-services-youtube%22).
Gradle

Add the following to your `build.gradle` file:
<iframe src="https://developers.devsite.google/frame/youtube/data/libraries_e1993744faff41972c30e0931551d12dc48aa8393799b16a93d5f45215055019.frame" class="framebox inherit-locale " allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

See [all versions available on the Maven Central Repository](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.apis%22%20AND%20a%3A%22google-api-services-youtube%22).

### JavaScript

Read the client library's [developer's guide](https://developers.google.com/api-client-library/javascript/start/start-js).

### .NET


This page contains information about getting started with the YouTube Data API v3 by using
the Google API Client Library for .NET. For more information, see the following documentation:

- Browse the [.NET reference documentation for the YouTube Data API v3](https://googleapis.dev/dotnet/Google.Apis/latest/api/Google.Apis.html).
- Read the [Developer's guide for the Google API Client Library for .NET](https://developers.google.com/api-client-library/dotnet/get_started.md.txt).
- Interact with this API in your browser using the [APIs Explorer for the YouTube Data API v3](https://developers.google.com/apis-explorer.md.txt#p/youtube/v3/).

## Sample

The [youtube-api-samples](https://github.com/youtube/api-samples/tree/master/dotnet) may help you get started using the client library.

## Downloading the library

Install the NuGet package:
[Google.Apis](https://www.nuget.org/packages/Google.Apis).

### Node.js

Get the latest [YouTube Data API client library for Node.js](https://github.com/google/google-api-nodejs-client/). Read the
client library's [developer's guide](https://github.com/google/google-api-nodejs-client/).

### Obj-C

Get the latest [YouTube Data API client library for Objective-C](https://github.com/google/google-api-objectivec-client-for-rest). Read the
client library's [developer's guide](https://github.com/google/google-api-objectivec-client-for-rest/wiki).

### PHP

Get the latest [YouTube Data API client library for PHP](https://github.com/google/google-api-php-client). Read the
client library's [developer's guide](https://developers.google.com/api-client-library/php).

### Python


This page contains information about getting started with the YouTube Data API v3 by using
the Google API Client Library for Python (v1/v2). For more information, see the following documentation:

- Browse the [PyDoc reference for the YouTube Data API v3](https://googleapis.github.io/google-api-python-client/docs/dyn/youtube_v3.html).
- Read the [Developer's guide for the Google API Client Library for Python (v1/v2)](https://developers.google.com/api-client-library/python).
- Interact with this API in your browser using the [APIs Explorer for the YouTube Data API v3](https://developers.google.com/apis-explorer.md.txt#p/youtube/v3/).

## Sample

The [youtube-api-samples](https://github.com/youtube/api-samples/tree/master/python) can help you get started by using the client library.

## System requirements

- Operating systems:
  - Linux
  - macOS X
  - Windows
- [The v1 client library requires Python 2.7 or higher. The v2 client library requires 3.7 or higher.](http://python.org/download/)

## Install the client library

You can either use a package manager or manually download and install the Python client library:

### Managed install

Use pip or setuptools to manage your installation. You might
need to run `sudo` first.

- [pip](http://pypi.python.org/pypi/pip) (preferred):

  ```
  pip install --upgrade google-api-python-client
  ```
- [Setuptools](http://pypi.python.org/pypi/setuptools):

  ```
  easy_install --upgrade google-api-python-client
  ```

### Manual install

1. [Download the latest client
   library for Python](https://pypi.python.org/pypi/google-api-python-client/).
2. Unpack the code.
3. Install:

   ```
   python setup.py install
   ```

### App Engine

Because the Python client libraries aren't installed in the
[App Engine Python runtime environment](https://cloud.google.com/appengine/docs/python/),
you must [copy them into your application](https://cloud.google.com/appengine/docs/python/tools/libraries27#vendoring) just like third-party libraries.

<br />

### Ruby


This page contains information about getting started with the YouTube Data API v3 by using
the Google API Client Library for Ruby. For more information, see the following documentation:

- Read the [Get started guide for the Google API Client Library for Ruby](https://developers.google.com/api-client-library/ruby/start/get_started).
- Interact with this API in your browser using the [APIs Explorer for the YouTube Data API v3](https://developers.google.com/apis-explorer.md.txt#p/youtube/v3/).

## Sample

The [youtube-api-samples](https://github.com/youtube/api-samples/tree/master/ruby) can help you get started by using the client library.

## Install the `google-api-client` gem


Depending on your system, you might need to prepend these commands with `sudo`.


If you haven't installed the Google API Client Library for Ruby before, install by using `RubyGems`:

```
gem install google-api-client
```

<br />


If you already have the gem installed, update to the latest version:

```
gem update -y google-api-client
```

<br />

## Get started with the Google API Client Library for Ruby


To learn how to make your first request, see the
[Get started guide](https://developers.google.com/api-client-library/ruby/start/get_started).

<br />

## Other ways to access the YouTube Data API

The following table lists other ways to access the YouTube Data API:

| Access method | Description |
| [APIs Explorer](https://developers.google.com/apis-explorer.md.txt#p/youtube/v3/) | An interactive tool that lets you try out Google APIs right from your browser. |
|---|---|