# YouTube Video, Channel & Search Scraper — Fast Direct API (`leopoldsaint/youtube-video-channel-scraper`) Actor

Fast no-browser YouTube scraper for search queries, channels (Videos, Shorts, Streams), playlists, and direct video URLs. Includes upload-date filters, exact views, tags, descriptions, and captions metadata at one flat rate.

- **URL**: https://apify.com/leopoldsaint/youtube-video-channel-scraper.md
- **Developed by:** [Leopold saint](https://apify.com/leopoldsaint) (community)
- **Categories:** Videos, Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 video scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What does YouTube Video, Channel & Search Scraper do?

**YouTube Video, Channel & Search Scraper** extracts rich video metadata from [YouTube](https://www.youtube.com) search queries, creator channels (**Videos, Shorts, and Live Streams**), playlists, and direct video URLs using fast direct HTTP API calls with zero browser overhead. Every record can include exact view counts, durations, publish dates, full descriptions, tags, categories, and available caption languages—at one flat rate with **zero add-on filter fees**.

On the Apify platform, you get REST API access, scheduled runs, webhooks, MCP integration for AI agents, automatic proxy fallback, and exports to JSON, CSV, or Excel.

### Why use YouTube Video, Channel & Search Scraper?

- **Competitor & content intelligence:** Track upload velocity, view performance, titles, thumbnails, and keyword tags across any niche or channel list.
- **Influencer & creator discovery:** Search keywords filtered by upload date (`hour`, `today`, `week`, `month`, `year`) and `minViews` to find breakout creators fast.
- **AI & analytics pipelines:** Combine with our [YouTube Transcript & Subtitles Scraper](https://apify.com/leopoldsaint/youtube-transcript-scraper) to feed trending videos directly into summarization or RAG workflows.
- **No sneaky add-on fees:** Upload-date filtering and full video detail enrichment are included in the base flat per-video price.

### How to use YouTube Video, Channel & Search Scraper

1. Open the **Input** tab and enter one or more **Search Queries** (e.g., `"ai agents workflow"`) and/or **Channel, Playlist, or Video URLs / `@Handles`** (e.g., `@mkbhd`).
2. Optionally choose **Upload Date Filter**, **Sort Order**, **Channel Tab** (`videos`, `shorts`, `streams`), and **Minimum View Count Filter**.
3. Set **Max Total Videos** and click **Start**.
4. Inspect results in the **Output** table or download JSON, CSV, Excel, or HTML.

### Input

Configure via the **Input** tab or pass JSON to the Apify API:

```json
{
    "searchQueries": ["ai agents workflow"],
    "startUrls": ["@mkbhd"],
    "channelTab": "videos",
    "uploadDate": "month",
    "sortBy": "viewCount",
    "maxResultsPerSource": 20,
    "maxTotalVideos": 25,
    "includeVideoDetails": true,
    "minViews": 1000
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

```json
{
    "videoId": "KTDJiVpSDTI",
    "videoUrl": "https://www.youtube.com/watch?v=KTDJiVpSDTI",
    "title": "Sample Video Title",
    "channelName": "Marques Brownlee",
    "channelId": "UCBJycsmduvYEL83R_U4JriQ",
    "channelUrl": "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ",
    "viewCount": 1450200,
    "durationSeconds": 815,
    "durationText": "13:35",
    "publishDate": "2026-11-12",
    "category": "Science & Technology",
    "hasCaptions": true,
    "captionLanguages": ["en"],
    "keywords": ["tech", "review"],
    "isShort": false
}
```

### Data table

| Field | Type | Description |
| --- | --- | --- |
| `videoId` | string | 11-character YouTube video ID |
| `videoUrl` | string | Canonical YouTube watch or Shorts URL |
| `title` | string | Full video title |
| `channelName` | string | Creator channel name |
| `channelId` | string | `UC...` YouTube channel identifier |
| `viewCount` | number | Exact or parsed numeric view count |
| `durationSeconds` | number | Duration in seconds |
| `publishDate` | string | Exact ISO publish date (`YYYY-MM-DD`) when details enabled |
| `description` | string | Full video description or search snippet |
| `keywords` | array | Video tag list |
| `category` | string | YouTube content category |
| `hasCaptions` | boolean | Whether closed captions / transcripts are available |
| `captionLanguages` | array | ISO codes of available caption tracks |

### How much does it cost to scrape YouTube videos & channels?

Simple flat **Pay-Per-Event (PPE)** pricing with **platform usage included** and no upload-date surcharges:

| Apify Plan Tier | Price per 1,000 videos | Actor start |
| --- | ---: | ---: |
| Free | $2.50 | $0.00005 |
| Bronze | $2.20 | $0.00005 |
| Silver | $1.90 | $0.00005 |
| Gold+ | $1.60 | $0.00005 |

Scraping 1,000 YouTube videos costs **$2.50** on Free (or **$1.60** on Gold+). Your $5 monthly Free tier credit covers up to **2,000 videos per month**.

### API, n8n, Make & AI Agent (MCP) integration

#### JavaScript / TypeScript (`apify-client`)

```typescript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('leopoldsaint/youtube-video-channel-scraper').call({
    searchQueries: ['ai agents workflow'],
    startUrls: ['@mkbhd'],
    uploadDate: 'month',
    maxTotalVideos: 25,
    includeVideoDetails: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("leopoldsaint/youtube-video-channel-scraper").call(run_input={
    "searchQueries": ["ai agents workflow"],
    "uploadDate": "month",
    "maxTotalVideos": 25,
    "includeVideoDetails": True,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items), items[0]["title"])
```

#### n8n, Make & Zapier (1-request HTTP API)

Use an **HTTP Request** node (`POST`) to run synchronously and get JSON items back directly:

```text
POST https://api.apify.com/v2/acts/leopoldsaint~youtube-video-channel-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
Content-Type: application/json
```

#### AI Agents & MCP Server (Claude, Cursor, OpenAI)

Connect Apify's hosted MCP server (`https://mcp.apify.com`) and enable `leopoldsaint/youtube-video-channel-scraper` so your AI agent can search YouTube channels, Shorts, and recent uploads on demand.

### Tips and advanced options

- Set `includeVideoDetails: false` for ultra-fast search/channel scans when you only need title, URL, thumbnail, and approximate views.
- Pair with [YouTube Transcript & Subtitles Scraper](https://apify.com/leopoldsaint/youtube-transcript-scraper), [YouTube Comments & Replies Scraper](https://apify.com/leopoldsaint/youtube-comments-scraper), and [YouTube Channel Email Scraper](https://apify.com/leopoldsaint/youtube-channel-email-scraper).

### FAQ, disclaimers, and support

- **Are upload-date filters free?** Yes—unlike competing scrapers that charge add-on events for date filters, all filters are included in the flat per-video price.
- **Legality & compliance:** Scrape only publicly accessible YouTube metadata and respect applicable laws and terms of service.
- **Questions or feature requests?** Open a ticket in the **Issues** tab.

# Actor input Schema

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

YouTube search keywords to scrape matching videos for.

## `startUrls` (type: `array`):

Direct YouTube channel URLs (e.g. https://www.youtube.com/@mkbhd), @handles, playlist URLs, or video URLs/IDs.

## `channelTab` (type: `string`):

Which channel tab to scrape when a channel URL or @handle has no tab suffix.

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

Filter search queries by upload recency.

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

How YouTube search results are sorted.

## `maxResultsPerSource` (type: `integer`):

Maximum videos collected per individual search query, channel, or playlist.

## `maxTotalVideos` (type: `integer`):

Global maximum number of videos output across the run.

## `includeVideoDetails` (type: `boolean`):

Fetches full player metadata per video for exact view counts, full description, tags, category, and available caption languages (included at no extra cost).

## `minViews` (type: `integer`):

Optional minimum view count threshold (0 = no filter).

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

2-letter ISO country code for YouTube search localization (e.g. US, GB, DE, IN).

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

Interface language code (e.g. en, es, fr, de).

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy fallback if direct cloud detail requests are rate-limited.

## `demoMode` (type: `boolean`):

Return deterministic sample video records without making live network calls.

## Actor input object example

```json
{
  "searchQueries": [
    "ai agents workflow"
  ],
  "startUrls": [],
  "channelTab": "videos",
  "uploadDate": "any",
  "sortBy": "relevance",
  "maxResultsPerSource": 20,
  "maxTotalVideos": 25,
  "includeVideoDetails": true,
  "minViews": 0,
  "country": "US",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "demoMode": false
}
```

# Actor output Schema

## `videos` (type: `string`):

No description

## `summary` (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": [
        "ai agents workflow"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("leopoldsaint/youtube-video-channel-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": ["ai agents workflow"] }

# Run the Actor and wait for it to finish
run = client.actor("leopoldsaint/youtube-video-channel-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": [
    "ai agents workflow"
  ]
}' |
apify call leopoldsaint/youtube-video-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leopoldsaint/youtube-video-channel-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/uadR3YyYbBsRKuXvr/builds/tnVHanaeBeJ14HT51/openapi.json
