# YouTube Scraper: Videos, Channels, Comments $0.39/1K (`vant47/youtube-scraper-cheap`) Actor

Scrape YouTube search, channels, videos, Shorts, comments and transcripts: views, likes, subscribers, dates and descriptions. Videos cost $0.39 per 1,000; 20 videos cost about $0.015 including $0.0074 setup and $0.00005 start fees. Export JSON or CSV. No login.

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

## Pricing

from $0.31 / 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

## YouTube Scraper: Videos, Channels, Comments $0.39/1K

For analysts, research teams and developers collecting public YouTube videos for a repeatable data workflow. Search a topic, collect a channel's uploads, follow a playlist, or monitor a list of videos. Each video comes with its title, description, channel identity, subscribers, views, likes, public comment count, date and duration when YouTube exposes them. Add public comments or timestamped captions when your project needs the text behind a video.

**$0.39 per 1,000 videos**, $0.10 per 1,000 comments and $0.20 per 1,000 caption transcripts. Each successful run adds a $0.0074 setup fee, collected only after its first video is saved, plus Apify's $0.00005 start fee. The default 20-video example costs about $0.015 in total. Bronze gets 5% off, Silver 10%, and Gold or higher 20%, excluding the platform start fee. Set Maximum cost per run before starting. Empty searches, unavailable data and duplicates have no result or setup charge. No YouTube login or API key.

| Job at list prices | Total including setup/start |
|---|---:|
| 20 videos | $0.015 |
| 1,000 videos | $0.4 |
| 3 videos and 1,200 comments | $0.13 |
| One video and its caption transcript | $0.008 |

### What you get

One `VIDEO` row represents one distinct public video in the run. The same video found through a search, a channel and a playlist is saved once and charged once. Optional `COMMENT` rows link to their parent using `videoId`. An optional `TRANSCRIPT` row contains the complete available caption track and its timestamped segments. Channel URL inputs also add a free `CHANNEL` row with the public feed identity, description, avatar and displayed counters. Free `NOTE` rows explain unavailable data. A free `SUMMARY` row and the `SUMMARY` record in key-value storage give the totals and input outcomes.

| Field | Meaning |
|---|---|
| `verdict` | A readable label identifying the delivered data or explaining a free note |
| `type` | `VIDEO`, `CHANNEL`, `COMMENT`, `TRANSCRIPT`, `NOTE` or `SUMMARY` |
| `rowKey` | Stable key within the run; use it to distinguish row types and deduplicate exports |
| `id`, `url` | Source identifier and the public YouTube link |
| `title`, `description` | Video title and rendered public description; line breaks and displayed link labels are retained |
| `channel` | Object containing the channel's `name`, `id` and `subscribers` |
| `channelName`, `channelId`, `subscribers` | Flat versions for spreadsheets and compatibility with the channel engagement Actor |
| `views`, `likes` | Public video counters; hidden values remain null |
| `comments`, `commentsCount` | Public comment count, which YouTube may round; both fields carry the same value |
| `publishedAt` | Source publication date, rather than a date guessed from relative age |
| `duration`, `lengthSeconds` | Duration in seconds; both fields carry the same value |
| `isShort` | Source classification when available; null means the source did not identify it |
| `tags` | Verified creator keywords from the page or optional public app metadata; generic site keywords are excluded |
| `thumbnail`, `imageUrl` | Thumbnail URL; both fields carry the same value |
| `scrapedAt` | UTC observation timestamp for the video |
| `input` | The query, channel, playlist or video that first discovered this result |

Comment rows include `text`, `author`, `authorChannelId`, `likes`, `replyCount` and `publishedTimeText`. A displayed age such as “2 weeks ago” is preserved as text instead of being turned into a falsely precise timestamp. Their `publishedAt` is null. Transcript rows include `language`, `text` and `segments`. Each segment has `start`, `end` and `text`, with times measured in seconds from the beginning of the video.

### Useful workflows

Build a topic inventory, monitor public video counters, collect a channel's uploads, search timestamped captions, or read top-level audience feedback. Keep `id`, the source link and observation timestamp beside every result.

### Start in three steps

1. Add one or more terms to `searchQueries`, or paste public links into `startUrls`.
2. Choose `maxResults`, the maximum number of distinct videos for the entire run. Leave optional text collection off unless you need it.
3. Start the Actor and open the Videos and counts dataset view. Export JSON, CSV or Excel, or read the dataset through the API.

The prefilled input searches for `space telescope` and collects up to 20 videos. The global cap makes a first run predictable. Searches share the cap with all other inputs, and remaining capacity is divided between the inputs still to be read. If a source has fewer videos, the run can finish below your cap. It never pads a result with unrelated videos to reach a requested total.

