# 🚀 YouTube Scraper · 5,000 Free Videos/Month (`omkar-cloud/youtube-scraper`) Actor

YouTube Scraper gets you YouTube videos ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — views, likes, chapters, heatmap and channels. 💰 $1 per 1,000 videos, no start fee. Scrape your first 5,000 videos free every month 🚀

- **URL**: https://apify.com/omkar-cloud/youtube-scraper.md
- **Developed by:** [Omkar Cloud](https://apify.com/omkar-cloud) (community)
- **Categories:** Videos, Social media, Developer tools
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YouTube Scraper

YouTube Scraper by Omkar Cloud gets you 🎯 accurate, 🔍 detailed YouTube videos.

YouTube uses Google BotGuard bot protection to stop you from getting its data.

YouTube Scraper beats it, so you get the data, and can successfully complete your project.

**$1 per 1,000 videos.** And with Apify's free plan you get $5 of credit every month, so your first **~5,000 videos each month are free**.

This is an excellent Actor made by Omkar Cloud, which is Rated Excellent — [4.7 based on 30 reviews on Trustpilot](https://www.trustpilot.com/review/omkar.cloud).

👉 [**Try YouTube Scraper free**](https://apify.com/omkar-cloud/youtube-scraper) — your first ~5,000 videos are Free.

### What can I get

- 🔍 **Search the 500+ hours uploaded every minute** — videos or Shorts with YouTube's own filters: upload date, duration, 4K, HDR, subtitles, live
- 📺 **Every video of any channel** — from MrBeast's 518M-subscriber channel down: uploads, Shorts or live streams, latest, popular or oldest first
- 🎬 **Full video details** — exact views & likes, comment count, publish time, chapters, most-replayed heatmap, music credits & subtitles
- 🔗 **Any video link** — paste watch, youtu.be or Shorts links and get every detail back

### Why YouTube Scraper

Most other YouTube scrapers fail you in one of four ways:

- 🗄️ **Inaccurate, cached, stale data**
- 🧩 **Low-detail data** — a few fields per row, never the full picture
- 💸 **Pay more to get the same data**
- 🪦 **Works today, breaks next month** — nobody maintains it

YouTube Scraper is scraped live on every run, priced honestly, and actively maintained.

### Example: A Full YouTube Video

```json
{
  "input": "@MrBeast",
  "id": "0e3GPea1Tyg",
  "title": "$456,000 Squid Game In Real Life!",
  "link": "https://www.youtube.com/watch?v=0e3GPea1Tyg",
  "thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/maxresdefault.jpg",
  "duration_seconds": 1541,
  "category": "Entertainment",
  "published_at": "2021-11-24T21:00:01Z",
  "view_count": 966940922,
  "like_count": 20164787,
  "comment_count": 659000,
  "channel": {"id": "UCX6OQ3DkcsbYNE6H8uQQuVA", "name": "MrBeast", "handle": "@MrBeast", "subscriber_count": 518000000, "is_verified": true},
  "chapters": [
    {"title": "Red Light", "start_seconds": 0, "end_seconds": 240},
    {"title": "Honeycomb", "start_seconds": 240, "end_seconds": 460}
  ],
  "heatmap": [
    {"start_seconds": 0, "duration_seconds": 15.4, "intensity": 1},
    {"start_seconds": 15.4, "duration_seconds": 15.4, "intensity": 0.2474}
  ]
}
```

*Trimmed for readability.*

### Get Started with 5,000 Free Videos

1. [Hit **Try for Free Button**](https://apify.com/omkar-cloud/youtube-scraper) — the input is pre-filled with a "raspberry pi" search.
2. Enjoy your data 😎.

### Pricing

High value, Low price.

| What | Price | What you get |
|---|---|---|
| **Videos** | **$1 per 1,000** | id, title, link, thumbnail, duration, views, publish time, live / upcoming flags, badges, channel + the `query` or channel that found it |
| **Detailed videos** | $3 per 1,000 | Everything above + exact likes, comment count, publish date, category, keywords, hashtags, chapters, most-replayed heatmap, music credits, subtitles, end screen and availability |

No start fee — you pay only for the videos you get. Control your spend with **Max Videos per Search** and **Max Videos per Channel**: 1,000 videos ≈ $1.

💡 Apify's free plan includes $5 of credit every month — about **5,000 free videos, every month**.

👉 [**Scrape your first 5,000 videos free**](https://apify.com/omkar-cloud/youtube-scraper)

### FAQ

**How much will a run cost?** A search for 1,000 videos costs about $1. The same search with full details costs about $3.

**Can I scrape a whole channel?** Yes — put its @handle (`@MrBeast`), channel ID or link in **Channels**, pick Videos, Shorts or Live streams, and set **Max Videos per Channel**.

**Can I scrape videos I already have links for?** Yes — paste them in **Video Links or IDs**. Each returns one fully detailed row.

### Run It from Code

Grab your API token from [Integrations Settings here](https://console.apify.com/settings/integrations) and replace `<YOUR_API_TOKEN>` below.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("omkar-cloud/youtube-scraper").call(run_input={
    "searchQueries": ["raspberry pi"],
    "uploadDate": "month",
    "maxResultsPerSearch": 100,
})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["title"], video["view_count"], video["link"])
```

**Node.js** (`npm install apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('omkar-cloud/youtube-scraper').call({
    channels: ['@MrBeast'],
    channelSortBy: 'popular',
    scrapeVideoDetails: true,
    maxVideosPerChannel: 30,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### 💬 Have Questions? We Have Answers.

You're a business owner — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

[![Message Us on WhatsApp](https://raw.githubusercontent.com/omkarcloud/assets/master/images/whatsapp-us.png)](https://api.whatsapp.com/send?phone=918178804274\&text=I%20need%20help%20with%20using%20the%20YouTube%20Scraper%20Actor.)

[![Ask Us on Email](https://raw.githubusercontent.com/omkarcloud/assets/master/images/ask-on-email.png)](mailto:happy.to.help@omkar.cloud?subject=Help%20with%20YouTube%20Scraper%20Actor\&body=I%20need%20help%20with%20using%20the%20YouTube%20Scraper%20Actor.)

You are important to us — just message us and we will solve your problem ✅ within 1 working day. 🩷 Pinky Promise 🤙!

### Related Actors

- 💬 [**YouTube Comments Scraper**](https://apify.com/omkar-cloud/youtube-comments-scraper) — every comment & reply with likes, authors, pinned & hearted flags. $0.50 per 1,000 comments.
- 📝 [**YouTube Transcript Scraper**](https://apify.com/omkar-cloud/youtube-transcript-scraper) — full text & timed segments for any video or a channel's latest uploads. $2 per 1,000 transcripts.

### Popular Actors by Omkar Cloud

- [**G2 Product Scraper**](https://apify.com/omkar-cloud/g2-product-scraper) — G2 product details, ratings & AI-found contacts
- [**Website Email Contact Scraper**](https://apify.com/omkar-cloud/website-email-contact-scraper) — emails, phones & socials from any website
- [**AliExpress Product Scraper**](https://apify.com/omkar-cloud/aliexpress-product-scraper) — live product details, SKU variants, stock & shipping
- [**Booking Scraper**](https://apify.com/omkar-cloud/booking-scraper) — Booking.com hotels: prices, ratings, rooms & amenities
- [**IMDb Scraper**](https://apify.com/omkar-cloud/imdb-scraper) — movies, TV shows, ratings, cast & box office

👉 [**Scrape your first 5,000 videos free now**](https://apify.com/omkar-cloud/youtube-scraper)

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search — each is searched separately. Rows carry a `query` field so you can tell them apart.

## `searchType` (type: `string`):

Search regular videos or Shorts.

## `uploadDate` (type: `string`):

Only videos uploaded within this period.

## `duration` (type: `string`):

Only videos of this length.

## `sortBy` (type: `string`):

Order of the results.

## `features` (type: `array`):

Only videos that have every selected feature.

## `maxResultsPerSearch` (type: `integer`):

Stop each search after this many videos. Caps your cost: 1,000 videos ≈ $1.

## `channels` (type: `array`):

Channel @handles (`@MrBeast`), channel IDs (`UC...`) or channel links.

## `channelContent` (type: `string`):

Which channel tab to scrape.

## `channelSortBy` (type: `string`):

Order of the channel's videos.

## `maxVideosPerChannel` (type: `integer`):

Stop each channel after this many videos.

## `scrapeVideoDetails` (type: `boolean`):

Adds the full video details to every row (billed as a detailed video).

## `videoUrls` (type: `array`):

Watch, youtu.be, Shorts or live links, or video IDs. Always scraped in full (billed as detailed videos).

## `country` (type: `string`):

2-letter country code for region-specific results, e.g. `US`, `GB`, `IN`.

## `language` (type: `string`):

Language of titles, dates and labels (`en`, `es`, `de`, ...). Counts are exact in English.

## Actor input object example

```json
{
  "searchQueries": [
    "raspberry pi"
  ],
  "searchType": "video",
  "uploadDate": "",
  "duration": "",
  "sortBy": "relevance",
  "maxResultsPerSearch": 50,
  "channelContent": "videos",
  "channelSortBy": "latest",
  "maxVideosPerChannel": 50,
  "scrapeVideoDetails": false,
  "country": "US",
  "language": "en"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "raspberry pi"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("omkar-cloud/youtube-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchQueries": ["raspberry pi"] }

# Run the Actor and wait for it to finish
run = client.actor("omkar-cloud/youtube-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "raspberry pi"
  ]
}' |
apify call omkar-cloud/youtube-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,omkar-cloud/youtube-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/81foJPdxAUS0wXchU/builds/avI0VVmlgbTuWfTHq/openapi.json
