YouTube Scraper API

YouTube Scraper API turns a channel, playlist, search or video link into a table of videos with titles, publish dates, lengths, views, likes and description links, plus the channel's subscriber and video counts. Ask your AI assistant in plain English or call the same tool from your code.

  • 25+ fields per video
  • Tested
  • REST API + MCP
  • Billed per run

1Your request

Use the AI/ML API MCP YouTube Scraper API tool. Get the 10 newest videos from NASA's YouTube channel with publish date, length, views and likes.

Channel
youtube.com/@NASA
Order
Newest first
Videos
10 (no Shorts or streams)

2Result10 videos · 16 Nov 2026

#VideoLengthViewsLikes
1MAX POWER: Highlights from NASA’s First-Ever Tech Expo and Air ShowPublished 9 Nov 20261:2779,9811,000
2NASA Expands Lunar Delivery Network to Support Moon Base DevelopmentPublished 7 Nov 20261:3463,1501,000
3Apply to Become A NASA AstronautPublished 7 Nov 20261:04411,22510,000
4NASA Moon Base: Rovers and Lunar Terrain Vehicles (October 2026 Update)Published 20 Oct 20269:171,065,33712,000
5Planetary Defenders: This Is Not an ExercisePublished 14 Oct 202620:15700,37712,000
6NASA's SpaceX Crew-13 Mission (Official NASA Trailer)Published 30 Sep 20261:02108,0411,300
7NASA Moon Base: The First Six MonthsPublished 8 Sep 20261:07533,3129,100
8What It TakesPublished 4 Sep 20262:32332,1358,300
Source: Real result from 16 Nov 2026, 8 of 10 videos shown. View counts are exact; like counts come back rounded the way YouTube displays them.

What is YouTube Scraper API?

YouTube Scraper API collects public video data from YouTube and returns one record per video. Point it at a channel such as @NASA, a playlist, a single video or a search like “lunar rover explained”, say how many videos you want and in which order, and you get a table with the numbers and the channel profile in every row.

It covers what a viewer can see on YouTube: titles, descriptions, dates, lengths, views, likes and channel totals. Private analytics such as watch time stay in the channel owner's YouTube Studio.

You ask

Get the 10 newest videos from NASA's YouTube channel with publish date, length, views and likes.

It runs

YouTube Scraper API

From your AI assistant over MCP or from your code over REST

You get

  • Video
  • Engagement
  • Channel
  • Access flags
  • Captions on request
  • Benchmark competitor channelsSee what a rival posted this month, how long the videos run and how many views each one got.
  • Vet creators before a dealCheck subscribers, recent views and posting rhythm before you sponsor or partner with a channel.
  • Research a topic before you filmSearch a subject and see which titles and lengths pull views right now.
  • Feed a video catalogFill a database, a newsletter or a learning hub with titles, thumbnails and links from chosen channels.
  • Hand the table to your agentLet Claude or ChatGPT collect the videos, then rank, chart or summarize them in the same chat.

What data does the YouTube scraper API extract?

Every video comes back as one record with the channel's profile attached. These are the fields our test run returned, filled where YouTube shows them.

  • Video

    1. Video ID and URL
    2. Title
    3. Description text
    4. Links in the description
    5. Hashtags
    6. Publish date and time
    7. Length
    8. Thumbnail image
    9. Video type
    10. Location tag
  • Engagement

    1. View count
    2. Like count
    3. Comment count
    4. Comments turned off
  • Channel

    1. Channel name and handle
    2. Channel ID and URL
    3. Subscriber count
    4. Videos on the channel
    5. Total channel views
    6. Join date
    7. Verified badge
    8. Channel description and links
    9. Avatar and banner images
  • Access flags

    1. Members-only
    2. Paid promotion
    3. Age-restricted
    4. Collaborators
  • Captions on request

    1. Subtitles in SRT, VTT, XML or plain text
    2. Subtitle language

Numbers reflect the moment of the run. Shorts and live streams are collected separately from regular videos, each with its own limit. For the spoken words of a video use YouTube Transcript API, and for what viewers wrote use YouTube Comments API.

Sample output from NASA's channel

