youtube-api Getting started with youtube-api

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

This section provides an overview of what youtube-api is, and why a developer might want to use it.

It should also mention any large subjects within youtube-api, and link out to the related topics. Since the Documentation for youtube-api is new, you may need to create initial versions of those related topics.

Getting started with YouTube APIs

There are currently three YouTube APIs available to the public:

  1. YouTube Data API
  2. YouTube Analytics API
  3. YouTube Reporting API

Each of these offer different functionality and are treated as separate, individual APIs.

Since YouTube is a subsidiary of Google, the various YouTube APIs are provided and maintained by Google. In order to access any Google-provided API, following steps are necessary:

  1. You will need a Google Account to access the Google Developers Console.
  2. Create a new project in your Google Developers Console.
  3. You then are able to request an API key, and register your application.
  4. The required API's that you will need access to will need to be enabled in the API library of the Google Cloud Console.

When On the credentials screen, an API key has to be generated. The type of key that is needed depends on the individual application.

There are five types of API keys:

Key typeDescriptionUse case / language
NoneHas no restrictions and is normally used for testing and developmentopen to all environments
Server keyUsed for server-side applications. The key is considered a secret and may not be exposed to the public.PHP, Java, Python, Ruby, C, etc.
Browser keyUsed for client-side applications. Since the client is going to issue requests to the API, the key cannot be a secret.JavaScript
Android keyFor use within an Android app.Android app
iOS keyFor use within an iOS app.iOS app

Once an API key is obtained and configured, you can then use it to make calls to the API.

For general API call's, all you need is the API Key.
But if you need to access a user's account to gain more information, upload or generally modify a user's account data, you will need a "Client ID" and a "Client secret".
These are used for authentication with the OAuth2 framework.

YouTube Analytics API & YouTube Reporting API

These APIs are used to query for video and channel analytics, like views/clicks and votes.

YouTube Data API

This API, sometimes also referred to as "API v3", "YouTube Data API v3" or just "YouTube API", is the most commonly used YouTube API. It enables an application to read, alter, add or delete data related to videos, playlists and channels. This includes, but is not limited to:

  1. Performing full-text searches for videos, channels and/or playlists
  2. Retrieving information about a video, channel or playlist by id
  3. Uploading videos
  4. Editing a video's, channel's or playlist's description, visibility and other information
  5. Managing a channels profile picture, banner and other information
  6. Reading, posting and editing comments


Got any youtube-api Question?