Spiral gives your agent every tool with one account. Browse the tools →

Blog

How to Scrape YouTube With Claude

Spiral Team
Cover image for How to Scrape YouTube With Claude

Want YouTube data inside Claude?

Claude reads one YouTube page, but not a whole channel as rows.

Here's how to scrape YouTube with Claude in 5 minutes with Spiral.

Let's dive right in.

Yes, Claude can scrape YouTube, though not natively by itself: its web search and fetch read pages, not channel data in bulk. Connect it to Spiral, and Claude pulls a channel's uploads, views, likes, comments and transcripts into a table you can sort and export.

Can Claude Scrape YouTube?

Yes, with one connector added.

On its own, Claude can search the web and read any page you link.

But when you scrape YouTube, you want rows: views, lengths, dates, likes, comments and transcripts.

Claude has no built-in tool that hands you a whole channel that way.

So we connected Spiral, and Claude pulled 80 videos from three calls in a single chat.

TL;DR

  • Claude can't pull a YouTube channel as rows on its own. It can once you connect Spiral as a custom connector.
  • We carried one channel, @claude, through uploads, popularity, a niche search, a transcript and its comments.
  • Our three listing calls returned 80 videos, and we deduped by link to 70 unique ones.
  • All six 1M+ uploads in @claude's latest 30 ran 0:48 to 1:39, all posted 3 weeks to 1 month ago.
  • Likes per 1,000 views told a truer story than raw views: 0.05 for the top video, 27.20 for a launch clip.
  • Save our instructions as a Claude Project, then put the tracker on a weekly schedule.

The 4 Ways People Scrape YouTube With Claude

We found four ways people get YouTube data into Claude, and each one stops somewhere different.

Copy-paste into Claude: it works for one video's title and views, then every new channel means you copy rows by hand again.

A home-made scraper connected to Claude: free download tools grab captions for a few channels, then YouTube starts flagging the requests and you're tuning delays instead of researching.

Claude's browser extension (Claude in Chrome): it reads and clicks the page you're on, which is handy for one-off tasks. But it's not a reliable way to collect a channel's numbers in bulk.

Spiral's YouTube scrapers: Claude calls them like any connector. Our three calls returned 80 videos as rows with views, lengths and dates, plus likes and comments on 30.

What you need

  • A Claude account on any plan (the Free plan allows one custom connector).
  • A Spiral account with a prepaid balance: Spiral bills per use, see pricing.
  • A YouTube channel handle (we used @claude) or a topic to search.
  • Google Sheets or any spreadsheet app, for the CSV at the end.

How to Scrape YouTube With Claude: step by step

Step 1: Connect Spiral to Claude

In Claude Desktop or on claude.ai, go to Customize → Connectors, or click this direct link:

Add Spiral to Claude

Add a custom connector, name it Spiral and paste https://api.spiral.ai/mcp (the direct link fills both in).

Click Add → Connect and sign in with your Spiral account. Spiral's Claude quickstart walks through each screen.

Claude's Add custom connector window with Spiral and its URL filled in

Claude's Add custom connector window with Spiral and its URL filled in. Source: Spiral's Claude guide.

Step 2: Pull a Channel's Latest Uploads

Your YouTube project starts with one question: what is this channel actually publishing?

So we pointed Claude at Claude's own channel, @claude, and asked for its latest uploads.

We got 30 rows back, covering uploads posted from 14 hours ago to 1 month ago.

Sure enough, our six 1M+ uploads ran 0:48 to 1:39, while our six videos over 10 minutes stayed under 100K views.

Ask Claude:

Use Spiral to list the latest uploads from the YouTube channel @claude, with each video's title, length, views and when it was posted.

Claude answering "Use Spiral to list the latest uploads from the YouTube channel @claude, with eac" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Views alone can fool you, so our next ask added likes and comments.

For example, the top video in our pull has 77,627,477 views but only 3,971 likes.

Meanwhile, the Claude Design launch has 953,725 views and 25,943 likes.

Our runs can't explain those views, so we read views as reach and likes as interest.

Here's the ask we typed:

Ask Claude:

Now sort @claude's videos by most popular and add the likes and comments for each one.

Claude answering "Now sort @claude's videos by most popular and add the likes and comments for eac" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 4: Search the Niche for This Month's Top Videos

Does one channel tell you the whole story?

Our niche search told a different story: 5 of the 6 most-viewed results run 9 to 28 minutes.

When we checked, only 3 of our 20 results came from @claude itself.

In other words, in this month's search, creators win with long tutorials while the official channel wins with short launches.

Ask Claude:

Search YouTube for "Claude Code tutorial" videos uploaded this month, sorted by views, and show title, length, views and age.

