AI Income LabJoin AI Income Lab ↗

Claude Code and Apify: YouTube competitor analysis dashboard

Jump to video chapters

Watch on YouTube ↗ Subscribe on YouTube ↗

By · · 12:52 · 357 views

A sponsored build of a YouTube competitor analysis dashboard in Claude Code using Apify agent skills to scrape channels. Claude writes scraper, topic analysis and HTML dashboard files, the scrape takes about ten minutes, and the dashboard loads after fixes and a top-up of Anthropic credits. The video says Apify sponsored it and gave $50 in credits. The numbers on screen do not match each other.

Video summary

The video covers 9 parts: Intro: YouTube competitor analysis with Apify, Answering the Claude Code setup questions, Installing the Apify CLI and scraper scripts, Building the HTML dashboard files, Adding the Apify API token, Running the full competitor scrape, Scrape results and topping up Claude credits, Launching the dashboard and fixing data errors, and Touring the finished analytics dashboard.

What this video covers

What you build

A local project with an Apify-powered YouTube scraper, a topic analysis script and a standalone HTML dashboard served on localhost showing topics, trending keywords and channel specialties.

Tools used

Compare pricing: Apify. Some ↗ links are affiliate links, so I may earn a commission or credit. See every tool I recommend →

Key steps

Not covered

Apify sponsored this video and gave Mike $50 in free credits for the demo.

Summary written from the video's transcript and chapters.

In this video

  1. 0:00 Intro: YouTube competitor analysis with Apify
  2. 0:42 Answering the Claude Code setup questions
  3. 1:41 Installing the Apify CLI and scraper scripts
  4. 3:40 Building the HTML dashboard files
  5. 6:20 Adding the Apify API token
  6. 7:22 Running the full competitor scrape
  7. 8:41 Scrape results and topping up Claude credits
  8. 10:00 Launching the dashboard and fixing data errors
  9. 11:22 Touring the finished analytics dashboard

Questions and answers

How long did the competitor dashboard take to build?

About 15 to 20 minutes, plus a ten-minute scrape, Mike says.

How much does Apify cost for YouTube scraping?

Apify has a free plan with $5 of credits a month and paid plans from $29 a month, Mike says.

Transcript

Hey there, welcome to the channel. In this video, I'm going to show you step by step how to build a YouTube analytics tool which can do competitor analysis inside Claude Code. And we're also going to be using Apify agent skills to do all of the scraping on YouTube. I've personally been using Apify for a couple years now. And this video is sponsored by Apify. So, if you want to check the link in the description below, you can get started completely for free.

They also offer paid plans as well. So go ahead, check out Apify. It's one of the best scraping tools available. So without further ado, please subscribe to the channel and let's get into it. All the skills have been installed, including all the 35 plus agents. And I'm just going to go ahead and do this in Claude Code. So what that's going to do, it's just going to create the directory right here, YouTube AI automation analysis.

Read the rest of the transcript

We can uh specify which AI automation channels or keywords it wants to analyze. So, I'm just going to do top competitors. And it's already pulled in a lot of the major AI automation influencers and their content. So, that's pretty cool. We're just going to select that. So, time range, let's do last 30 days. Dashboard tech. What dashboard technology would you prefer? I'm going to choose the recommended one. HTML, JavaScript, standalone, and then API access. So, we will need to include the file most likely.

And I'm just going to submit those answers. Now, it's creating the entire YouTube analytics dashboard. It's pulling in all of the competitor channels. It's going to analyze trending topics using the skills from over here that it already has access to. So, that's going to use the AppFi trend analytics, I'm assuming. It's going to extract the data from from YouTube in this case. Now, it's reading the skill.md file. If we want to see exactly what it's doing, we can expand this here. And there we go.

So now it needs to run this command. We're going to go ahead and allow that. It's installing the Amplify MCP command line interface tool right here. And we're just going to let this run. Luckily, Apify gave me $50 in free credits, which was very generous of them in order to create a video showing how to use some of these skills. So, it's going to create the scripts for scraping and analyzing YouTube data. And it's going to uh come up with a complete solution as well.

This is the JS file that it's just created right here. Uh, and you can see it's got the all the competitor channels right here. You can modify this if you want to, but I think I'm just going to stick with those for now. I will trust that it's come up with the right competitors. And we're just going to create that file. So, now it's created the YouTube channel scraper.

It's going to create the topic analysis script and then it's also going to build the dashboard as well which we're going to uh get access to at the end. This is the analyze topics.js file that it just created. You can see all of the keywords in here, trending keywords, and it just wrote this entire script within what, like a couple seconds here. We're going to go ahead and allow that. And keep in mind, I'm currently on the free version of Claw Code.

They have uh paid plans available as well, which I will need to actually upgrade to at some point here. So, the individual plan starts about $17 per month, which is very affordable. Uh, but you can get started completely for free on Claude Code as well, and it seems to, you know, be very, very usable right out of the box. So, now last step is it's just going to create the HTML dashboard that will visualize all of the data. So, there we go.

So, here's the index.html file that it just created. And you can see it's the YouTube a automation competitor analysis dashboard. And there's the entire HTML file. So, we're just going to go ahead and allow it to write that. And then last step, it looks like it just needs to create a package.json file, which is right here. So, we're going to go ahead and allow that as well. And we'll see what this looks like. I'm pretty excited to see the finished product here.

And this is all just running within Visual Studio Code right here. This is Visual Studio Code 1.1. Okay, here's the readme file. It's just explaining what the tool does for analyzing YouTube competitors in the automation space, identifying trending topics, and visualizing insights through an interactive dashboard. Here's the file structure of the files that are built. And that's pretty much all there is to it.

