# YouTube Scraper - Videos, Channels, Search, Shorts ($1/1K) (`coiled_magistrate/youtube-scraper-fast`) Actor

Scrape YouTube videos from channels, playlists, search results and URLs: title, views, likes, publish date, duration, tags, description, category, comments & subscribers. $1 per 1,000 videos, pay only for results.

- **URL**: https://apify.com/coiled\_magistrate/youtube-scraper-fast.md
- **Developed by:** [TrendsData](https://apify.com/coiled_magistrate) (community)
- **Categories:** Videos, Social media, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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 - Videos, Channels, Search Results & Shorts

Scrape **YouTube videos** from **search results, channels, playlists, Shorts** and video URLs. Get title, views, likes, publish date, duration, tags, category, full description, thumbnail - and optionally **comment count and channel subscribers**.

**$1 per 1,000 videos.** No start fee, no subscription. Private, deleted or unavailable videos are **never charged**.

### Why this scraper

- **4x cheaper** than typical YouTube scrapers - $0.001 per video with full details
- **Fast** - uses YouTube's own data API, no browser (a few KB per video)
- **All sources in one run** - search queries, channels (`@handle`, URL or ID), playlists, single videos
- **Search filters** - sort by relevance / views / rating, upload date (hour, today, week, month, year)
- **Channel tabs** - Videos, Shorts or Live streams, newest first
- **Date filter** - `publishedAfter` skips older videos (skipped videos are free)
- **Exact numbers** - views and likes as integers, ISO publish date, duration in seconds and `h:mm:ss`

### Use cases

- **Influencer & competitor research** - what a channel publishes and how it performs
- **Trend & content research** - top videos for a keyword this week
- **Marketing analytics** - track views and likes of campaign videos over time (schedule the Actor)
- **Datasets for AI** - titles, descriptions and tags at scale
- **Lead generation for agencies** - find active channels in a niche

### Input example

```json
{
  "searchQueries": ["iphone 17 review"],
  "searchSort": "views",
  "searchUploadDate": "week",
  "channels": ["@mkbhd"],
  "maxVideosPerSource": 50,
  "includeEngagement": true
}
```

### Output example

```json
{
  "videoId": "8jPQjjsBbIc",
  "url": "https://www.youtube.com/watch?v=8jPQjjsBbIc",
  "title": "How to stay calm when you know you'll be stressed | Daniel Levitin | TED",
  "channelName": "TED",
  "channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
  "channelHandleUrl": "https://www.youtube.com/@TED",
  "publishedAt": "2015-11-23T08:58:55-08:00",
  "durationSeconds": 740,
  "duration": "12:20",
  "viewCount": 19927105,
  "likeCount": 268175,
  "commentCount": 4000,
  "subscriberCount": 27800000,
  "category": "Science & Technology",
  "keywords": ["TED Talk", "TED Talks", "Neuroscience"],
  "thumbnail": "https://i.ytimg.com/vi/8jPQjjsBbIc/maxresdefault.jpg",
  "sourceType": "search",
  "source": "how to stay calm"
}
```

### Pricing

**$0.001 per scraped video** ($1 per 1,000), including the optional comment and subscriber counts. Unavailable videos and videos skipped by `publishedAfter` are not charged.

### FAQ

**Can I get transcripts too?** Use the [YouTube Transcript Scraper](https://apify.com/coiled_magistrate/youtube-transcript-fast) from the same author - same inputs, $2 per 1,000 transcripts.

**How many videos per channel?** Up to 5,000 per channel from the Videos tab (newest first).

**Are comment and subscriber counts exact?** They are YouTube's rounded public numbers (e.g. 27.8M -> 27,800,000). Views and likes are exact.

### More tools from this author

- [YouTube Transcript Scraper - subtitles for videos, channels, playlists](https://apify.com/coiled_magistrate/youtube-transcript-fast)
- [YouTube Shorts Scraper - search, hashtags, channels](https://apify.com/coiled_magistrate/youtube-shorts-fast)
- [YouTube Channel Scraper - subscribers, stats, links, latest videos](https://apify.com/coiled_magistrate/youtube-channel-fast)
- [Google Ads Transparency Scraper - every ad your competitors run](https://apify.com/coiled_magistrate/google-ads-transparency-fast)
- [Google Trends Scraper - interest over time, by region, related queries](https://apify.com/coiled_magistrate/google-trends-reliable)
- [Google Trends Trending Now - real-time trending searches for any country](https://apify.com/coiled_magistrate/google-trending-now)
- [Keyword Suggestions - Google, YouTube, Amazon autocomplete](https://apify.com/coiled_magistrate/keyword-suggestions)
- [Tech Stack Detector - Wappalyzer & BuiltWith alternative](https://apify.com/coiled_magistrate/tech-stack-detector)
- [Company Jobs Scraper - Workday, Greenhouse, Lever, Ashby & more](https://apify.com/coiled_magistrate/company-jobs-scraper)

# Actor input Schema

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

Search YouTube and scrape the video results for each query.

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

Channel URLs, @handles or channel IDs (UC...). The newest videos are scraped.

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

Which channel tab to scrape.

## `playlists` (type: `array`):

Playlist URLs or IDs.

## `videos` (type: `array`):

Individual video, Shorts or live URLs or 11-character video IDs.

## `maxVideosPerSource` (type: `integer`):

How many videos to scrape from each search query, channel or playlist.

## `searchSort` (type: `string`):

Order of search results.

## `searchUploadDate` (type: `string`):

Only videos uploaded in this period (search queries only).

## `publishedAfter` (type: `string`):

Skip videos published before this date (works for all sources). Skipped videos are not charged.

## `includeEngagement` (type: `boolean`):

Adds commentCount and channel subscriberCount to every video (one extra request per video, same price).

## `maxConcurrency` (type: `integer`):

How many videos are processed in parallel.

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

Used automatically only when YouTube blocks a request. Starts with Apify datacenter proxy and escalates to residential proxy only if needed.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 17 review"
  ],
  "channels": [],
  "channelContent": "videos",
  "playlists": [],
  "videos": [],
  "maxVideosPerSource": 20,
  "searchSort": "relevance",
  "searchUploadDate": "any",
  "includeEngagement": false,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped videos.

## `overview` (type: `string`):

Compact table view.

# 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": [
        "iphone 17 review"
    ],
    "channels": [],
    "playlists": [],
    "videos": [],
    "publishedAfter": "",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("coiled_magistrate/youtube-scraper-fast").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": ["iphone 17 review"],
    "channels": [],
    "playlists": [],
    "videos": [],
    "publishedAfter": "",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("coiled_magistrate/youtube-scraper-fast").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": [
    "iphone 17 review"
  ],
  "channels": [],
  "playlists": [],
  "videos": [],
  "publishedAfter": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call coiled_magistrate/youtube-scraper-fast --silent --output-dataset

```

## MCP server setup

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

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/MGoOsg2SEiebevN0B/builds/0Ac0KIAlVfLsdXMDO/openapi.json
