YouTube Scraper

Collect public YouTube videos, channels and search results with video metadata.

by ApifyReady to run$0.0025 per result · $0.25 per 100 results

Example

You ask your agent

“Find two YouTube videos about Crawlee.”

You get

First of 2 results

Title
Build a Web Scraper from Scratch | JavaScript | Playwright | Crawlee
URL
https://www.youtube.com/watch?v=DOtJEwVsJic
Date
2024-01-29 06:15 UTC
Text
In this video, we will guide you through the process of building your very own web scraper from scratch using…
Type
video
Input
Crawlee
Likes
162
Order
1
What your agent sends and gets back (JSON)

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

Request

{
  "tool_id": "apify.streamers-youtube-scraper",
  "input": {
    "input": {
      "searchQueries": [
        "Crawlee"
      ]
    },
    "maxItems": 2
  }
}

Response

{
  "items": [
    {
      "id": "DOtJEwVsJic",
      "url": "https://www.youtube.com/watch?v=DOtJEwVsJic",
      "date": "2024-01-29T06:15:00.000Z",
      "text": "In this video, we will guide you through the process of building your very own web scraper from scratch using JavaScript and two powerful tools: Playwright and Crawlee. Whether you're a beginner or an experienced developer, this step-by-step tutorial will provide you with all the knowledge and code snippets you need to get started with web scraping.\n\n➤➤ JOIN OUR TELEGRAM GROUP: https://t.me/+hE...",
      "type": "video",
      "input": "Crawlee",
      "likes": 162,
      "order": 1,
      "title": "Build a Web Scraper from Scratch | JavaScript | Playwright | Crawlee",
      "duration": "00:22:43",
      "hashtags": [],
      "location": "UNITED KINGDOM",
      "channelId": "UCVqW6zTIiuJYAOsH2Rp3yVA",
      "fromYTUrl": "https://www.youtube.com/results?search_query=Crawlee&sp=EgIQAQ%3D%3D",
      "subtitles": null,
      "viewCount": 8209,
      "channelUrl": "https://www.youtube.com/@deejaydev",
      "channelName": "deejaydev",
      "isMonetized": null,
      "thumbnailUrl": "https://i.ytimg.com/vi/DOtJEwVsJic/maxresdefault.jpg",
      "collaborators": null,
      "commentsCount": 16,
      "isMembersOnly": false,
      "isPaidContent": false,
      "aiVideoSummary": null,
      "translatedText": "In this video, we will guide you through the process of building your very own web scraper from scratch using JavaScript and two powerful tools: Playwright and Crawlee. Whether you're a beginner or an experienced developer, this step-by-step tutorial will provide you with all the knowledge and code snippets you need to get started with web scraping.\n\n➤➤ JOIN OUR TELEGRAM GROUP: https://t.me/+hE...",
      "channelUsername": "deejaydev",
      "translatedTitle": null,
      "descriptionLinks": [
        {
          "url": "https://t.me/+hEQueA4gvk9lYjJk",
          "text": "https://t.me/+hEQueA4gvk9lYjJk"
        }
      ],
      "transcriptionUrl": null,
      "commentsTurnedOff": false,
      "aiVideoDescription": null,
      "numberOfSubscribers": 1800
    },
    {
      "id": "g1Ll9OlFwEQ",
      "url": "https://www.youtube.com/watch?v=g1Ll9OlFwEQ",
      "date": "2022-08-22T15:26:13.000Z",
      "text": "Crawlee helps you build reliable scrapers. Fast. It is an intuitive, customizable, open-source Node.js library for web scraping and browser automation \n\nVisit https://crawlee.dev/ to get started 🚀\n\nQuickly scrape data, store it, and avoid getting blocked with headless browsers, smart proxy rotation, and auto-generated human-like headers and fingerprints \n\nNow is the best time to show your love...",
      "type": "video",
      "input": "Crawlee",
      "likes": 167,
      "order": 0,
      "title": "Crawlee, the web scraping and browser automation library",
      "duration": "00:03:14",
      "hashtags": [
        "#webscraping"
      ],
      "location": null,
      "channelId": "UCTgwcoeGGKmZ3zzCXN2qo_A",
      "fromYTUrl": "https://www.youtube.com/results?search_query=Crawlee&sp=EgIQAQ%3D%3D",
      "subtitles": null,
      "viewCount": 13600,
      "channelUrl": "https://www.youtube.com/@Apify",
      "channelName": "Apify",
      "isMonetized": null,
      "thumbnailUrl": "https://i.ytimg.com/vi/g1Ll9OlFwEQ/maxresdefault.jpg",
      "collaborators": null,
      "commentsCount": 15,
      "isMembersOnly": false,
      "isPaidContent": false,
      "aiVideoSummary": null,
      "translatedText": null,
      "channelUsername": "Apify",
      "translatedTitle": null,
      "descriptionLinks": [
        {
          "url": "https://crawlee.dev/",
          "text": "https://crawlee.dev/"
        }
      ],
      "transcriptionUrl": null,
      "commentsTurnedOff": false,
      "aiVideoDescription": null,
      "numberOfSubscribers": 42800
    }
  ],
  "item_count": 2
}

Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use YouTube Scraper (tool ID: apify.streamers-youtube-scraper). Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? Create your account on the web and connect one from your dashboard later.

Other tools for this job

Compare all 13 →

Questions

Is YouTube Scraper by Apify free?

Scrollport has no free tier: it costs $0.0025 per result ($0.25 per 100 results), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

Do I need an API key from Apify?

No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to Apify, so you don't sign up with Apify or manage an API key.

Details

About this tool

Find YouTube videos from up to five searches or channel, playlist and video URLs. Each video returns title, URL, views, likes, comments count, duration, publish date, description and channel details. Optional ALWAYS_SUBTITLES adds YouTube's own captions; paid transcription and AI summaries aren't offered. maxItems is split evenly across the searches. You're charged per video returned plus a small fee per run. The worked example shows selected fields: long text is shortened, nested lists keep one item and expiring media links are left out.

All inputs and outputs

Input

inputobject · required

Provider-specific public source, URL or search criteria.

maxItemsinteger · optional

Maximum number of records to return.

minimum: 1 · maximum: 100

Output

item_countnumber
itemsarray

Result records.

Errors and limits
  • upstream_error: The scraper could not return usable results; the wallet was not charged.Check the input and limits, or retry later.