And you can actually turn this into essentially a software as a service and provide this uh for a monthly fee if you wanted to build something along those lines. But in this case, I'm just having some fun with it and seeing what we can do for my own business. If you're interested in, you know, getting access to this tool, just let me know in the comments below. Be happy to share it with you.

And also feel free to join my growing Skool community which has about 2300 members in here at the time of recording almost. You get access to the entire community, the classroom with all the tutorials, courses, and templates, everything inside here as well. It's completely free to join. And then I also offer paid plans starting at $49 per month for premium and $899 per year for the VIP plan which gives you abs access to everything. There we go.

So now it's going to create a simple wrapper script that handles uh loading automatically right here. This is a run.js file. I'll go ahead and allow that. You can see this isn't taking very long. You don't have to know how to write a single line of code. It will do everything for you. And you can build simple solutions just like this.

And you can essentially sell this as a done for you service or a platform that people can use and then just charge a monthly fee if that's something you want to do. So here's the entire project structure that it's just created. It's explaining what it does. So it's just going to scrape YouTube data, analyze trending topics, and and it's going to generate dashboards. Here's all of the information. And now, how do we actually just run this? So, it says it needs the Amplify token.

Um, so I'm just going to go ahead and grab my token from over here. We'll go to settings and then API and integrations. Going to copy and paste that token and add my I'm just going to say add my Apify token to ENV file because I'm not exactly sure where it's located. So, we're just going to go ahead and tell Claude Code to do that. There we go. So, it's going to create the EMV file. It's just going to add that Apify token directly in there.

So, here's how we actually run it. So, we just want to open the dashboard. It's on localhost port 8000. Says we haven't run the scraping analysis yet, so there won't be any data to display. Uh, so it looks like it needs to actually do the scraping first. This is the dashboard. It says error loading data. No an no analysis data found. So we need to run analyze topics.js first.

So we need to but this is cool that it now has the dashboard running on my local host port 8000. So we just need to run this. So if I just type in run.js full analysis here, it should start scraping using the shell script that it created. And that's going to be using the Apify skills as well. It's going to update the scraper script to load the env file.

And now it's going to read the scraper, this JavaScript file right here, which is only a couple lines. We'll go through and allow this. So should start running the Apify agent skills. And hopefully this doesn't use up too many credits. Although I do have quite a few credits available over here. Thanks to Appy. Shout out to Apify. And yeah, if you want to get started, uh the subscription starts at well, you can get it for free and then you can also upgrade to the paid plan

as well, which starts at $29 per month. So, very affordable all the way up to the sky's the limit, $1,000 a month, depending on how many credits that you want. But in most cases, the free plan works pretty well. And that includes $5 of credits per month. And then for the $29, you just pay as you go. So you can just top up your credits anytime you want. After about 10 minutes, it has finished scraping all of the competitors.

And it's got 305 total videos scraped from multiple ad automation YouTube channels with 175 million total views across all videos. And these are the channels that were included in the analysis. And now it's created these files right here, the JSON files. So, if we want to open up this, you can see this is the breakdown and then it's put it into the dashboard. So, now all I'm going to do is I'm just going to run the JS run.js script and do the dashboard.

But now, unfortunately, it says my credit balance is too low. I just got an email from Anthropic Claude and they said that I need to up my balance. So, all you have to do in order to do that is you just come over to platform.claude.com claw.com and then you can quickly and easily buy some more credits. I think the minimum is like $25. We can try 20.

And we'll just go ahead and finish this up over here so we can actually open up the dashboard and see what it has done. I'm just going to go ahead and do that again since the other transaction didn't go through. We're going to buy $10 of credits and this time should go through no issue whatsoever. So there we go. So now if we come back over here, we can just do run.sh dashboard.

And that's going to spool up the dashboard, which we can open up in the browser over here. Once it's finished, I'm just going to go to localhost port 8000 and see if the dashboard's up. It's not up yet. So, because we need to run this command, and that's just going to spin up the dashboard, and we should get access to all of the YouTube analysis uh that we scraped using amplify. And that's just the index.html file right here.

So, you can see that right here inside VS Code. This is the code for the dashboard. Still says port 8000 is in use. So, it looks like it's going to use 801 instead. Whatever it needs to do, that's fine. Okay, dashboard's running. So, it may be on a different port this time. Let's go ahead and check real quick. Let's try port 801. And boom, there it is. But it's still saying error loading data. No analysis data found. For some reason, I'm getting the error.

Let's go ahead and paste that in. And it should be able to fix it since I've already run the analyze topics.js. JS. Okay, that all looks good. Ah, there we go. Okay, excellent. So now you can see I have this complete beautiful looking dashboard over here for YouTube AI automation analysis. So check it out. We've got a total of 74 videos, 14 topics identified, four trending keywords, 26 channels analyzed, and 175 million total views. And you can see the breakdown here.

So here's some of the topic uh topic distributions. So that's AI agents, claude, automation tools, tutorials. We've also got a pie chart over here with the trending keywords. And this was all built within you know 15 20 minutes inside Claude coat. So really really amazing what this can do. It's even got a graph here showing the distribution broken down week by week. And we've got the channel specialties here as well. So, these are all the different channels that I analyzed on YouTube.

Here's some of the most common mentioned keywords. So, here's one. You can see the breakdown by views as well. So, this one has 57,000 views. Doesn't actually have a link to the video where we can watch it, but I'm sure we could easily add that uh with a few simple prompts in Claude Code. And yeah, so that's what it was able to build in about 15 minutes using the Apify skills and Claude code. Thank you so much for watching this video.

Please subscribe to the channel for more helpful tutorials like this. And with that being said, take care, stay safe. Signing off.

Not ready to join? Get the weekly build notes: new guides and tested builds in one short email.

You may also like