The table at the top of this page is a real run from 16 November 2026: the 10 newest regular videos on youtube.com/@NASA, with Shorts and live streams set to zero. The videos span 3 September to 9 November 2026, and every record also carried the channel profile shown here.

Views in this run, highest first
  1. NASA Moon Base: Rovers and Lunar Terrain Vehicles (October 2026 Update)1.1M
  2. Planetary Defenders: This Is Not an Exercise700.4K
  3. NASA Moon Base: The First Six Months533.3K
  4. Apply to Become A NASA Astronaut411.2K
  5. What It Takes332.1K
  6. NASA's SpaceX Crew-13 Mission (Official NASA Trailer)108K
  7. MAX POWER: Highlights from NASA’s First-Ever Tech Expo and Air Show80K
  8. NASA Expands Lunar Delivery Network to Support Moon Base Development63.1K

One result in full

Channel details in every record

Channel
NASA (@NASA), verified
Subscribers
15,100,000
Videos on the channel
6,202
Total channel views
1,136,068,495
Joined
3 Jun 2008
Links in channel description
nasa.gov, X, Facebook, Flickr, Instagram, commenting policy
The channel fields repeat on each video, so one run gives you the videos and the channel profile.

What this sample tells you

  • The two longest videos, 9:17 and 20:15, have the most views: 1,065,337 and 700,377. The other eight all run under four minutes.

  • Views are exact and likes are rounded the way YouTube displays them, such as 1,300 or 12,000. Across the ten videos, likes add up to about 1.7% of views.

  • Comment count reads 0 on all ten, and a comments run on two of these videos found none. Check that comments are open before you plan comment research on a channel.

  • 9of 10

    9 of 10 descriptions carry links, 1 lists chapter timestamps and none uses hashtags.

How to scrape YouTube with your AI assistant

  1. Connect AI/ML API

    Click Try it now, pick your client and add the MCP server. You sign in with your AI/ML API account once.

  2. Point it at a source

    Paste a channel, playlist, video or search link, or type the words you would put into YouTube's search bar.

  3. Say how many and in what order

    Ask for the newest, the most popular or the oldest videos and give a number, such as the latest 20.

  4. Work with the table

    Ask your assistant to sort by views, chart uploads per week, export a CSV or pull transcripts for the top three.

Prompts to start with

  • Use the AI/ML API MCP YouTube Scraper API tool. Get the 10 newest videos from youtube.com/@NASA with publish date, length, views and likes in a table.

  • Use the AI/ML API MCP YouTube Scraper API tool. Search YouTube for “home battery installation” and return the 20 most viewed videos under 20 minutes, with channel names.

  • Use the AI/ML API MCP YouTube Scraper API tool. List the 15 most popular videos on youtube.com/@TED and add a column with average views per day since publishing.

  • Use the AI/ML API MCP YouTube Scraper API tool. Compare the last 10 uploads of [channel A] and [channel B]: average views, average length and how many run longer than 10 minutes.

Settings that shape a YouTube scrape

You describe the request in words and your assistant sets these for you. In code you pass them yourself.

SettingWhat it controlsTip
LinksVideo, channel, playlist or YouTube search page URLsWhen you give links, search words are ignored
Search wordsTerms as you would type them into YouTubeRun different phrasings as separate searches and merge
Number of videosRegular videos per search or per channelStart with 10 to check the source, then scale up
Shorts and streamsSeparate limits for Shorts and live streamsSet both to 0 when you only want regular uploads
Channel orderNewest, most popular or oldest uploadsPopular shows a channel's hits; newest shows its rhythm
Search sort and filtersRelevance, rating, date or views; upload date; length under 4, 4 to 20 or over 20 minutes; HD, 4K, subtitles, Creative Commons, liveFilters cut noise before you pay for results
Published afterA date, or a number of days backUse 30 days for a monthly report
SubtitlesDownload captions with each video, in SRT, VTT, XML or plain textEnglish is the default; pick another language if needed

Large channels hold thousands of videos. NASA's lists 6,202, so pull the newest or most popular slice that answers your question and widen it only if you need to.

