# Bulk YouTube Video Stats, Duration & Keywords API

**Use case:** 

Batch-enrich direct YouTube watch URLs, Shorts, youtu.be short links, or 11-character video IDs with titles, view counts, likes, exact durations (durationSec), tags/keywords, isShort/isLive flags, and channel profiles via pure-HTTP Innertube & oEmbed at 256MB RAM. $0 start, $0.0005/video.

## Input

```json
{
  "channelUrls": [],
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxVideosPerSource": 10,
  "enrichVideoDetails": true,
  "deduplicate": true,
  "concurrency": 5,
  "requestTimeoutMs": 15000
}
```

## Output

```json
{
  "videoId": {
    "label": "Video ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel Name",
    "format": "string"
  },
  "channelHandle": {
    "label": "Channel Handle",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published At (ISO)",
    "format": "string"
  },
  "durationText": {
    "label": "Duration",
    "format": "string"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "sourceType": {
    "label": "Source Type",
    "format": "string"
  },
  "url": {
    "label": "Video URL",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Channel Scraper: Videos, Playlists, Views & Stats Actor is ready to run with the inputs already set for "Bulk YouTube Video Stats, Duration & Keywords API". [Sign up or log in](https://console.apify.com/create-task-from-example/kmNgyed05UEFx8FCN) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Bulk YouTube Video Stats, Duration & Keywords API" task

The YouTube Channel Scraper: Videos, Playlists, Views & Stats Actor will start running based on the input automatically. You can also change all the input fields, like youtube channel handles, urls, ids, or rss feeds, youtube video urls or 11-char ids (optional), and more, to match your specific use case.

### 3. Receive the "Bulk YouTube Video Stats, Duration & Keywords API" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video id, title, channel name, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Bulk YouTube Video Stats, Duration & Keywords API" task via API](https://apify.com/salmon_chaparral/youtube-channel-video-scraper.md).

## FAQ

### Which direct video URL formats are accepted in videoUrls?

Supports standard watch URLs, youtu.be short links, YouTube Shorts, live/embed URLs, and bare 11-character YouTube video IDs.

### What extra fields does enrichVideoDetails populate?

Performs an Innertube player lookup to guarantee durationSec, durationText, keywords, isLive, and full description fields on every row.

### Are private, deleted, or unavailable video IDs billed?

No. Pay-Per-Event charges $0.0005 only per successfully extracted video row pushed to the dataset, with $0 Actor start fee.

## About this Actor

This example demonstrates how to use [YouTube Channel Scraper: Videos, Playlists, Views & Stats](https://apify.com/salmon_chaparral/youtube-channel-video-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/salmon_chaparral/youtube-channel-video-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/salmon_chaparral/youtube-channel-video-scraper.md

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`).
