# YouTube Metadata Scraper | $0.80/1K (`architekture/youtube-metadata-scraper`) Actor

YouTube video metadata from channels, search, playlists or video URLs: title, exact publish time, duration, views, likes, comment count, description, tags and thumbnails. Only-new-videos mode for schedules. Free 10-video preview, then pay per result. No login.

- **URL**: https://apify.com/architekture/youtube-metadata-scraper.md
- **Developed by:** [architek.earth](https://apify.com/architekture) (community)
- **Categories:** Videos, Agents, MCP servers
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.64 / 1,000 delivered 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 Metadata Scraper | $0.80/1K

### What's new, 2026-11-16

Bounded examples, explicit costs and integration recipes. Launch price until **2026-12-31**, then **$2.50 per 1,000 videos**.

**Recorded run:** `g4oRa1C7Utg74DC3y` on 2026-11-16 returned 5 dataset rows; 5 primary events were charged. Status: `SUCCEEDED`. Dataset rows can include free status records.

Architekture, an independent data studio. architek.earth.

YouTube Metadata returns channel videos, search results, playlists, likes and publication times. Use the daily example to collect repeatable snapshots; use incremental mode only where the input exposes it.

### Tested this week

| Check | Our recorded sample | Field context, 2026-11-16 |
|---|---|---|
| Evidence window | 2026-11-16; within the last seven days | Rolling 30-day public counters across 150 title-bucket members |
| Outcome | SUCCEEDED; 5 dataset rows; 5 charged primary events | 2.25% non-success over 3,071,781 runs |
| Cost | $0.002169 platform cost in the retained run | Not a competitor execution or a matched-input benchmark |

Field source: [public Store API](https://api.apify.com/v2/store?search=youtube%20scraper). Non-success includes failures, aborts and timeouts. The field total is not a unique-user count. These different workloads do not establish that our actor is more reliable.

### What, data and cost

One primary `video` event costs **$0.0008**; 1,000 cost **$0.80**. Ten primary events cost **$0.008**. Optional events below are additional; status rows are free.

**$5 free credit ≈ 6,250 videos** at the primary launch rate. This estimate excludes optional event charges and additional collection starts. Credit pays for billed work; it is separate from the free preview.

Set `preview: true`. One bounded preview returns up to 10 data rows when the source has results. Preview rows are not charged. A preview never silently switches to paid collection.

#### Event prices

| Event | USD per event | When charged |
|---|---:|---|
| `video` | 0.0008 | Delivered primary result |

Free and Bronze use the full primary rate; Silver receives 10% off, and Gold, Platinum and Diamond receive 20% off. Secondary event prices do not change. Your run's effective price is shown before collection.

Launch price until **2026-12-31**, then **$2.50 per 1,000 videos**.

### Worth knowing up front

- No comment text and no transcripts. For transcripts use [YouTube Transcript Scraper](https://apify.com/architekture/youtube-transcript-scraper).
- `likeCount` is null when the uploader hides likes. `commentCount` is the figure YouTube shows under the video: exact below 1,000 (`commentCountIsExact: true`), rounded above it (`"12K"` becomes 12000 with `commentCountIsExact: false`), and null with `commentsDisabled: true` when comments are off. `tags` is empty when the uploader set none.
- `isShort` is true for videos listed as Shorts and for Shorts-eligible videos of 3 minutes or less. The Shorts tab returns the Shorts YouTube lists on that tab; YouTube offered no further page for it in our tests.
- A run that hits the run timeout stops cleanly as `PARTIAL`; with a `watchId`, the next run continues where it stopped. Search ends when YouTube stops offering more results, usually a few hundred per query.
- Invalid input, an unknown channel or playlist, a missing channel tab, a search with no results, a video YouTube will not show, a video refused after retries, and runs stopped by the timeout, your spending limit or the preview limit each write a free status row (`"recordType": "status"`) that says what happened.

### Input recipes

#### 1. Preview: YouTube video metadata

[Open the configured example task](https://apify.com/architekture/youtube-metadata-scraper/examples/youtube-metadata-video-details-three)

```json
{
  "operation": "video-details",
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxResults": 1,
  "preview": true
}
```

#### 2. One-off: Video likes and publish time

[Open the configured example task](https://apify.com/architekture/youtube-metadata-scraper/examples/m058-youtube-metadata-2)

```json
{
  "operation": "video-details",
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxResults": 1
}
```

#### 3. Daily: YouTube channel uploads

[Open the configured example task](https://apify.com/architekture/youtube-metadata-scraper/examples/m058-youtube-metadata-3)

```json
{
  "operation": "channel-videos",
  "videos": [],
  "maxResults": 1,
  "channels": [
    "https://www.youtube.com/@YouTube"
  ],
  "incrementalMode": true,
  "watchId": "youtube-channel-uploads"
}
```

#### 4. One-off: New coffee videos

[Open the configured example task](https://apify.com/architekture/youtube-metadata-scraper/examples/m058-youtube-metadata-4)

```json
{
  "operation": "search",
  "videos": [],
  "maxResults": 1,
  "searchQueries": [
    "coffee"
  ],
  "searchSort": "date"
}
```

### Recurring collection

Copy the example [One-off: Video likes and publish time](https://apify.com/architekture/youtube-metadata-scraper/examples/m058-youtube-metadata-2) into your account. Schedule it in UTC with:

```cron
0 9 * * *
```

The worked ten-result run above repeated daily costs about **$0.24 per 30 days** before optional events and discounts. These tiny recipes demonstrate the input; increase their row limits deliberately. Keep one watch identifier per consistent filter set where incremental mode is available.

The input form now uses `watchId`. Legacy API names `stateKey` remain accepted and retain the same saved state. If both are supplied, the new name takes precedence. These fields contain ordinary identifiers or search terms, not credentials.

### Output and limits

Read the [live input and output definitions](https://api.apify.com/v2/acts/architekture~youtube-metadata-scraper/builds/default). Keep source identifiers, capture time and any status fields when joining snapshots. The data fields remain additive; this listing change does not promise new source data.

### MCP config for Claude and Cursor

Claude: add a custom connector with URL `https://mcp.apify.com?tools=architekture/youtube-metadata-scraper` and complete its sign-in. For Cursor, add this entry to your MCP settings and set your own `APIFY_TOKEN`:

```json
{
  "mcpServers": {
    "youtube-metadata-scraper": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=architekture/youtube-metadata-scraper",
      "headers": {
        "Authorization": "Bearer ${env:APIFY_TOKEN}"
      }
    }
  }
}
```

### n8n and Make

[Python example](https://github.com/architek-earth/examples/blob/main/youtube-metadata-scraper/example.py) and [n8n workflow](https://github.com/architek-earth/examples/blob/main/youtube-metadata-scraper/n8n-workflow.json). In n8n, select a Header Auth credential with header `Authorization` and your bearer token. The workflow is inactive until you choose to run or schedule it.

In Make, add an HTTP request: `POST https://api.apify.com/v2/acts/architekture~youtube-metadata-scraper/run-sync-get-dataset-items?timeout=120&memory=2048&maxTotalChargeUsd=0.05`. Set `Content-Type: application/json`, configure your bearer-token credential, and paste one recipe as the JSON body. Parse the returned array and route status rows separately. Add a scheduler only after inspecting the first result. Do not automatically retry an ambiguous POST; first check whether a run was created.

### FAQ

The linked public field issues are context for these checks, not claims that the same defects exist in this actor. Grocery examples also use adjacent supermarket issues; tennis uses the adjacent tennis-data field.

#### Why can a green run contain no usable rows?

A completed run can still report an empty or blocked source. Read the status rows and run summary before treating it as a successful observation; a missing result is not a measured zero. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/TwhAazdbbu8eQ78f5).

#### Why did I receive fewer rows than the limit?

The limit is a ceiling, not a guaranteed count. The source may have fewer public matches, filters may remove records, or the run may stop at a time or spending cap. Start with `maxResults`. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/2yIIuGGDEZW6rP3dS).

#### Can this export the whole source?

The five examples are deliberately bounded. A title or catalogue estimate does not prove full coverage. Use only the collection and continuation modes documented in the input, and retain any partial-run status.

#### Which direct identifiers or URLs are accepted?

The input exposes `channels`, `videos`, `playlists`. Use their documented formats; a source URL is not automatically a valid value for a keyword field. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/N1kc7tkJ69yqxJweG).

#### Why is an output field absent?

The source must publish a value for the actor to return it. Do not infer a missing price, salary, rating, ID or language. Check the output definition and preserve null or absent values in downstream storage. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/cIH2kLHKXxRWOsXqm).

#### How do I avoid counting a repeated snapshot twice?

Use `incrementalMode: true` with the same `watchId` for the same filters. Keep the watch stable; changing the identifier establishes a different history. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/32Hxyde6033eMQMYd).

#### What should I check after a source or proxy error?

Inspect the run message and the smallest configured example. Do not substitute login cookies or unrelated proxy credentials. A source wall is a coverage limit; preserve partial output and avoid treating failed checks as changes. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/e6A7z6q83qMQTclco).

#### How do I bound the bill?

Set a run charge cap, for example `$0.05` for these tiny inputs, and keep row limits small. Ten primary results cost $0.008 at the listed rate. Optional events and repeated checks add cost. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/awduWh3b26ujdRIRO).

#### Does the preview switch to paid collection?

Set `preview: true`. One bounded preview returns up to 10 data rows when the source has results. Preview rows are not charged. A preview never silently switches to paid collection. [Observed field issue](https://apify.com/apidojo/youtube-scraper/issues/P4IlNG14Pwyh1V4og).

#### What evidence helps diagnose a changed result?

Provide the run ID, intended country/store/date or filter, and one expected public source URL. Include the status message and missing field name. Never post credentials. The feedback input records a note and does not change output. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/KgDKtQsOSjOVMX1ur).

#### Does this metadata actor return captions or transcripts?

No. This product returns video and channel metadata. Caption text is a different product and is not included in the per-video event. [Observed field issue](https://apify.com/streamers/youtube-scraper/issues/H4O8DDLmRShpb5TSY).

### For AI agents

Call `architekture/youtube-metadata-scraper` with a bounded recipe and an explicit spending cap. Read the input schema first, request only supported fields, and inspect status rows before summarizing results. Preserve source IDs and capture times. Never interpret absent source data as a confirmed change. Use the same `watchId` for repeat observations only when this actor exposes incremental mode.

**Run health, reviewed 2026-11-16:** last retained run `g4oRa1C7Utg74DC3y`, SUCCEEDED, 5 dataset rows, observed 2026-11-16. No new run was started for this listing release.

### More from architek.earth

- [google trends scraper](https://apify.com/architekture/google-trends-scraper)
- [google hotels scraper](https://apify.com/architekture/google-hotels-scraper)
- [threads replies scraper](https://apify.com/architekture/threads-replies-scraper)

### Support and legal

Use this actor's [issue tab](https://apify.com/architekture/youtube-metadata-scraper/issues) for product questions. Public-source access does not remove your responsibility for permitted use, copyright and privacy. This is an independent product, not an official source API. architek.earth.

### Changelog

- **2026-11-16**: Bounded example tasks, dated health comparison, explicit worked costs, MCP and automation examples, and compatible input-name changes where applicable. Launch price until **2026-12-31**, then **$2.50 per 1,000 videos**.

#### Earlier releases

- **2026-11-16** : First release: channel uploads, video details, search and playlists with exact publish time, likes, comment count, tags and an only-new-videos mode.

# Actor input Schema

## `operation` (type: `string`):

channel-videos: a channel's uploads, newest first. video-details: the videos you list. search: videos for search terms. playlist: a playlist's videos in order.

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

@handle, channel URL or channel ID (UC...). Up to 100 per run.

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

Which channel tabs to read. Each tab counts as its own target for maxResults.

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

Video URLs (watch, youtu.be, shorts, live) or 11-character IDs. Up to 5,000 per run.

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

One YouTube search per line. Up to 100 per run.

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

YouTube's own result order.

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

YouTube's upload-date filter.

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

Playlist URLs (with list=...) or playlist IDs. Up to 100 per run.

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

Per channel tab, search term or playlist (video-details: across the list). Preview caps the run at 10.

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

Only videos published on or after this date (UTC). Channel tabs stop reading once they pass it.

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

Only videos published on or before this date (UTC).

## `preview` (type: `boolean`):

On: up to 10 videos, free, nothing is charged. The form starts on preview; API calls without this field run paid. See the listing pricing table for the current primary and optional event rates.

## `incrementalMode` (type: `boolean`):

Needs a watchId. Videos delivered by earlier runs with the same watchId are skipped and not charged.

## `feedback` (type: `string`):

Optional note for the maintainers. Logged and read by a human; never changes output.

## `watchId` (type: `string`):

Any name for this collection (e.g. nasa-uploads). Remembers seen videos for incremental mode and lets a stopped run continue without re-charging.

## Actor input object example

```json
{
  "operation": "channel-videos",
  "channels": [
    "@NASA"
  ],
  "channelTabs": [
    "videos"
  ],
  "searchSort": "relevance",
  "searchUploadDate": "any",
  "maxResults": 10,
  "preview": true,
  "incrementalMode": false,
  "feedback": "",
  "watchId": ""
}
```

# Actor output Schema

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

One row per delivered video, plus free status rows.

## `summary` (type: `string`):

RUN_SUMMARY record: status and counts.

# 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 = {
    "operation": "channel-videos",
    "channels": [
        "@NASA"
    ],
    "maxResults": 10,
    "preview": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("architekture/youtube-metadata-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 = {
    "operation": "channel-videos",
    "channels": ["@NASA"],
    "maxResults": 10,
    "preview": True,
}

# Run the Actor and wait for it to finish
run = client.actor("architekture/youtube-metadata-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 '{
  "operation": "channel-videos",
  "channels": [
    "@NASA"
  ],
  "maxResults": 10,
  "preview": true
}' |
apify call architekture/youtube-metadata-scraper --silent --output-dataset

```

## MCP server setup

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