# YouTube Scraper - Videos, Views, Likes and Channel Stats (`turboextract/youtube-videos-scraper`) Actor

Scrape YouTube search results, channel videos and video links: title, views, duration, upload time, channel and subscribers, plus likes, exact publish date and full description for recent uploads. Filter by upload date, sort by views, set minimum views. No login, no API key, no quota.

- **URL**: https://apify.com/turboextract/youtube-videos-scraper.md
- **Developed by:** [Moses Ndambuki](https://apify.com/turboextract) (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

$1.00 / 1,000 video delivereds

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 Scraper: Videos, Views, Likes and Channel Stats Without the API

**Export YouTube videos from search results, channels or video links, with title, views, duration, upload time, channel and subscribers, plus likes, exact publish date and full description for recent uploads.** Filter search by upload date, sort by views or date, and skip videos under a view count. No login, no API key and no daily quota.

In one cloud test, the search "ai agents" plus the channel @mkbhd and one video link returned 51 videos in 13 seconds.

***

### Who this is for

- **Marketers and agencies** researching what content performs in a niche
- **Influencer and creator teams** comparing channels by views and subscribers
- **Brands** monitoring videos that mention their product
- **Analysts and researchers** building YouTube datasets
- **AI teams** collecting video titles and descriptions for training data

***

### What you get

```json
{
  "videoId": "ESABTN4VtrA",
  "url": "https://www.youtube.com/watch?v=ESABTN4VtrA",
  "title": "iPhone Duo Review: First Generation Fun!",
  "channelName": "Marques Brownlee",
  "channelUrl": "https://www.youtube.com/@mkbhd",
  "channelSubscribers": 21400000,
  "views": 13778670,
  "likes": 209292,
  "durationSeconds": 1744,
  "publishedText": "1mo ago",
  "publishDate": "2026-10-21T12:00:52+00:00",
  "description": "What it's actually like to use the first folding iPhone...",
  "source": "channel: Marques Brownlee"
}
```

***

### How it works

```mermaid
flowchart LR
    A[Search keywords] --> D[Video list]
    B[Channels] --> D
    C[Video links] --> D
    D --> E[Likes, date, description]
    E --> F[Filter: minimum views]
    F --> G[Video rows]
```

***

### Quick start

1. Click **Try for free**.
2. Add **Search keywords**, like `home workout`, or **Channels**, like `@mkbhd`.
3. Optional: set **Upload date**, **Sort search by** or **Minimum views**.
4. Click **Start**, then export to CSV, JSON, Excel or Google Sheets.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/Turboextract~youtube-videos-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["claude code", "cursor ai"], "uploadDate": "week", "sortBy": "views"}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("Turboextract/youtube-videos-scraper").call(run_input={
    "channels": ["@veritasium", "@kurzgesagt"],
    "maxResults": 60,
})
for v in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(v["channelName"], v["title"], v["views"], v["likes"])
```

***

### Input

| Field | Default | What it does |
|---|---|---|
| `searchQueries` | – | Keywords; about 20 videos each |
| `channels` | – | Handles, links or UC IDs; latest 30 uploads each |
| `videoUrls` | – | Video, Shorts or youtu.be links |
| `uploadDate` | any | Hour, today, week, month or year (search) |
| `sortBy` | relevance | Relevance, date, views or rating (search) |
| `channelTab` | videos | Videos, live streams or Shorts |
| `includeDetails` | true | Likes, exact date, full description |
| `minViews` | 0 | Skip smaller videos |
| `maxResults` | 50 | Total cap per run |

***

### Pricing

**$0.001 per video delivered, all fields included.** 1,000 videos cost $1.

| Option | 1,000 videos |
|---|---|
| **YouTube Scraper** | **$1**, no quota or API key |
| YouTube Data API | Free but capped at 10,000 quota units a day, with key setup |
| Video analytics tools | $50 to $500 a month |

***

### Use cases

- **Content research**: top videos this month for every keyword in your niche
- **Competitor tracking**: schedule a weekly run on rival channels
- **Influencer shortlists**: channels with 10K to 500K subscribers posting on a topic
- **Brand monitoring**: daily search for your brand, sorted by upload date
- **Datasets**: titles, views and descriptions for analysis or AI training

***

### Tips

- Each search returns about 20 videos. Add related keywords, like `ai agents`, `ai agent tutorial` and `build ai agent`, for bigger lists.
- Channels return their latest 30 uploads per tab. Switch `channelTab` to Shorts or live streams for those.
- Likes, exact publish date and description are always filled for a channel's latest 15 uploads. For older videos found in search, you get views, duration and upload time.
- Turn off `includeDetails` for the fastest list.

***

### Pairs well with

- [Apple Podcasts Scraper](https://apify.com/Turboextract/apple-podcasts-leads): podcast shows with host emails
- [Google News Feed](https://apify.com/Turboextract/google-news-feed): news coverage for the same keywords
- [Bluesky Posts and Profiles](https://apify.com/Turboextract/bluesky-posts-profiles): social posts on the same topics

***

### FAQ

**Do I need a YouTube API key?** No. The actor reads public YouTube pages.

**Does it get transcripts or comments?** No, video and channel data only.

**Why do I get about 20 videos per search?** That is the first results page YouTube shows. Use more keywords or filters for more.

**How fresh is the data?** It is read live on every run.

**Is it legal?** It reads public video pages that YouTube shows to anyone without signing in.

***

### SEO keywords

YouTube scraper, YouTube data API alternative, YouTube video scraper, YouTube channel scraper, YouTube views and likes export, YouTube search results scraper, YouTube to CSV, YouTube analytics data, scrape YouTube without API key, YouTube influencer research

***

### Support

- Docs and examples: https://github.com/andersonjames38phd-cpu/youtube-videos-scraper
- Community Discord: https://discord.gg/8SrXSCpvgj

Built and maintained by [Turboextract](https://apify.com/Turboextract) on the Apify platform.

# Actor input Schema

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

Search YouTube for these keywords. Each search returns about 20 videos, so add several related keywords for more.

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

Channel handles like @mkbhd, channel links or channel IDs starting with UC. Returns the channel's latest 30 uploads.

## `videoUrls` (type: `array`):

YouTube video, Shorts or youtu.be links, or 11-character video IDs.

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

Only search videos uploaded in this window.

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

Order of search results.

## `channelTab` (type: `string`):

Which channel tab to read.

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

Adds likes, exact publish date and full description where YouTube provides them (always for a channel's latest 15 uploads). Turn off for a faster list.

## `minViews` (type: `integer`):

Skip videos with fewer views than this.

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

Stop after this many videos in total.

## Actor input object example

```json
{
  "searchQueries": [
    "ai agents"
  ],
  "uploadDate": "any",
  "sortBy": "relevance",
  "channelTab": "videos",
  "includeDetails": true,
  "minViews": 0,
  "maxResults": 50
}
```

# Actor output Schema

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

One row per video with views, likes, duration, publish date, channel and 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": [
        "ai agents"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("turboextract/youtube-videos-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": ["ai agents"] }

# Run the Actor and wait for it to finish
run = client.actor("turboextract/youtube-videos-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": [
    "ai agents"
  ]
}' |
apify call turboextract/youtube-videos-scraper --silent --output-dataset

```

## MCP server setup

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