API U Series

How to Develop With the YouTube Data API

With over a billion users and nearly 5 billion videos watched daily, YouTube has a vast collection of data to explore, much of it publicly available. The YouTube Data API, currently in version 3, gives developers the ability to add a number of YouTube features to their applications. The API can be used to upload and search for videos, manage playlists and subscriptions, update channel settings and more.

This series of tutorials introduces you to the YouTube Data API starting with a look at the functionality of the API and a review of its developer portal. From there we show you, step by step, how to build an application of increasing complexity that calls the API.

Part one shows you how to use the API to build a simple app that can return the contents of a publicly viewable YouTube playlist. To keep the code simple, the playlist ID will be hardcoded.

In part two, we show you how to show all of a channel's playlists programmatically by only knowing the channel ID. Using this, you can query the YouTube Data API in order to discover all the playlist IDs. Then, we'll query the YouTube Data API with each of those playlist IDs to retrieve and list their contents in our Web app.

Part three will show you how to get a listing of a YouTube user's playlists by only needing to know a YouTube username. Future parts will extend the code so that we can view private playlists, with a user’s permission, by instituting an OAuth workflow.

The YouTube Data API can be used to upload and search for videos, manage playlists and subscriptions, update channel settings and more. In this tutorial, we'll review the YouTube Data API portal and show you how to use the API to build a simple app that can return the contents of a playlist.
The YouTube Data API can be used to upload and search for videos, manage playlists and subscriptions, update channel settings and more. In part 2 of this tutorial, we'll extend our code from part one and show you how to use the API to build a simple app that can return the contents of a...
The YouTube Data API can be used to upload and search for videos, manage playlists and subscriptions, update channel settings and more. In part 3 of this tutorial, we continue to extend our code and show you how to use the API to build a simple app that can return the contents of a playlist.