### Inputs

| Input | Example | Behavior |
|---|---|---|
| `searchQueries` | `["space telescope", "ocean science"]` | Public YouTube searches. Terms are trimmed and duplicate terms are removed. |
| `startUrls` | `[{"url":"https://www.youtube.com/@NASA"}]` | Public video, Shorts, channel or playlist links. String URLs are also accepted by the runtime. |
| `maxResults` | `20` | Global distinct-video cap, from 1 to 10,000. Defaults to 20. |
| `includeComments` | `false` | Collect top-level public comments for each video. Defaults to false. |
| `maxComments` | `20` | Per-video comment cap, from 0 to 10,000. Applies only with `includeComments`. |
| `includeDetails` | `false` | Retry omitted creator tags and exact duration through public app metadata, at the same video price. |
| `includeTranscript` | `false` | Save an available public caption track as one transcript row per video. |
| `sortBy` | `"relevance"` | Search order: `relevance`, `date`, `viewCount` or `rating`. |
| `dateFilter` | `"any"` | Search upload filter: `any`, `hour`, `today`, `week`, `month` or `year`. |
| `proxyConfiguration` | `{"useApifyProxy":true}` | Automatic datacenter route with bounded residential fallback; explicit choices are respected. |

Search aliases `queries`, `keywords` and `query` are accepted when `searchQueries` is absent. URL aliases `urls` and `channels` are accepted when `startUrls` is absent. Canonical fields take precedence if both are supplied. There are no alternative names for `maxResults`, so a smaller cap cannot silently lose to a platform-added default under a different field name. Use `maxResults` directly.

The search date filter and sort order are passed to YouTube's own search. They do not reorder a playlist, impose a date range on a direct video, or change a channel's source upload order. A query is a discovery request, so its results may change as YouTube changes its index. Use direct video links when you need a fixed monitoring list.

#### Search example

```json
{
  "searchQueries": ["space telescope", "ocean science"],
  "maxResults": 40,
  "sortBy": "date",
  "dateFilter": "month",
  "includeComments": false,
  "includeTranscript": false
}
```

#### Comments and captions example

```json
{
  "startUrls": [{"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"}],
  "maxResults": 1,
  "includeComments": true,
  "maxComments": 20,
  "includeTranscript": true
}
```

### Output example

Selected fields from a real cloud result collected on 17 November 2026:

```json
{
  "verdict": "Public video metadata",
  "type": "VIDEO",
  "id": "jNQXAC9IVRw",
  "title": "Me at the zoo",
  "channelId": "UC4QobU6STFB0P71PMvOGN5A",
  "views": 448725002,
  "likes": 20140348,
  "comments": 10000000,
  "publishedAt": "2005-04-23",
  "lengthSeconds": 19
}
```

A cloud stress run delivered 1,149 videos from 1,150 discovered IDs, with one free source-failure note. A separate three-video run delivered 1,200 comments. Real reboot tests preserved saved rows and their charges.

### Reading and exporting the results

Use the `type` field before counting results. A dataset containing 20 videos and one summary has 21 rows but only 20 billable video results. A comment is not another video. A transcript is charged once for the video, rather than once per line or segment. Notes and the summary are free. CSV is convenient for scalar counters; JSON retains nested channel objects, arrays of tags and timestamped transcript segments.

### Monitor videos on a schedule

Create a task from your chosen input and add a schedule in Apify. Keep the same video URL list when comparing counters between snapshots. Send dataset results to your database, Google Sheets, Make, Zapier or n8n through Apify integrations or a webhook. Configure the webhook to run only after a successful run, and inspect `SUMMARY.status` before treating a partial source response as a complete snapshot.

`SUMMARY.inputs` explains whether each source returned videos, produced no matches, or remained unavailable after retries. `SUMMARY.errors` records source problems during enrichment or optional text collection. A no-match query is a normal empty result. A temporary source failure is identified separately, so an empty export cannot silently be interpreted as a disappearance of all matching videos.