Claude answering "Search YouTube for "Claude Code tutorial" videos uploaded this month, sorted by " with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 5: Merge and Dedupe the Batch

Three lists means overlap, and overlap quietly skews your averages.

Our batch had 80 rows: 30 latest uploads, 30 most popular and 20 search results.

We matched each video's link: 10 duplicates out, 70 unique videos left.

A video counted twice gets double weight in every comparison you run later, so here's the ask we used:

Ask Claude:

Combine the three lists into one, remove duplicate videos by their link, and tell me how many rows you dropped.

Step 6: Read the Transcript of the Best-Liked Explainer

Your numbers say what worked, but why did it work?

So we pulled the script of "What are skills?", which earned 18,732 likes in 2:54.

In our transcript, it opens on the viewer's pain in seven seconds and names the fix by 0:18.

Then it closes on a line you can repeat to a friend.

Here's what we asked Claude:

Ask Claude:

Get the transcript of "What are skills?" from @claude and show me the opening lines and the closing line with timestamps.

Claude answering "Get the transcript of "What are skills?" from @claude and show me the opening li" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 7: Mine the Comments for Questions

What should you make next?

In our pull, 7 of the 20 top comments on "What are skills?" asked a question.

Two of the ones we read ask how a skill gets triggered, and one asks for the same explainer without coding in mind.

In other words, our pull found a content gap your audience wrote for you.

Here's the prompt we used:

Ask Claude:

Pull the top comments on "What are skills?" and show me the ones that ask a question or push back, with their likes. Leave out names.

Claude answering "Pull the top comments on "What are skills?" and show me the ones that ask a ques" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 8: Land the List in Google Sheets

Now your batch becomes something you can sort, share and reuse.

We asked Claude to build the CSV in the chat, ready to open in Google Sheets.

We added a Link column, so you can re-check our dedupe and open any video.

We kept 22 of our 30 popular videos, dropping name-titled interviews and one undated row.

Here's the prompt we gave Claude:

Ask Claude:

Turn the most-popular list into a CSV with Video, Link, Published, Length, Views, Likes, Comments and a Likes per 1,000 views column.

@claude most-popular videos, scored (22 public videos) in Google Sheets: Video, Link, Published, Length, Views, Likes, Comments, Likes per 1,000 views

Recreated from a real run in this guide.

Step 9: Copy the 4 Plays the Data Points To

Play 1: Ship launches under two minutes. All six 1M+ uploads in @claude's latest 30 ran 0:48 to 1:39, all posted 3 weeks to 1 month ago, so start with: "Script a 60-second launch video for my newest feature."

Play 2: Teach long if you're a creator. Five of the six most-viewed niche results ran 9 to 28 minutes, so start with: "Outline a 15-minute Claude Code tutorial for beginners."

Play 3: Answer the comment questions. Seven of our 20 top comments asked something, so list every question in the top comments before you write a word, then start with: "Write a 3-minute video answering how a skill gets triggered."

Play 4: Rank by likes per 1,000 views. In our sheet, the 77.6M-view video scored 0.05, while five launch clips scored 10.05 to 27.20, so start with: "Rank my last 30 uploads by likes per 1,000 views."

Ask Claude:

Based on this sheet, give me 4 video ideas, each backed by a number from the data.

Instructions to reuse in a Claude Project

Paste this into your Claude Project's instructions, so every chat follows the same rules:

You are my YouTube research assistant.

Use Spiral's YouTube tools for every channel list, search, transcript and comment pull, and never guess a number.

For a channel, pull its latest 30 uploads and its 30 most popular videos, with likes and comments.

For a topic, search videos from this month, sorted by views.

Merge every list, remove duplicates by video link, and tell me how many rows you dropped.

Add a Likes per 1,000 views column: likes divided by views, times 1,000, rounded to 2 decimals.

Show me a table first, then build a CSV I can open in Google Sheets.

End with 3 to 5 video ideas, each backed by a number from the data.

Public data only: no commenter names, emails or personal details in any table.

The instructions in a Claude Project

The instructions block from this guide, in a Claude Project.

Results from our runs

80 videos pulled in 3 listing runs, 10 duplicates removed, 70 unique videos left.

We made 5 Spiral calls in total (3 lists, 1 transcript, 1 comment pull), about 70 seconds of run time from the first pull to the last.

All 6 uploads with 1M+ views in @claude's latest 30 (posted 14 hours to 1 month ago) ran 0:48 to 1:39; all 6 over 10 minutes stayed under 100K views.

5 of the 6 most-viewed "Claude Code tutorial" results this month ran 9 to 28 minutes.

