Obtaining Credentials

In order to use this library you will need an API key or OAuth credentials. This guide walks through how to obtain these credentials.

Prerequisites

  1. To access the Google API Console, you will need a Google Account.

  2. Go to console.developers.google.com and create a new project. Call it whatever you want, optionally set an organisation and click Create.

  3. Find the “APIs” panel and click Go to APIs overview.

  4. Find and click the ENABLE APIS AND SERVICES button. Search for “youtube data api v3” and press enter. One result should be called YouTube Data API v3, click on it and then click the ENABLE button. You will be taken back to the “APIs and services” page.

Obtaining An API Key

  1. Navigate to the Credentials page.

  2. Find and click the CREATE CREDENTIALS button and select API key.

You have now created an API key. See the examples for using an API Key.

Obtaining OAuth Credentials

Creating Credentials

  1. Navigate to the Credentials page.

  2. Find and click the CREATE CREDENTIALS button and select OAuth client ID.

  3. Set “Desktop app” as the application type and click CREATE.

You have now created OAuth2 credentials. See the examples for using an OAuth credentials.