# YouTube Scraper: Videos, Channels & Subscribers (`paul_studio/youtube-scraper`) Actor

Scrape YouTube videos from channels, playlists, hashtags and searches: views, likes, subscribers, tags, chapters, optional transcripts. One clear price per video, no add-ons, free date-range and view filters.

- **URL**: https://apify.com/paul_studio/youtube-scraper.md
- **Developed by:** [Paul Yu](https://apify.com/paul_studio) (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 $2.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.
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 Scraper do?

It collects YouTube video data in bulk: views, likes, publish date, length, tags, hashtags, chapters, and the channel with its subscriber count. Paste any mix of channels, playlists, hashtags, search terms and video links. Transcripts are an option, not a separate tool.

- **Charged once per video, no add-ons.** Date ranges, view and length filters are free, and videos skipped by a filter are not charged. Transcripts are optional: videos that have one are charged at the Video with transcript rate, all others at the Video rate.
- **Paste anything.** Video and Shorts links in any format, `@handles`, channel and playlist links, `#hashtags`, or plain search words, all in one list.
- **Channel numbers included.** Saved videos carry the channel's subscriber count (looked up once per channel), when YouTube shows it.
- **Spot what is working.** Each video gets views per day and likes per 100 views; the results page marks breakout videos (views compared with the same channel's median) and has a channel table you can sort.
- **Free date range.** *Published after* and *Published before* together give an exact window, for channels, playlists, hashtags and searches.
- **Follow channels on a schedule.** *Only new videos* returns, and charges for, only uploads you have not received before.
- **Every input accounted for.** A private or removed video, or a channel that does not exist, gets a row with the reason in plain words, not charged.

**Price:** $0.003 per video on the Free plan ($0.002 on Gold), or $0.005 for a video with its transcript ($0.0035 on Gold). $1 ≈ 333 videos on the Free plan, up to 500 on Gold. Each run also has a start fee of $0.001 ($0.0007 on Gold), so a scheduled run that finds nothing new costs a tenth of a cent. To cap spending, set Maximum cost per run in Run options; the run never goes over it. The cost limit always uses your own plan's price. When the limit cannot cover a video with its transcript, the video is saved at the plain video price instead.

![Results page: sort by views or likes, filter by channel, download CSV](https://raw.githubusercontent.com/daupaul/apify-actor-assets/main/youtube-scraper/hero.png)

### What you get for each video

| Video | Channel | Optional |
|---|---|---|
| Title, link, thumbnail | Name, link, ID | Transcript in paragraphs |
| Views, likes, category | Subscribers | Readable transcript with timestamp links |
| Published date, length (and in seconds) | | Timed segments, chunks for AI tools |
| Tags, hashtags, chapters | | SRT and WebVTT subtitles |
| Short or live, caption languages | | |
| Views per day, likes per 100 views | | |
| Description | | |

After each run, the **Results page** in the Output tab shows:

- a summary: videos, channels, total and median views;
- the videos as cards, sortable by views, likes, date, length or **breakout** (a video with 3× its channel's median views is tagged "3× channel median"; this needs 3 or more videos from the channel in the results);
- a **Channels** view: subscribers, videos in the results, median views, likes per 100 views and latest upload for each channel;
- search over titles and channels (and transcripts, when included), and CSV downloads of either view.

### How to use it

1. Paste channels, playlists, hashtags, search terms or video links into the first field, one per line.
2. Set **Videos per channel, playlist, hashtag or search**. Channels are read newest first.
3. Optionally set a date range, minimum views or length under **Filters**.
4. Click **Start**. Ten videos from two sources usually take about a minute.

To follow channels or a topic, turn on **Only new videos**, give the monitor a name and add a [schedule](https://docs.apify.com/platform/schedules). Each run looks at the newest videos (as many as you set) and returns only those you have not received.

### Input example

```json
{
  "sources": ["@veritasium", "#sourdough", "home espresso machine review"],
  "maxVideos": 20,
  "publishedAfter": "2026-10-01",
  "publishedBefore": "2026-11-01",
  "minViews": 10000,
  "includeTranscript": false
}
```

### Output example

```json
{
  "videoId": "aircAruvnKk",
  "title": "But what is a neural network? | Deep learning chapter 1",
  "url": "https://www.youtube.com/watch?v=aircAruvnKk",
  "publishedAt": "2017-10-05",
  "duration": "18:40",
  "durationSeconds": 1120,
  "views": 25315355,
  "likes": 570948,
  "category": "Education",
  "keywords": [],
  "hashtags": [],
  "isShort": false,
  "viewsPerDay": 7600,
  "engagementRate": 2.26,
  "channel": "3Blue1Brown",
  "channelUrl": "https://www.youtube.com/@3blue1brown",
  "channelSubscribers": 8760000,
  "chapters": [{ "start": 0, "time": "0:00", "title": "Introduction example" }],
  "captionLanguages": ["ar", "bn", "cs", "de", "en", "es", "fr", "ja", "ko", "zh-CN", "zh-TW", "..."],
  "status": "ok",
  "statusMessage": "Video saved."
}
```

### Use cases

- **Market and competitor research:** what a set of channels published this month, and how each video performed.
- **Influencer and creator discovery:** search a topic or hashtag, then sort by views and subscribers.
- **Content planning and SEO:** the tags, hashtags, titles and chapters that work in a niche.
- **AI and research:** add transcripts to get the spoken text of every video, with timestamps.

### FAQ

#### How is this different from other YouTube scrapers?

One charge per video with no add-ons, free date ranges and filters, hashtags and searches in the same list as channels, subscriber counts on every row, and transcripts from YouTube's own captions instead of paid AI transcription. If you only need transcripts, [YouTube Transcript Scraper](https://apify.com/paul_studio/youtube-transcript-scraper) is cheaper per transcript.

#### Can I search in other languages or countries?

Search words can be in any language. **Search results language** sets the interface language YouTube uses when it ranks searches and hashtags (for example Japanese), which tends to surface videos in that language. It does not restrict the spoken language or the country of the videos. Titles and descriptions always come back in their original language.

#### What do views per day and likes per 100 views mean?

`viewsPerDay` is the lifetime average: views divided by days since publishing (at least one day, so a video published this morning shows its views so far). `engagementRate` is likes divided by views, times 100. Both are empty when YouTube hides the number.

#### How exact are the numbers?

Views and likes are YouTube's exact counts at the moment of the run. Subscriber counts are rounded the way YouTube shows them (8.76M becomes 8,760,000). Comment counts are not included yet.

#### What about transcripts?

They come from the captions the video already has (made by the creator, or by YouTube automatically), in the video's own language or one you choose. Videos without captions are saved at the normal video price with `transcriptStatus: "no_captions"`. Nothing is transcribed by AI, so there are no per-minute charges.

#### What happens when YouTube blocks a request?

A blocked video is tried again up to eight times from new IP addresses and alternating YouTube's Android and iOS apps, then once more at the end of its source. If datacenter IPs keep getting blocked, the run switches to residential IPs when your Apify plan includes them. A video that still cannot be read is listed as `blocked` and not charged.

#### Is it legal to scrape YouTube?

The Actor reads information YouTube shows publicly to any viewer, without signing in, and does not download videos. How you use the data is up to you: respect copyright, privacy and YouTube's terms.

### Use it from AI assistants and code

Works as a tool in Claude, ChatGPT, Cursor and other assistants through the [Apify MCP server](https://mcp.apify.com/). Add `https://mcp.apify.com?tools=paul_studio/youtube-scraper` to your MCP client and ask, for example: "List the 20 most viewed videos about home espresso from the last 30 days."

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("paul_studio/youtube-scraper").call(run_input={
    "sources": ["@veritasium"], "maxVideos": 10, "publishedAfter": "30 days",
})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["title"], video.get("views"), video.get("channelSubscribers"))   # rows for unreadable videos have no numbers
```

### Pricing

You pay per video saved. A video saved with a transcript is one "Video with transcript" event instead of a "Video" event. Videos skipped by filters, duplicates, unreadable videos and blocked requests are free. Proxies are included. Set a maximum cost per run in the run options and the Actor never goes over it.

### Feedback

Something missing or wrong? Open an issue on the **Issues** tab with the input you used.

# Actor input Schema

## `sources` (type: `array`):

One per line: a video or Shorts link, a channel (@handle or link), a playlist link, a #hashtag, or words to search for. End a line with | 50 to take 50 videos from that source.

## `maxVideos` (type: `integer`):

Newest first for channels. Single video links are always included. A "| number" at the end of a line overrides this.

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

A date, or a period such as 30 days.

## `publishedBefore` (type: `string`):

Together with "Published after", a date range.

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

e.g. 10000.

## `minMinutes` (type: `integer`):

e.g. 2 to skip Shorts and short clips.

## `maxMinutes` (type: `integer`):

e.g. 90 to skip full-length streams.

## `channelTabs` (type: `array`):

Newest of each tab in turn, sharing the limit. A link to a tab (…/@name/shorts) reads only that tab.

## `searchLanguage` (type: `string`):

For searches and hashtags: the language YouTube ranks results for, e.g. Japanese to find Japanese videos. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).

## `searchOrder` (type: `string`):

Newest first is useful for keeping track of a topic.

## `includeTranscript` (type: `boolean`):

Adds the transcript of each video that has captions. Such videos are charged as "Video with transcript" instead of "Video" (see Pricing); videos without captions stay at the video price.

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

Original language needs no setup. Pick a language to get captions in it where they exist. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).

## `fallbackToOriginal` (type: `boolean`):

Off: such videos are saved without a transcript, at the video price.

## `creatorCaptionsOnly` (type: `boolean`):

Skip auto-generated captions. More accurate, but many videos have none.

## `outputs` (type: `array`):

The plain transcript is always included. Add the formats you need.

## `chunkWords` (type: `integer`):

For chunks for AI tools.

## `onlyNewVideos` (type: `boolean`):

Each run checks the newest videos (the number above) and returns and charges only those this monitor has not delivered.

## `monitorName` (type: `string`):

Give each schedule its own name, e.g. "competitor-channels". Use a new name to start over. Runs with the same name share one history, also across Tasks.

## Actor input object example

```json
{
  "sources": [
    "@veritasium",
    "home espresso machine review"
  ],
  "maxVideos": 10,
  "channelTabs": [
    "videos"
  ],
  "searchLanguage": "any",
  "searchOrder": "relevance",
  "includeTranscript": false,
  "language": "original",
  "fallbackToOriginal": true,
  "creatorCaptionsOnly": false,
  "outputs": [
    "readable"
  ],
  "chunkWords": 300,
  "onlyNewVideos": false,
  "monitorName": "default"
}
```

# Actor output Schema

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

No description

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

No description

## `report` (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 = {
    "sources": [
        "@veritasium",
        "home espresso machine review"
    ],
    "maxVideos": 10,
    "channelTabs": [
        "videos"
    ],
    "searchLanguage": "any",
    "searchOrder": "relevance",
    "language": "original",
    "outputs": [
        "readable"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("paul_studio/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 = {
    "sources": [
        "@veritasium",
        "home espresso machine review",
    ],
    "maxVideos": 10,
    "channelTabs": ["videos"],
    "searchLanguage": "any",
    "searchOrder": "relevance",
    "language": "original",
    "outputs": ["readable"],
}

# Run the Actor and wait for it to finish
run = client.actor("paul_studio/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 '{
  "sources": [
    "@veritasium",
    "home espresso machine review"
  ],
  "maxVideos": 10,
  "channelTabs": [
    "videos"
  ],
  "searchLanguage": "any",
  "searchOrder": "relevance",
  "language": "original",
  "outputs": [
    "readable"
  ]
}' |
apify call paul_studio/youtube-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,paul_studio/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/wZqJeDwRl7D3DjjgA/builds/IgNH3fSzetZXtp90l/openapi.json
