# YouTube Video Scraper — Views, Likes, Search & Channel Videos (`lieund/youtube-video-scraper`) Actor

YouTube videos from search terms, channel videos, playlists or links: title, exact view count and likes, upload date, length, full description, hashtags, channel and subscribers. Filter by upload date and length, sort by views. No login, no API key. $0.50 per 1,000 videos.

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

## Pricing

from $0.50 / 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.

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

Get **YouTube videos with their stats** from **search terms, channels, playlists or video links** in one run: title, **exact views and likes**, upload date, length, full description, hashtags, channel and subscriber count, as clean JSON, CSV or Excel.

No login, no YouTube API key and no quota. Search with YouTube's own filters (upload date, length, sort by views), or paste a channel link to get its latest videos.

### What you can use it for

- **Trend and topic research:** the most viewed videos about a topic this week or month.
- **Competitor tracking:** a rival channel's latest uploads with views, likes and dates.
- **Influencer and creator research:** who ranks for a keyword, and how big their channels are.
- **Content planning and SEO:** titles, descriptions and hashtags of the videos that rank.
- **Reporting and AI:** feed video lists to a spreadsheet, a dashboard or an AI agent.
- **Monitoring:** schedule it daily with *Upload date: Today* to collect new videos on a topic.

### How to use it

1. Add **search terms** (like `iphone 17 review`), and/or **channels, playlists or videos**: links like `https://www.youtube.com/@mkbhd`, `https://www.youtube.com/playlist?list=...`, `https://www.youtube.com/watch?v=dQw4w9WgXcQ` or `https://youtu.be/dQw4w9WgXcQ`.
2. Set **max videos per search, channel or playlist**.
3. For searches, optionally choose **sort by view count**, an **upload date** (last hour, today, this week, month, year) and a **duration** (under 4 minutes, 4–20 minutes, over 20 minutes).
4. Keep **Include full details** on for exact likes, exact views, the upload date and the full description. Turn it off for faster runs with list data only.
5. Click **Start**. In our test, 11 videos from a search and a channel, with full details, took about 3 seconds.

### Output

One result per video:

```json
{
  "videoId": "_Xe2JAoMwIA",
  "url": "https://www.youtube.com/watch?v=_Xe2JAoMwIA",
  "title": "iPhone Duo Teardown – APPLE SHOULD APOLOGIZE",
  "channelName": "JerryRigEverything",
  "channelId": "UCWFKCr40YwOZQx8FHU_ZqqQ",
  "channelUrl": "https://www.youtube.com/channel/UCWFKCr40YwOZQx8FHU_ZqqQ",
  "viewCount": 13948362,
  "likeCount": 191831,
  "publishedDate": "2026-10-26",
  "publishedTimeText": "3 weeks ago",
  "durationText": "17:24",
  "durationSeconds": 1044,
  "description": "Apple has confirmed that some iPhone Duo's are cracking in the same spot ...",
  "hashtags": [],
  "subscriberCountText": "10.4M subscribers",
  "subscriberCount": 10400000,
  "isLive": false,
  "thumbnailUrl": "https://i.ytimg.com/vi/_Xe2JAoMwIA/hq720.jpg",
  "fullDetails": true,
  "rank": 2,
  "source": "search: iphone 17 review",
  "scrapedAt": "2026-11-23T05:53:41.473Z"
}
```

| Field | Meaning |
|---|---|
| `viewCount`, `likeCount` | Exact numbers with *Include full details* on. Without it, views are rounded as YouTube lists them (3.8M) and likes are empty |
| `publishedDate` | Upload date (YYYY-MM-DD). Without full details it is worked out from "3 days ago" and left empty for "2 years ago" |
| `durationText`, `durationSeconds` | Video length |
| `description`, `hashtags` | Full description and hashtags with full details on, a short snippet otherwise |
| `subscriberCount` | Channel subscribers, rounded the way YouTube shows them |
| `fullDetails` | `true` when the video's own page was read. `false` means list data only: rounded views, "3 days ago" date, short description |
| `rank` | Position in the search results, channel or playlist (1 = first) |
| `source` | The search term or link the video came from |

