# YouTube Video Scraper: views, likes & metadata API (cheap) (`integrative_cafe_8pc/youtube-video-scraper`) Actor

Use this Actor when you need YouTube video data from URLs or IDs: views, likes, likes per 1,000 views, views per day, duration, publish date, category, tags, chapters, thumbnail and channel. Bulk lists, Shorts and lives; failed videos are free.

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

## Pricing

from $0.40 / 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 Video Scraper: views, likes & metadata API (cheap)

Use this Actor when you need YouTube video data from URLs or IDs: views, likes, likes per 1,000 views, views per day, duration, publish date, category, tags, chapters, thumbnail and channel. Paste a list of videos (watch links, youtu.be, Shorts, lives or bare IDs) and get one clean row per video, ready for a spreadsheet, a dashboard or an AI agent.

### What you get for each video

- **Performance:** `viewCount`, `likeCount`, plus two ready-made metrics: `likesPerThousandViews` (engagement) and `viewsPerDay` since publishing (momentum).
- **Metadata:** title, full description, category, tags (`keywords`), duration in seconds and as `HH:MM:SS`, publish and upload dates, thumbnail URL.
- **Chapters:** parsed from the description the same way YouTube does it (first stamp at 0:00, at least three, in order).
- **Channel:** channel name, channel ID and channel URL.
- **Flags:** Shorts eligible, live now, was a live stream, unlisted, family safe, ratings enabled.

### Why this one

- **It reads only the data, not the page.** One request per video to YouTube's own player API with a field mask: a few KB instead of the ~1 MB watch page. That is why the price per video is low and runs are fast.
- **Built to not fail.** A blocked request retries on a fresh proxy session with growing waits. Each video tries a datacenter IP first and moves to residential only when YouTube blocks it.
- **Failures are free.** A private, removed or age restricted video comes back with `error` and `charged: false`, and the run's final message tells you how many failed and that they were not charged.
- Test on 23/11/2026: 8 of 8 real videos (music videos, a Short, a tutorial with chapters, the first YouTube video) returned full data with 0 errors; an invalid ID and a removed video came back as uncharged error rows without stopping the run.

Need the spoken words instead? Use our [YouTube Transcript Scraper](https://apify.com/integrative_cafe_8pc/youtube-transcript-scraper).

### Input

| Field | Type | Description |
|---|---|---|
| `videos` | array of strings | YouTube video URLs or 11-character IDs. Watch, youtu.be, Shorts, embed and live links work. Duplicates are fetched once. |
| `maxConcurrency` | integer | How many videos to fetch at the same time (default 5). |
| `proxy` | object | Residential by default; datacenter is tried first per video. |

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw",
    "https://www.youtube.com/shorts/9bZkp7q19f0"
  ]
}
```

### Output example

```json
{
  "videoId": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "description": "The official video for “Never Gonna Give You Up” by Rick Astley...",
  "channelName": "Rick Astley",
  "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "channelUrl": "https://www.youtube.com/@RickAstleyYT",
  "viewCount": 1840178116,
  "likeCount": 19515919,
  "likesPerThousandViews": 10.61,
  "viewsPerDay": 294980.1,
  "durationSeconds": 213,
  "duration": "00:03:33",
  "publishedAt": "2009-10-24T23:57:33-07:00",
  "uploadedAt": "2009-10-24T23:57:33-07:00",
  "category": "Music",
  "keywords": ["rick astley", "Never Gonna Give You Up"],
  "chapters": [{"start": 0, "timestamp": "0:00", "title": "Intro"}],
  "thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",
  "isShortsEligible": false,
  "isLive": false,
  "wasLive": false,
  "liveStartedAt": null,
  "isUnlisted": false,
  "isFamilySafe": true,
  "ratingsEnabled": true,
  "scrapedAt": "2026-11-23T14:00:00+00:00",
  "charged": true
}
```

A video that could not be read:

```json
{
  "videoId": "aaaaaaaaaaa",
  "url": "https://www.youtube.com/watch?v=aaaaaaaaaaa",
  "error": "VideoUnavailable",
  "message": "This video is unavailable. Not charged.",
  "charged": false
}
```

### Pricing

Pricing: you pay per result, failures are free. One `video` event per video returned with data; error rows are never charged.

### Use cases

- Track views and likes of a list of videos every day (schedule the Actor and compare runs).
- Compare engagement of competitor or influencer videos with `likesPerThousandViews`.
- Feed an AI agent or a spreadsheet with clean YouTube video metadata, without the YouTube Data API quota.

# Actor input Schema

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

YouTube video URLs or 11-character IDs, one per line. Watch, youtu.be, Shorts, embed and live links all work. Duplicates are fetched once.

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

How many videos to fetch at the same time.

## `proxy` (type: `object`):

Residential proxy is the default. Each video tries a cheaper datacenter IP first and moves to residential only if YouTube blocks it.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw",
    "https://www.youtube.com/shorts/9bZkp7q19f0"
  ],
  "maxConcurrency": 5,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

## `results` (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 = {
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
        "https://www.youtube.com/shorts/9bZkp7q19f0"
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("integrative_cafe_8pc/youtube-video-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 = {
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
        "https://www.youtube.com/shorts/9bZkp7q19f0",
    ],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("integrative_cafe_8pc/youtube-video-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 '{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw",
    "https://www.youtube.com/shorts/9bZkp7q19f0"
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call integrative_cafe_8pc/youtube-video-scraper --silent --output-dataset

```

## MCP server setup

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