### Use from code

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("vant47/youtube-scraper-cheap").call(
    run_input={"searchQueries": ["space telescope"], "maxResults": 20}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row.get("type") == "VIDEO":
        print(row["id"], row["title"], row["views"], row["publishedAt"])
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('vant47/youtube-scraper-cheap').call({
  searchQueries: ['space telescope'],
  maxResults: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const videos = items.filter(row => row.type === 'VIDEO');
console.log(videos.map(row => ({ id: row.id, views: row.views })));
```

#### HTTP

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/vant47~youtube-scraper-cheap/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"searchQueries":["space telescope"],"maxResults":20}'
```

### Use with AI agents (MCP)

Connect an MCP client to `https://mcp.apify.com`. Ask for a concrete input and fields, for example: “Find 20 public videos about space telescopes, with channel names, views, likes and publication dates. Use a maximum of 20 videos and do not collect comments.” An agent can call this Actor with `searchQueries` and `maxResults`, then filter the returned dataset by `type`.

### Limits

- This is an independent tool and is not affiliated with YouTube or Google.
- Only public signed-out data is collected. Private, deleted, paid and account-restricted material is unavailable. No login, account cookies or CAPTCHA solving are used.
- Tags, duration, thumbnails, subscriber counts, captions and Short classification can be absent from a source response. Those fields remain null when they cannot be verified. Turn on `includeDetails` to retry missing metadata through public app clients. HTML duration can round up by one second; listing or player duration takes precedence when available.
- Channels return their public upload feed and a free channel metadata row, rather than a scored channel-analysis report. Public playlists can omit unavailable entries. Search only returns what YouTube chooses to list.
- Comments are top-level comments in the source order. Reply text is not collected. Displayed likes, reply counts, subscriber totals and comment totals can be rounded. Relative comment ages remain text.
- Captions require an available public caption track and a source route that serves it. The first English track is preferred, otherwise the first available track. There is no translation, account access or generated transcription.
- Automatic proxy selection begins with datacenter requests and permits a US residential retry for refused data. Explicit custom proxy URLs, a selected proxy group, country or proxy disable are respected and can affect coverage.
- A run accepts up to 200 distinct queries or URLs, with a free note if more are supplied. The result cap is 10,000 videos per run and 10,000 comments per video. Source exhaustion can produce fewer rows. A spending limit can stop the run before the requested quantity.

### FAQ

**What happens if a run restarts?** Saved rows are the durable delivery ledger. On restart, the Actor loads those rows and reconciles saved result charges before continuing. Completed rows are not appended or charged again. If billing state is ambiguous, it stops safely instead of guessing and charging twice.

**Will an empty search charge for videos?** No. Empty results and free notes have no video, comment or transcript charge. The successful-run setup fee is only attached to a saved first video. Apify's platform start fee still applies.

**Are transcripts billed per segment?** No. A saved transcript is one result for its parent video, regardless of the segment count. Unavailable captions do not receive a transcript charge.

Related searches: YouTube scraper, YouTube video scraper, YouTube channel scraper, YouTube comments scraper, YouTube search results, public video metadata, YouTube captions and timestamped transcripts.

# Actor input Schema

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

YouTube search terms. Videos are shared across inputs and deduplicated. Also accepted as queries, keywords or query when searchQueries is absent.

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

Public youtube.com or youtu.be videos, Shorts, playlists or channel URLs. Channel URLs collect their videos. No login. Also accepts urls or channels if startUrls is absent.

## `maxResults` (type: `integer`):

Global maximum distinct videos across all inputs. Repeated videos are delivered and charged once. Comments and transcripts have separate prices and do not count toward this video cap.

## `includeComments` (type: `boolean`):

Collect top-level public comments for each video. Comment charge applies only to saved comments. Replies are not collected.

## `maxComments` (type: `integer`):

Maximum top-level comments per video when includeComments is enabled.

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

Collect an available public transcript as one timestamped row per video. Unavailable captions produce a free note.

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

Native YouTube search ordering. Channel and playlist inputs keep their source order.

## `dateFilter` (type: `string`):

Native YouTube upload-date filter for searches. Does not filter direct video, channel or playlist inputs.

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

Automatic default uses datacenter first and a US residential retry only after failures. Explicit disabled proxy, group, country or custom proxy settings are preserved.

## `includeDetails` (type: `boolean`):

Read additional public app metadata for creator tags and exact duration where the public page omits them. Optional and slower; the video price stays the same. Caption collection uses this route automatically when necessary.

## Actor input object example

```json
{
  "searchQueries": [
    "space telescope"
  ],
  "maxResults": 20,
  "includeComments": false,
  "maxComments": 20,
  "includeTranscript": false,
  "sortBy": "relevance",
  "dateFilter": "any",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "includeDetails": false
}
```

# Actor output Schema

## `results` (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": [
        "space telescope"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("vant47/youtube-scraper-cheap").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": ["space telescope"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("vant47/youtube-scraper-cheap").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": [
    "space telescope"
  ],
  "maxResults": 20
}' |
apify call vant47/youtube-scraper-cheap --silent --output-dataset

```

## MCP server setup

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

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/qlwe4LvrY6rp9qyqd/builds/ne2bUgf2CFbvd3szU/openapi.json