Likes per 1,000 views ranged from 0.04 to 27.20 across the 22 videos in our sheet.

7 of the 20 top comments on "What are skills?" asked a question.

Views by video

Recreated from a real run in this guide.

Tips for better results

  • Pull both sorts, latest and popular. One shows what a channel does now, and the other shows what ever worked.
  • Give Claude the handle, not a link: "@claude" was all our channel pulls needed.
  • Add a time window to topic searches, like "this month" as we did, so old hits don't crowd out today's winners.
  • Ask for the transcript's first 10 seconds and last line only: that's where the hook and the takeaway live.
  • Save the instructions block as a Claude Project, so every new chat follows the same rules.

Common mistakes

Trusting raw views

Our top video had 77,627,477 views and 0.05 likes per 1,000 views. Views alone would have sent you copying the wrong format.

Skipping the dedupe

10 of our 80 rows were repeats, and every repeat inflates the averages you build on top.

Studying one list only

The channel said short wins, the niche search said long wins, and you only see both by pulling both.

Copying commenter names into your sheet

YouTube's terms bar harvesting information that identifies a person. So keep comment text and likes, and drop the names.

Asking for everything at once

One clear ask per step (list, then rank, then search) kept each of our runs clean and easy to check.

Put Your YouTube Tracker on a Schedule

Once your sheet works, the next move is making it run without you.

Claude's scheduled tasks run even while your computer sleeps, and they can use Spiral too.

So turn your Project instructions into a weekly task: "Every Monday at 9 AM, pull @claude's latest 30 uploads and flag any new video over 1M views."

Ask for a short report of new uploads and big movers, so your Monday read takes a minute.

Limits and good practice

YouTube's terms

YouTube's terms bar automated access without its permission. So keep your pulls to public data, small batches and research use.

Public numbers only

Spiral's tools read what YouTube shows the public. Watch time, retention and traffic sources stay inside the owner's YouTube Studio.

The runs don't explain the numbers

Our data showed a 77.6M-view video with few likes. But no run can tell you whether those views came from ads or from organic reach.

Gaps in single rows

One video in our popular pull came back with no publish date, so check odd rows before you chart them.

Cost

Spiral bills per use from a prepaid balance with no subscription; check each tool's price on the pricing page.

Using people data lawfully

Follow YouTube's terms: they bar automated access without permission and bar harvesting information that identifies a person.

Collect public channel and video data only, and leave commenter names, handles and faces out of your sheets.

Have a legitimate purpose, such as content research or competitor tracking, and keep only the columns that purpose needs.

If you handle data about people in the EU or UK, GDPR applies: know your lawful basis and delete what you no longer need.

Never use scraped comments to message, spam or target the people who wrote them.

Respect opt-outs and removals: if a video or comment disappears from YouTube, drop it from your list too.

FAQ

Can Claude scrape YouTube on its own?

Not at scale: Claude can search the web and read a page you link, but it has no built-in tool that returns a channel's uploads, views, likes and comments as rows. Connect Spiral, and it can.

Do I need to write any code?

No. You add Spiral as a custom connector, sign in, and ask in plain English; Claude picks the YouTube tools and runs them.

Can Claude get YouTube transcripts and comments?

Yes, through Spiral. In our runs, Claude pulled the full transcript of a 2:54 video and its top 20 comments in two calls.

Does this work on the free Claude plan?

Yes. Custom connectors work on every Claude plan and the Free plan allows one, so Spiral can be that one; scheduled tasks need a paid plan.

How much does it cost to scrape YouTube with Claude?

Spiral bills per use from a prepaid balance, with no subscription and credits that never expire; see pricing for each tool.

Can I get a channel's private analytics?

No. Spiral's tools read what YouTube shows publicly, so watch time, retention and traffic sources stay with the channel owner in YouTube Studio.

Can I export the results to Google Sheets?

Yes. Ask Claude for a CSV of the table, then open it in Google Sheets; Claude can also save files it creates straight to Google Drive.

The bottom line

You now have the whole loop we ran: pull, rank, search, read, merge, sheet, plays.

Start with one channel you care about, and let the numbers argue with your hunches.

Sources

  1. https://spiral.ai
  2. https://spiral.ai/pricing
  3. https://spiral.ai/docs/quickstarts/claude-desktop.md
  4. https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp
  5. https://support.claude.com/en/articles/10684626-enabling-and-using-web-search
  6. https://support.claude.com/en/articles/12012173-get-started-with-claude-in-chrome
  7. https://support.claude.com/en/articles/13854387-schedule-recurring-tasks-in-claude-cowork
  8. https://support.claude.com/en/articles/12111783-create-and-edit-files-with-claude