YouTube Data Scraping API

API Wrapper Instantly scrape bulk data from YouTube in CSV or JSON format. Download complete, fully paginated results with no coding required.

Get Bulk Data | From YouTube | Into Your Project

Plans From $4.99/month

Scraping YouTube Data

YouTube offers an official Data API that lets you interect with the app programatically, including searching for public content and retreiving public information about channels & videos we’re interested in.

Getting Started

To use the official API, you’ll need a Google account and will need to register to use the API. Don’t worry, it’s pretty simple and Google provides tutorials.

Object Hierarchy

YouTube Object Hierarchy

Each YouTube user can have multiple channels. Each channel then has one or more playlists. Each playlist then has a collection of videos.

Response Data

Most (if not all) of the endpoints have a part parameter which specifies what types of data you want the YouTube API to return. It’s a comma-separated list and the more data you’d like back from YouTube, the more “credits” they will charge to your account.

Channel Videos Example

You may have a specific target channel in mind you’d like to get videos for.

Get the Username

You’ll first need to get the username, which may be different from the URL name.

E.g. If I go to https://www.youtube.com/stevesiedata, the URL key is stevesiedata, however this is not the username!

To get the username of the channel, click on something like the Videos tab and you’ll notice the URL change to something like https://www.youtube.com/user/StevesieLLC/featured which reveals the username! In this case, the username is stevesiellc and NOT stevesiedata.

Get the Channel Info

Now to get the channel info, we can use the User Channels integration to get the channel info from the username:

YouTube Channel ID

We can see in the response, that the channel ID is UCArmutk8nAbYQdaYzgqKOwA.

We can also see the Playlist ID for all of the channel’s uploads:

Channel Upload Playlist ID

We’ll use this playlist ID UUArmutk8nAbYQdaYzgqKOwA to fetch all the videos for the channel.

Get the Playlist Videos

Now that we know the playlist ID, we just need to use the Playlist Videos integration and enter the playlist ID:

Playlist Videos

We can now download this response back in CSV or JSON format for further analysis.

Articles

Mining YouTube Subscriber Data for Insight Published Oct. 5, 2019, 12:47 a.m. by steve
How to Get Your YouTube OAuth Access Token Published July 30, 2019, 12:49 a.m. by steve
How to Get Your YouTube API Token Published July 30, 2019, 12:27 a.m. by steve

Formulas

YouTube Subscriptions - Pagination Published Aug. 21, 2019, 12:23 a.m. by steve