A video found by two searches is saved once. Download results as JSON, CSV, Excel or HTML, or read them through the Apify API.

### Integrations

- **Schedules:** run it every day with [Apify schedules](https://docs.apify.com/platform/schedules) to track a topic or a channel.
- **Google Sheets, Slack, email, CRM:** send videos anywhere with [Make](https://docs.apify.com/platform/integrations/make), [Zapier](https://docs.apify.com/platform/integrations/zapier) or [n8n](https://docs.apify.com/platform/integrations/n8n).
- **Your own app:** get a [webhook](https://docs.apify.com/platform/integrations/webhooks) when a run finishes, then read the dataset through the API.
- **AI agents:** let AI agents run this Actor through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Pricing

**$0.50 per 1,000 videos**, with a near-zero start fee and no monthly fee. The price is the same with or without full details. Videos that do not exist or are private are skipped and cost nothing. Use **Max videos per search, channel or playlist** to get only what you need. If you set **Max cost per run**, the Actor stops before going over it.

### Related

- [YouTube Comments Scraper](https://apify.com/lieund/youtube-comments-scraper): comments and replies from the same videos, channels and searches.
- [Google Trends Scraper](https://apify.com/lieund/google-trends-scraper): see how search interest in a topic changes over time.
- [Google Autocomplete Scraper](https://apify.com/lieund/google-autocomplete-scraper): find what people search on YouTube and Google.

### Notes

- Data comes from the public pages of YouTube. The Actor does not log in and needs no proxy or API key.
- Channel links give the channel's latest uploads from its *Videos* tab (not Shorts or live streams).
- For single video links, the length comes from YouTube's "most replayed" graph, so it can be one second off, and it is empty for videos without that graph.
- Subscriber counts are rounded by YouTube (21.4M).
- YouTube sometimes refuses to show a video's own page to cloud servers. Such videos from searches, channels and playlists are still saved with list data only and `fullDetails: false`; the run log tells you how many.
- Results include the public name, ID and link of the channel that posted each video. When a channel belongs to a person, this can be personal data: use it only for a lawful purpose, such as research or analytics. You are responsible for how you use the data.

# Actor input Schema

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

Get the videos YouTube shows for each search term, in YouTube's order. Use the filters below to narrow the search.

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

Optional. Channel links (https://www.youtube.com/@mkbhd: takes the channel's latest videos), playlist links, or video and Shorts links. Mix as many as you like.

## `maxVideosPerSource` (type: `integer`):

How many videos to take from each search term, channel (newest first) or playlist. 0 means all: searches can return hundreds, so set "Max cost per run" too.

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

Applies to search terms only.

## `uploadDate` (type: `string`):

Applies to search terms only: only videos uploaded in this period.

## `duration` (type: `string`):

Applies to search terms only.

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

Open each video page for the exact like count, exact view count, upload date, full description, hashtags and the channel's subscriber count. Turn off for faster runs with list data only (rounded views, "3 days ago" dates, short description). The price is the same either way.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 17 review"
  ],
  "maxVideosPerSource": 10,
  "sortBy": "relevance",
  "uploadDate": "any",
  "duration": "any",
  "includeDetails": true
}
```

# Actor output Schema

## `videos` (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": [
        "iphone 17 review"
    ],
    "maxVideosPerSource": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("lieund/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 = {
    "searchQueries": ["iphone 17 review"],
    "maxVideosPerSource": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("lieund/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 '{
  "searchQueries": [
    "iphone 17 review"
  ],
  "maxVideosPerSource": 10
}' |
apify call lieund/youtube-video-scraper --silent --output-dataset

```

## MCP server setup

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