What teams do with YouTube video data

  • Competitor channel tracking

    Pull a rival's latest uploads every week and watch which topics, lengths and titles earn views.

    Publish dateViewsLength

  • Creator and influencer vetting

    Check subscriber counts, recent view levels and likes before you sign a sponsorship.

    SubscribersViewsLikes

  • Topic research before filming

    Search a subject and study the titles, lengths and view counts of what already ranks.

    TitleViewsLength

  • Posting rhythm benchmarks

    Count uploads per week and the mix of long videos and Shorts for channels in your niche.

    Publish dateVideo typeLength

  • Video catalogs and newsletters

    Fill a learning hub, a directory or a weekly email with titles, thumbnails and links from chosen channels.

    Video IDThumbnailTitle

  • Research with an agent

    Ask your assistant to collect videos, add transcripts for the best ones and write a short brief in one conversation.

    Any field

YouTube scraper API for your code

In your AI assistant

MCP · sign in once with your AI/ML API account

MCP setup guide ↗

In your code

Backend, script or scheduled job

REST · your AI/ML API key, JSON records back

The same tool runs over REST with your AI/ML API key. Your backend sends links or search words with the limits and filters above and gets JSON records with video and channel fields, ready for a dashboard, a spreadsheet or a database. A weekly job that pulls the newest uploads of ten channels is a few lines of code.

Use MCP when a person explores in a chat and REST when the work runs on a schedule. Both use one AI/ML API account and one balance, with no Google Cloud project or API quota to manage. Start with the Toolbox REST quickstart.

Other ways to collect YouTube video data

The same public numbers can come from several places. The right choice depends on whether you own the channel, how often you need the data and where you work with it.

Other ways to collect YouTube video data: YouTube Scraper API on AI/ML API, Copy from YouTube by hand, YouTube Data API, Your own scraper
AI/ML APICopy from YouTube by handYouTube Data APIYour own scraper
SetupConnect once with your AI/ML API accountNoneGoogle Cloud project, API key, daily quota and your own codeHeadless browser, proxies and parsing to maintain
Inside an AI chatYes. Over MCPNo. NoOnly if you build itOnly if you build it
Best forChannel and search research from chat or codeA few videos, onceApps built on Google's official API and managing your own channelTeams with engineers to keep it running

Pricing

Pay as you goBilled per run from your AI/ML API balance

  • No subscription
  • No seat fee
  • One balance for every tool

Runs are billed from your AI/ML API balance by the number of videos returned, with no subscription or seat fee. Our 10-video channel run cost less than two cents. Bigger pulls cost more, so start with a small number and check the current price in your dashboard.

See pricing

FAQ

Is it legal to scrape YouTube?

Collecting public video data such as titles, views and channel totals is common for research and marketing. YouTube's terms apply to the service, and privacy laws apply if you store personal data. Ask a lawyer about your specific use.

How many videos can I get from one channel?

Set the number you need. Regular videos, Shorts and live streams each have their own limit, and you can sort a channel by newest, most popular or oldest. Start small: NASA's channel lists 6,202 videos.

Can I scrape YouTube search results?

Yes. Give the search words and, if you like, filters for upload date, length, sort order and features such as HD, subtitles or Creative Commons. Each result is a video record like the ones in the sample above.

Does it return watch time, revenue or traffic sources?

No. It reads what a public page shows: views, likes, lengths, dates and channel totals. Watch time, revenue and traffic sources are visible only to the channel owner in YouTube Studio.

How is this different from the YouTube Data API?

The Data API is Google's official product. It needs a Google Cloud project, an API key and a daily quota, and it is the right choice when you manage your own channel. YouTube Scraper API needs only your AI/ML API account, returns channel stats alongside the videos and works inside AI assistants over MCP.

Can it get transcripts and comments too?

It can attach subtitles to each video in SRT, VTT, XML or plain text. For line-by-line timestamps use YouTube Transcript API, and for what viewers wrote use YouTube Comments API.

Why are like counts round numbers?

YouTube displays likes in rounded form, such as 12K, and the result keeps that precision. View counts in our test were exact to the single view.

Can I use it from Claude, ChatGPT or Cursor?

Yes. Add the AI/ML API MCP server once and ask in plain English. Hermes, OpenClaw and other MCP clients work the same way.

How fresh is the data?

Each run reads YouTube at that moment, so views, likes and subscriber counts are current as of the run. Run it again to track change over time.

Scrape your first YouTube channel

Connect once, then ask for videos and stats in plain English.