YouTube Video Scraper

Extract and compare data from multiple YouTube videos with Google Sheets.

To help you get started right away, you can use this free Google Sheets template

Every single day, a staggering average of 3.7 million fresh videos are uploaded to YouTube. It’s a haven for marketers, salespeople, and researchers seeking knowledge and insights.

But scraping YouTube video data is where the real magic happens. You can get your hands on all the specific details like video titles, descriptions, thumbnails, and even cool stats like view counts and comments.

And, of course, when it comes to processing and tinkering with all that extracted data, nothing beats our trusty old spreadsheet.

Using the ImportFromWeb add-on and the function it adds to Google Sheets, you extract YouTube video metadata in bulk without technical knowledge!

What you get?

With =IMPORTFROMWEB(), you extract the following YouTube metadata.

  • video title
  • video description
  • thumbnail URL
  • number of views, likes, comments
  • video duration

See all available YouTube data points

First of all, make sure you have installed the ImportFromWeb add-on from the Google Workspace Marketplace.

Then, just follow these easy steps:

Open a new google sheets and activate ImportFromWeb

To activate the add-on, go to Extensions > ImportFromWeb > Activate add-on.

activate ImportFromWeb add-on

Input the URLs of the videos you want to analyze

ImportFromWeb requires 2 parameters: a URL and one or more data selectors.

Enter a list of YouTube video URLs in the first column using the following format: https://www.youtube.com/watch?v=xxxxx

Input video URLs

Input the YouTube video selectors

Data selectors describe the specific content you want to import from the YouTube video pages.

Pick the selectors you are interested in from our YouTube selectors glossary and add them to your spreadsheet. For example, you may be interested in the title, published_date, views_count, and likes_count.

This is what your spreadsheet should look like:

Input video data selectors

Write the =IMPORTFROMWEB() function and extract the video metadata

Just add this formula: =IMPORTFROMWEB(A2,B1:E1)

Within seconds, you’ll get the first video’s metadata.

Write the IMPORTFROMWEB() function

Scale the collection process

After adding the $ symbol around the data selectors, drag the formula down to the last row: =IMPORTFROMWEB(A2,$B$1:$E$1)

Drag down to copy formula

We’ve designed an easy-to-use template.
Make sure you have installed and activated ImportFromWeb in your Google Sheets.