YouTube Scraper –Videos, Shorts, Channels & Playlists avatar

YouTube Scraper –Videos, Shorts, Channels & Playlists

Pricing

from $0.85 / 1,000 youtube videos

Go to Apify Store
YouTube Scraper –Videos, Shorts, Channels & Playlists

YouTube Scraper –Videos, Shorts, Channels & Playlists

Fast HTTP-only YouTube Scraper for videos, channels, Shorts, playlists, and keyword search. Extract titles, URLs, thumbnails, durations, and available view counts. Monitor new uploads, scrape multiple channels, and export clean JSON. No browser, login, or YouTube API key required.

Pricing

from $0.85 / 1,000 youtube videos

Rating

0.0

(0)

Developer

aiconsulting

aiconsulting

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

1. What Is YouTube Scraper?

Fast HTTP-only YouTube data extraction API for developers, researchers, marketers, businesses, and AI agents.

Extract public YouTube video metadata from channels, Shorts, keyword searches, and playlists. Discover new uploads, export structured JSON, and integrate with your applications using Apify.

No YouTube Data API key. No browser automation. No coding required to start.

Transparent Pay-Per-Event pricing from $0.85 per 1,000 videos for eligible Apify subscription tiers.

Run YouTube Scraper · API Documentation · AIConsulting Profile

At a Glance

FeatureDescription
ArchitectureHTTP-only
Primary outputStructured YouTube video records
Supported sourcesChannels, Shorts, search, public playlists
MonitoringPersistent new-video discovery
PaginationSupported where available
DeduplicationVideo ID
Maximum results1,000 per run
Default example10 videos
OutputJSON, CSV, Excel
IntegrationREST API, Python, JavaScript, automation, AI agents
PricingPay Per Event
Billing unitOne video saved to the default Dataset
Platform usageIncluded in event pricing

Verified Performance

TestVideosDuration
Default example10Approximately 2 seconds
Historical extraction100Approximately 6 seconds
Historical extraction500Approximately 14–18 seconds

These are observed results, not guaranteed execution times.

Scope

This Actor extracts publicly available video-listing metadata. It does not download videos or audio, extract transcripts, scrape comments, or guarantee complete video-page metadata.

Optional fields such as view counts, channel names, descriptions, and exact publication timestamps depend on the extraction mode and source availability.

2. Why Choose This YouTube Scraper?

FeatureBenefit
HTTP-only extractionAvoids the overhead of launching headless browsers
No YouTube API keyNo Google Cloud project or YouTube Data API credentials required
Channel scrapingDiscover public videos across multiple listing pages
Shorts scrapingExtract videos from a channel's Shorts tab
Keyword searchDiscover relevant videos using search phrases
Playlist extractionCollect available video listings from public playlists
Multiple sourcesProcess several channels, searches, or playlists in one run
Global result limitControl the maximum number of exported records
Round-robin outputDistribute results across sources rather than exhausting the limit on the first source
DeduplicationAvoid duplicate video IDs within a run
New-video monitoringTrack previously encountered videos across repeated runs
Clean JSONOmit unavailable properties rather than exporting unnecessary null values
Apify integrationUse datasets, REST API, SDKs, schedules, and webhooks
AI-ready dataSupply video metadata to research systems, databases, and AI agents

The primary advantage is efficient, structured YouTube data collection with minimal infrastructure overhead.

Actual performance depends on target availability, network conditions, pagination requirements, and runtime configuration.


3. Quick Start — Run Your First YouTube Scrape

  1. Open YouTube Scraper on Apify.
  2. Click Run Actor.
  3. Open the Input tab.
  4. Select Restore example input.
  5. Click Start.
  6. Inspect the dataset in the Output tab.
  7. Export results as JSON, CSV, or Excel if required.

Verified Restored Example Input

{
"mode": "channelHttp",
"channelIds": [
"UCnJjcn5FrgrOEp5_N45ZLEQ"
],
"searchQueries": [],
"playlistUrls": [],
"channelTab": "videos",
"onlyNewVideos": false,
"maxResults": 10,
"maxPagesPerSource": 2,
"maxConcurrency": 3,
"requestTimeoutSecs": 15,
"metadataEnrichment": "none"
}

This configuration was tested on November 13, 2026.

MetricObserved result
Execution statusSUCCEEDED
Video records10
Successful sources1
Failed sources0
Listing pages fetched1
Actor-reported processing time824 ms
Monitoring state writes0

These figures describe a specific successful run, not a guaranteed execution time.

The prefilled example uses a previously tested public channel and a small output limit to make first-time execution straightforward.

Important: Apify may use restored example inputs for automated Store quality tests. Keep the production prefill valid and monitoring disabled, because a successful repeated monitoring run can legitimately produce zero new records.


4. Supported Extraction Modes

ModeInputPrimary purposeStatus
channelHttpChannel IDs, handles, or URLsPublic channel video extractionTested
channelHttp + shortsChannel IDs, handles, or URLsPublic channel ShortsTested
searchKeyword phrasesYouTube search resultsTested
playlistPublic playlist IDs or URLsPublic playlist discoveryBasic extraction tested
channelFeedCanonical UC channel IDsRecent uploads via YouTube RSSAvailable; coverage depends on feed

4.1 Channel Videos

Use the public Videos tab to discover content published by a specific channel.

{
"mode": "channelHttp",
"channelIds": [
"UCnJjcn5FrgrOEp5_N45ZLEQ"
],
"channelTab": "videos",
"maxResults": 100,
"maxPagesPerSource": 10,
"metadataEnrichment": "none"
}

The Actor follows available continuation pages up to the configured limit.

Typical data includes video IDs, titles, URLs, durations, relative publication times, and thumbnails.

Channel-level metadata such as view counts or exact publishing dates may not be present in listing responses.

4.2 YouTube Shorts

Extract available Shorts from a public channel.

{
"mode": "channelHttp",
"channelIds": [
"UCnJjcn5FrgrOEp5_N45ZLEQ"
],
"channelTab": "shorts",
"maxResults": 30,
"maxPagesPerSource": 3
}

Shorts can expose a different metadata structure from standard videos. Output fields are included only when the source supplies them.

Discover videos using one or more search queries.

{
"mode": "search",
"searchQueries": [
"artificial intelligence tutorial",
"machine learning for beginners"
],
"maxResults": 60,
"maxPagesPerSource": 3,
"metadataEnrichment": "none"
}

Search results may include channel names, channel IDs, view counts, video durations, relative publication text, and thumbnails.

Search ranking and available fields are determined by YouTube.

4.4 YouTube Playlist Scraper

Extract video listings from public playlists.

{
"mode": "playlist",
"playlistUrls": [
"YOUR_PUBLIC_PLAYLIST_URL"
],
"maxResults": 30,
"maxPagesPerSource": 3
}

Replace YOUR_PUBLIC_PLAYLIST_URL with a real public YouTube playlist URL or supported playlist ID.

Basic playlist extraction has been validated. Comprehensive continuation pagination for very large playlists is not yet verified.

Private, inaccessible, deleted, or restricted playlists are not guaranteed to work.

4.5 Multiple Channels in One Run

{
"mode": "channelHttp",
"channelIds": [
"UCnJjcn5FrgrOEp5_N45ZLEQ",
"UC8butISFwT-Wl7EV0hUK0BQ"
],
"channelTab": "videos",
"maxResults": 60,
"maxPagesPerSource": 3,
"maxConcurrency": 2
}

The Actor collects candidate records from each source, deduplicates by video ID, and interleaves results across sources.

maxResults is a global output limit, not a per-channel limit.

The distribution depends on how many accessible video records each source provides.

4.6 Multiple Search Queries

{
"mode": "search",
"searchQueries": [
"AI agents tutorial",
"LangGraph tutorial",
"retrieval augmented generation"
],
"maxResults": 90,
"maxPagesPerSource": 3,
"maxConcurrency": 3
}

Useful for content research, topic discovery, competitive analysis, and building research datasets.


5. New-Video Monitoring — Discover Only Unseen Uploads

The Actor supports persistent video monitoring for channel extraction and RSS-feed modes.

This allows recurring workflows to focus on videos that have not appeared in earlier monitoring runs.

Example: Monitor a YouTube Channel

{
"mode": "channelHttp",
"channelIds": [
"UC8butISFwT-Wl7EV0hUK0BQ"
],
"channelTab": "videos",
"maxResults": 30,
"maxPagesPerSource": 3,
"onlyNewVideos": true,
"metadataEnrichment": "none"
}

How Monitoring Works

First run:

  • Extract video listings.
  • Emit unseen video records.
  • Store their video IDs in persistent Apify storage.

Subsequent runs:

  • Compare discovered video IDs against saved monitoring state.
  • Skip previously seen videos.
  • Emit newly encountered videos.
  • Update the saved state.

If there are no unseen videos, a successful run may return an empty dataset.

This is expected behavior, not necessarily a scraping failure.

Persistent State

Monitoring uses a named Apify key-value store:

youtube-scraper-monitor-v1

State is tracked by canonical YouTube UC channel ID.

The implementation retains a rolling history of up to 5,000 video IDs per channel.

For reliable tracking, use canonical UC... channel IDs and execute monitoring runs for the same channel sequentially.

Important limitations:

  • Monitoring tracks newly discovered video IDs, not exact publishing timestamps.
  • Videos can be discovered after their original upload time.
  • The state window is finite.
  • Running the same monitored source concurrently can cause competing state updates.
  • Monitoring is supported in channelHttp and channelFeed, not in search or playlist mode.

Alternative: Channel RSS Feed

{
"mode": "channelFeed",
"channelIds": [
"UC8butISFwT-Wl7EV0hUK0BQ"
],
"maxResults": 15,
"onlyNewVideos": true
}

RSS feeds generally expose recent channel uploads rather than a complete historical video archive.


6. Input Schema — Complete Developer Reference

The Actor accepts a JSON object.

Input Fields

FieldTypeDefaultDescription
modestringchannelHttpExtraction mode
channelIdsstring[]Prefilled example channelChannel IDs, handles, or URLs
searchQueriesstring[][]Search keywords
playlistUrlsstring[][]Public playlist IDs or URLs
channelTabstringvideosvideos or shorts
onlyNewVideosbooleanfalsePersist monitoring state and emit unseen videos
maxResultsinteger30Global result cap; valid range 1–1,000
maxPagesPerSourceinteger10Page limit; valid range 1–100
maxConcurrencyinteger3Concurrent source processing; valid range 1–10
requestTimeoutSecsinteger15HTTP timeout; valid range 5–60 seconds
metadataEnrichmentstringnonenone or best-effort feed

Prefill distinction: The restored example uses maxResults: 10 and maxPagesPerSource: 2, even though their general schema defaults are 30 and 10.

Mode-Dependent Input Requirements

ModeRequired source field
channelHttpNon-empty channelIds
searchNon-empty searchQueries
playlistNon-empty playlistUrls
channelFeedNon-empty channelIds containing canonical UC IDs

Although the top-level input schema does not mark these arrays universally required, the runtime requires a non-empty source list for the selected mode.

Input JSON Schema Reference

The following condensed JSON Schema describes the principal public input contract. The actual Apify input schema also includes UI editors, descriptions, and example prefill values.

{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"channelHttp",
"search",
"playlist",
"channelFeed"
]
},
"channelIds": {
"type": "array",
"items": {"type": "string"}
},
"searchQueries": {
"type": "array",
"items": {"type": "string"}
},
"playlistUrls": {
"type": "array",
"items": {"type": "string"}
},
"channelTab": {
"type": "string",
"enum": ["videos", "shorts"]
},
"onlyNewVideos": {
"type": "boolean"
},
"maxResults": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"maxPagesPerSource": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"maxConcurrency": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"requestTimeoutSecs": {
"type": "integer",
"minimum": 5,
"maximum": 60
},
"metadataEnrichment": {
"type": "string",
"enum": ["none", "feed"]
}
}
}

For executable validation and the current user-interface configuration, refer to the Actor's Input tab.


7. Output Data Schema — Structured YouTube Metadata

Each exported dataset item represents a discovered YouTube video.

The Actor removes properties whose values are null or undefined.

Consequently, not every record contains every optional field.

Example: Channel Video Record

Actual example structure from the validated channel test:

{
"title": "8k Video: PUSHPA PUSHPA | Pushpa 2 The Rule | Allu Arjun | Sukumar | Devi Sri Prasad",
"url": "https://www.youtube.com/watch?v=uG-HSYxwEG4",
"channelId": "UCnJjcn5FrgrOEp5_N45ZLEQ",
"videoId": "uG-HSYxwEG4",
"durationSeconds": 253,
"publishedText": "4d ago",
"thumbnailUrl": "https://i.ytimg.com/vi/uG-HSYxwEG4/hq720.jpg",
"scrapedAt": "2026-11-13T13:09:54.884Z"
}

The thumbnail URL above is shortened for readability. Actual thumbnail URLs may include additional query parameters.

Example: YouTube Search Result

Based on the validated search output:

{
"title": "AI, Machine Learning, Deep Learning and Generative AI Explained",
"url": "https://www.youtube.com/watch?v=qYNweeDHiyU",
"channelName": "IBM Technology",
"channelId": "UCKWaEZ-_VweaEx1j62do_vQ",
"videoId": "qYNweeDHiyU",
"viewCount": 3855517,
"durationSeconds": 601,
"publishedText": "2y ago",
"thumbnailUrl": "https://i.ytimg.com/vi/qYNweeDHiyU/hq720.jpg",
"scrapedAt": "2026-11-12T10:32:30.993Z"
}

Complete Output Field Reference

FieldTypeMeaning
videoIdstringYouTube video identifier
urlstringVideo or Shorts URL
titlestringVideo title
descriptionstringDescription, if available
channelIdstringChannel identifier
channelNamestringChannel display name
channelUrlstringChannel URL
thumbnailUrlstringVideo thumbnail URL
thumbnailWidthintegerThumbnail width, if available
thumbnailHeightintegerThumbnail height, if available
publishedTextstringRelative publishing information
publishedDatestringPublication date, if resolved
publishedAtstringExact publication timestamp, if resolved
viewCountintegerAvailable view count
likeCountintegerLike count, if available
durationSecondsintegerVideo duration in seconds
isShortbooleanShorts classification when known
scrapedAtstringUTC timestamp of extraction

The values in this table represent the schema's supported fields, not guaranteed fields for every record.

videoId, url, and scrapedAt are part of the required output contract.

Metadata Availability by Mode

MetadataChannel videosKeyword searchShortsPlaylists
Video ID and URLYesYesYesWhen extracted
TitleUsuallyUsuallyUsuallyWhen available
Channel IDTypicallyOftenSource-dependentSource-dependent
Channel nameOften unavailableOften availableSource-dependentSource-dependent
DurationOften availableOften availableSometimes missingSource-dependent
ViewsOften unavailableFrequently availableSometimes availableSource-dependent
Relative publishing timeOften availableOften availableSource-dependentSource-dependent
Exact publication timestampNot guaranteedNot guaranteedNot guaranteedNot guaranteed
ThumbnailOften availableOften availableSource-dependentSource-dependent
DescriptionLimitedLimitedLimitedLimited

Availability is determined by the public YouTube response and the selected mode.

Dataset Views

The Actor provides two dataset views:

Overview: compact fields optimized for easy browsing.

All available video metadata: expanded presentation including optional channel names, view counts, publication fields, and other supported attributes.

The overview is a display projection; it does not necessarily show every field stored in a raw record.

Developer recommendation: Retrieve raw dataset items without the view parameter when your application needs every available field.


8. YouTube Scraper REST API

The Actor is accessible through Apify API v2.

Actor identifier:

aiconsulting~youtube-scraper

Base API URL:

https://api.apify.com/v2

Create an Apify API token in your Apify account settings and pass it securely through environment variables or an authorization header.

Never expose your API token in public frontend code.

8.1 Run the Actor Synchronously — cURL

Use this when the expected execution is short and you want the dataset returned in the same HTTP response.

curl -X POST \
"https://api.apify.com/v2/acts/aiconsulting~youtube-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mode": "search",
"searchQueries": ["AI agents tutorial"],
"maxResults": 20,
"maxPagesPerSource": 2
}'

The endpoint returns dataset items as JSON when the Actor finishes successfully within the synchronous request limit.

Apify's synchronous API has a 300-second execution limit. For longer jobs, prefer asynchronous execution.

8.2 Start an Asynchronous Run

curl -X POST \
"https://api.apify.com/v2/acts/aiconsulting~youtube-scraper/runs" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mode": "channelHttp",
"channelIds": [
"UCnJjcn5FrgrOEp5_N45ZLEQ"
],
"maxResults": 100
}'

The API returns a run object containing identifiers and status information.

Use the returned run ID or default dataset ID to retrieve results after completion.

8.3 Retrieve Run Status

curl \
"https://api.apify.com/v2/actor-runs/RUN_ID" \
-H "Authorization: Bearer $APIFY_TOKEN"

Replace RUN_ID with the actual identifier returned by the API.

8.4 Retrieve Dataset Records

curl \
"https://api.apify.com/v2/datasets/DATASET_ID/items?format=json" \
-H "Authorization: Bearer $APIFY_TOKEN"

To retrieve CSV:

curl \
"https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv" \
-H "Authorization: Bearer $APIFY_TOKEN"

8.5 Select Specific Fields

Apify's dataset API supports field projection.

curl \
"https://api.apify.com/v2/datasets/DATASET_ID/items?format=json&fields=videoId,title,url,viewCount" \
-H "Authorization: Bearer $APIFY_TOKEN"

This is useful for downstream services that require a stable subset of fields.


9. Python Integration — Official Apify Client

Python Client

Installation

$pip install apify-client

Configure your token securely:

$export APIFY_TOKEN="YOUR_APIFY_API_TOKEN"

Python Example: Search YouTube and Process Results

import os
import json
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
actor_input = {
"mode": "search",
"searchQueries": [
"artificial intelligence tutorial"
],
"maxResults": 30,
"maxPagesPerSource": 3,
"metadataEnrichment": "none"
}
run = client.actor(
"aiconsulting/youtube-scraper"
).call(run_input=actor_input)
if run["status"] != "SUCCEEDED":
raise RuntimeError(
f"Actor ended with status: {run['status']}"
)
dataset_id = run["defaultDatasetId"]
videos = list(
client.dataset(dataset_id).iterate_items()
)
print(f"Extracted {len(videos)} videos")
for video in videos:
print(json.dumps({
"videoId": video.get("videoId"),
"title": video.get("title"),
"url": video.get("url"),
"views": video.get("viewCount")
}, ensure_ascii=False))

Production note: The Python client handles Apify API communication. Your application should still inspect the Actor's RUN_SUMMARY to detect source-level partial failures.

Python Example: Filter Results by View Count

popular_videos = [
video for video in videos
if isinstance(video.get("viewCount"), int)
and video["viewCount"] >= 100000
]
popular_videos.sort(
key=lambda video: video["viewCount"],
reverse=True
)
for video in popular_videos:
print(video["viewCount"], video["title"])

Only videos with a populated numeric viewCount participate in this filter.


10. JavaScript / Node.js Integration

JavaScript Client

Installation

$npm install apify-client

JavaScript Example: Extract Channel Videos

import { ApifyClient } from "apify-client";
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
const input = {
mode: "channelHttp",
channelIds: [
"UCnJjcn5FrgrOEp5_N45ZLEQ"
],
channelTab: "videos",
maxResults: 30,
maxPagesPerSource: 3,
onlyNewVideos: false,
};
const run = await client
.actor("aiconsulting/youtube-scraper")
.call(input);
if (run.status !== "SUCCEEDED") {
throw new Error(
`Actor ended with status: ${run.status}`
);
}
const { items } = await client
.dataset(run.defaultDatasetId)
.listItems();
console.log(`Videos: ${items.length}`);
for (const video of items) {
console.log({
title: video.title,
videoId: video.videoId,
url: video.url,
viewCount: video.viewCount,
});
}

JavaScript Example: Convert Records Into Application Data

const normalizedVideos = items.map((video) => ({
id: video.videoId,
title: video.title ?? "",
url: video.url,
channelId: video.channelId ?? null,
channelName: video.channelName ?? null,
views: video.viewCount ?? null,
duration: video.durationSeconds ?? null,
discoveredAt: video.scrapedAt,
}));
console.log(normalizedVideos);

The Actor omits unavailable properties; downstream applications can choose their own normalized schema.


11. Run Summary — Operational Metadata

In addition to the video dataset, every successful execution writes a RUN_SUMMARY record to the run's default key-value store.

This record is important for monitoring, automated workflows, operational reporting, and distinguishing success from partial failure.

Example Summary Structure

{
"status": "SUCCEEDED",
"mode": "channelHttp",
"inputCount": 1,
"uniqueTargets": 1,
"successfulRequests": 1,
"failedRequests": 0,
"extractedRecords": 10,
"previouslySeen": 0,
"filteredOut": 0,
"unknownPublishedAt": 30,
"monitoringEnabled": false,
"stateWrites": 0,
"elapsedMs": 824
}

This is a shortened representation of the actual successful November 13 test. The complete summary additionally contains metadata coverage, enrichment details, source statistics, and failures.

Retrieve RUN_SUMMARY via REST API

curl \
"https://api.apify.com/v2/key-value-stores/KEY_VALUE_STORE_ID/records/RUN_SUMMARY" \
-H "Authorization: Bearer $APIFY_TOKEN"

Use the run object's defaultKeyValueStoreId.

A robust integration should evaluate:

  1. Apify run status.
  2. RUN_SUMMARY.status.
  3. RUN_SUMMARY.failedRequests.
  4. Dataset record count.
  5. Required fields in returned records.

Important: A run may finish at the platform level while its internal summary indicates partial source failures. Do not use dataset record count alone to determine operational quality.

metadataCoverage describes fetched candidate records, which can exceed the number actually exported.


12. Integrations — n8n, Make, Zapier, Webhooks & AI Agents

The Actor can be used through Apify's platform integration capabilities and REST API.

12.1 n8n Integration

Example: YouTube Channel Monitoring Pipeline

Schedule Trigger
|
v
Apify Actor Run
|
v
Wait for Completion
|
v
Retrieve Dataset
|
v
Filter New Videos
|
v
Google Sheets / Database / Slack

Suggested process:

  1. Configure a scheduled trigger in n8n.
  2. Start aiconsulting/youtube-scraper through an Apify-compatible node or HTTP request.
  3. Use onlyNewVideos: true.
  4. Wait for the run to finish.
  5. Retrieve its dataset and inspect its summary.
  6. Store or forward newly discovered video records.

Example application: Monitor competing YouTube channels and update a marketing research database.

12.2 Make Integration

A typical Make scenario:

Scheduler
|
v
Apify: Run Actor
|
v
Retrieve Dataset Items
|
v
Google Sheets / Airtable / Notion

The exact modules depend on the available Make integration and account configuration.

12.3 Zapier Integration

Use Apify's supported Zapier integration or webhooks to trigger downstream actions after completed runs.

Potential destinations include:

  • Google Sheets
  • Airtable
  • Slack
  • Email
  • CRM systems
  • Custom HTTP endpoints

12.4 Webhook Automation

Apify supports Actor-run webhooks.

Example workflow:

YouTube Scraper Run
|
v
Run Completed Event
|
v
Webhook Receiver
|
v
Read Run Summary + Dataset
|
v
Application / Database

For production systems, verify the completed run status before treating results as successful.

12.5 Scheduled Monitoring

Use Apify Schedules to run the Actor periodically.

Potential schedules include:

  • Every hour
  • Every six hours
  • Daily
  • Weekly

The best interval depends on monitoring needs, source activity, API usage, and operating costs.

Avoid overlapping runs monitoring the same channel ID.


13. MCP and AI-Agent Integration

MCP

Apify supports connecting Actors to AI-agent environments through its MCP infrastructure.

When this Actor is made available through an appropriately configured Apify MCP server, compatible clients can use it to obtain public YouTube metadata for AI workflows.

Example AI-Agent Workflow

User Research Request
|
v
AI Agent / MCP Client
|
v
YouTube Scraper Actor
|
v
Structured Video Metadata
|
v
Filtering / Ranking / Analysis
|
v
Research Report

Example Research Request

Find public YouTube videos about reinforcement learning and AI agents, then organize the available titles, channels, URLs, and view counts into a research dataset.

The agent can call the configured Actor, process returned metadata, and produce structured recommendations or reports.

Important: The Actor does not extract video transcripts or understand the content of the video itself. Downstream AI analysis based only on listing data must not be presented as transcript-level analysis.

Suitable AI Applications

  • AI content discovery
  • Video research assistants
  • Competitive intelligence agents
  • Knowledge-base source discovery
  • Marketing research automation
  • RAG source collection using video metadata
  • Recommendation and ranking pipelines

AI-agent compatibility depends on the MCP client and server configuration. The Actor's data-extraction capabilities remain the same.


14. Developer Use Cases

YouTube SEO & Content Research

Discover competing videos for specific search phrases.

Analyze:

  • Video titles
  • Search-result presence
  • Available view counts
  • Channel names
  • Video durations
  • Relative publishing information

Use extracted metadata to inform topic selection and content research.

The Actor does not provide official YouTube Analytics account metrics.

Creator & Influencer Research

Collect public video listings from selected channels and build a structured discovery database.

Useful for agencies, content strategists, and creator research teams.

Competitor Video Monitoring

Monitor newly discovered uploads from selected public channels.

Connect the results to messaging tools, dashboards, or databases.

Market Intelligence

Discover videos about industries, technologies, products, competitors, and emerging topics.

Research & Academic Workflows

Collect public video metadata for research projects involving communication, education, technology, and content trends.

AI & LLM Applications

Use structured metadata in agent workflows, content indexing, recommendation systems, or research interfaces.


15. Performance Benchmarks

The following measurements come from actual development and acceptance runs.

TestRecordsPagesActor-reported time
Channel extraction5001712.47 seconds
Channel extraction3011.99 seconds
Keyword search3022.53 seconds
Restored example input101824 ms

What These Numbers Mean

They illustrate the performance of the Actor under specific tested conditions.

They do not guarantee that every channel or query will produce identical results or execution times.

Execution time varies with:

  • YouTube response times
  • Network availability
  • Number of sources
  • Pagination depth
  • Requested result count
  • Metadata enrichment
  • Runtime resources

The lightweight HTTP-only design avoids browser startup overhead, but external failures and throttling remain possible.


16. Pagination, Limits & Deduplication

Global Output Limit

maxResults controls the maximum number of emitted records across all input sources.

Example:

{
"mode": "search",
"searchQueries": [
"AI research",
"deep learning",
"machine learning"
],
"maxResults": 90
}

The Actor may emit up to 90 total records, not 90 per query.

Pagination

maxPagesPerSource bounds listing-page traversal where available.

Results can stop earlier when no further continuation data is available.

Deduplication

The Actor deduplicates discovered records by videoId within a run.

Identical videos appearing in multiple sources are not intentionally exported twice.

Round-Robin Selection

For multiple successful sources, the Actor interleaves results when applying the global output limit.

This helps prevent one source from consuming the entire output allowance before the others contribute records.

Equal distribution is not guaranteed.


17. Error Handling & Operational Reliability

Source Failure

A source may fail due to:

  • Temporary network problems
  • YouTube response changes
  • Request timeouts
  • Restricted or unavailable content
  • Invalid source identifiers
  • HTTP access limitations

The Actor reports source failures in its execution summary.

Partial Success

If several sources are supplied and some succeed while others fail, the Actor can produce partial results.

Inspect:

RUN_SUMMARY.status
RUN_SUMMARY.failedRequests
RUN_SUMMARY.failures
RUN_SUMMARY.sourceStats

Zero Output Records

Zero records may indicate:

  • No available results
  • Monitoring found no unseen videos
  • The selected source has no accessible matching videos
  • A source returned an unexpected response
  • Pagination or result limits prevented discovery

Inspect the run logs and summary before classifying an empty dataset as a failure.

Metadata Availability

An omitted field does not necessarily indicate a parser error.

It may simply be absent from YouTube's source response.


18. Production Deployment & Apify Automated Quality Checks

Apify can periodically test public Actors using their restored example input.

To reduce avoidable failures, this Actor's default example uses a small, previously tested public channel request.

  • Confirm the intended build is tagged latest.
  • Open Input → Restore example input.
  • Verify that the channel ID is populated.
  • Keep onlyNewVideos disabled in the example.
  • Run without modifying the restored values.
  • Verify successful execution.
  • Confirm the expected dataset records.
  • Inspect RUN_SUMMARY.
  • Ensure execution completes within five minutes.
  • Repeat the smoke test after input-schema or runtime changes.

The restored example successfully returned 10 records in the November 13, 2026 acceptance test.

A successful historical test does not eliminate the possibility of future upstream connectivity failures.

For Apify maintenance guidance, see:

Apify — Troubleshooting an Actor marked Under maintenance


19. Pricing & Billing

YouTube Scraper uses Apify Pay-Per-Event (PPE) pricing.

Customers pay for video records written to the Actor's default Dataset, plus the applicable Actor Start event.

Standard platform usage costs are included in the configured event prices.

19.1 Current Pricing

Apify planPrice per videoPrice per 1,000 videos
Free$0.00140$1.40
Starter (Bronze)$0.00120$1.20
Scale (Silver)$0.00100$1.00
Business (Gold)$0.00085$0.85

These prices were configured on November 18, 2026.

For authoritative current rates, consult the Actor's Pricing tab.

Important: The Apify Free plan has a configured per-video event price. Eligible customers may have platform-provided free usage credits, subject to Apify's applicable terms.

19.2 What Is a Billable Video?

The primary event is:

apify-default-dataset-item

Displayed as:

YouTube Video

One event is triggered whenever one video record is written to the default Dataset.

Under this configuration:

  • A saved video record generates one video event.
  • A saved Shorts record generates one video event.
  • A saved video discovered through keyword search generates one video event.
  • A saved video discovered through a public playlist generates one video event.
  • Records missing optional metadata remain billable.
  • Duplicate candidates excluded before Dataset storage do not generate video events.
  • Records filtered out before storage do not generate video events.
  • Previously seen videos excluded by monitoring do not generate video events.
  • Failed requests that produce no Dataset records do not generate video events.

The billing mechanism counts Dataset writes. It does not independently assess the completeness of each record's optional metadata.

19.3 Actor Start Event

The second configured billing event is:

apify-actor-start

Price:

$0.00005 per start event

Apify determines the applicable number of start events according to its billing rules and memory allocation.

At the current 2 GB allocation, our validated run triggered two Actor Start events.

Therefore:

2 × $0.00005 = $0.00010

The Actor Start mechanism includes eligible initial compute coverage under Apify's documented PPE rules.

Customers should inspect the actual event counts for their completed runs.

19.4 Example Customer Costs

The following examples assume all videos are delivered in one run and exactly two Actor Start events apply.

Videos deliveredFreeStarterScaleBusiness
10$0.01410$0.01210$0.01010$0.00860
30$0.04210$0.03610$0.03010$0.02560
100$0.14010$0.12010$0.10010$0.08510
500$0.70010$0.60010$0.50010$0.42510
1,000$1.40010$1.20010$1.00010$0.85010

These are illustrative calculations, not guaranteed invoices.

Actual billing depends on triggered event counts, the applicable subscription tier, spending-limit behavior, and Apify's current pricing rules.

19.5 Example: 500 Videos on Starter

500 YouTube Video events
× $0.00120
= $0.60000
2 Actor Start events
× $0.00005
= $0.00010
Estimated total = $0.60010

19.6 What If Fewer Videos Are Found?

Suppose you request 500 videos but the Actor saves only 120.

The expected primary billing count is 120 video events.

For a Starter customer:

120 × $0.00120 = $0.14400

The applicable Actor Start charge is additional.

Customers are not charged for videos merely because they were requested.

19.7 Monitoring and Billing

The Actor supports persistent monitoring using onlyNewVideos: true.

When monitoring is enabled, previously seen video IDs are excluded from the output.

The primary per-video charge therefore applies only to newly saved Dataset records.

For example:

Videos examined: 100
Previously seen: 90
New videos saved: 10
Billable video events: 10

Applicable Actor Start charges are additional.

A monitoring run that finds no new videos may produce zero video events while still triggering Actor Start charges.

19.8 Empty and Partial Runs

For a run with no video Dataset records:

  • No default Dataset video-item events should be generated.
  • Applicable Actor Start events may still be charged.

For partial runs:

  • Successfully saved video records remain billable.
  • Failed source requests do not independently generate video-item events.
  • Optional metadata missing from otherwise valid video records does not remove their billable status.

Always inspect the actual run's Triggered events.

19.9 Verified Billing Test

On November 18, 2026, the monetized Actor completed a successful ten-video extraction.

MetricVerified result
Platform statusSUCCEEDED
Videos saved10
YouTube Video events10
Actor Start events2
Memory allocated2 GB
Failed source requests0
Execution durationApproximately 2 seconds

The video Dataset contained ten identifiable video records.

The primary billing event count matched the number of delivered records.

At the Starter rate:

10 × $0.00120 = $0.01200
2 × $0.00005 = $0.00010
Expected total = $0.01210

This test verifies successful-run billing event counts.

It does not independently reconcile the monetary charge against Apify's billing ledger or establish billing behavior for every failure scenario.

19.10 Metadata Availability

The verified ten-video run used:

metadataEnrichment: "none"

Its results included:

  • Video titles
  • Video IDs
  • Video URLs
  • Channel IDs
  • Video durations
  • Relative publication text
  • Thumbnail URLs
  • Extraction timestamps

The run did not provide populated channel names, view counts, descriptions, or exact publication dates.

Those fields remain optional and depend on extraction mode, enrichment, and source availability.

Customers are billed for the delivered video record, not for a guaranteed number of populated metadata fields.

19.11 Spending Limits

Apify supports maximum-cost-per-run controls.

Customers should:

  1. Set an appropriate maximum cost.
  2. Begin with a small maxResults.
  3. Keep maxPagesPerSource conservative.
  4. Use metadataEnrichment: "none" when enrichment is unnecessary.
  5. Review the completed Dataset and RUN_SUMMARY.
  6. Verify triggered billing events.

Reaching a spending limit may prevent all requested records from being delivered.

19.12 Platform Usage Costs

The configured pricing includes standard platform usage within the event charges.

Customers are not separately billed standard underlying Actor platform usage under this PPE configuration.

This does not mean the execution infrastructure has zero cost.

19.13 How to Verify Billing

After completing an Actor run:

  1. Open the run details in Apify Console.
  2. Expand Triggered events.
  3. Check the YouTube Video event count.
  4. Check the Actor Start event count.
  5. Compare the video event count with the saved Dataset records.
  6. Apply the pricing for the relevant Apify subscription tier.

The platform usage cost displayed in a run's header should not be treated as the complete customer-facing PPE charge.

19.14 Official Documentation

For current prices, always consult the public Actor listing.


20. Frequently Asked Questions

Is this an official YouTube API?

No. This is an independent public-data extraction tool and is not affiliated with or endorsed by YouTube or Google.

Do I need a YouTube Data API key?

No. The Actor uses HTTP-based extraction and does not require the official YouTube Data API.

Do I need to log in to YouTube?

No. The Actor is designed for publicly accessible information.

Can I scrape videos from a YouTube channel?

Yes. Use mode: "channelHttp" with a channel ID, handle, or supported channel URL.

Can I scrape YouTube Shorts?

Yes. Select channelTab: "shorts" in channel mode. Search results may also include Shorts.

Can I search YouTube using keywords?

Yes. Use mode: "search" and provide one or more phrases in searchQueries.

Can I extract YouTube playlist videos?

Yes, for accessible public playlist listings. Large-playlist continuation coverage has not yet been comprehensively validated.

Can I scrape multiple channels at once?

Yes. Provide multiple channel identifiers in channelIds.

Does the Actor support pagination?

Yes, where available in the supported listing response. Use maxPagesPerSource to control traversal.

Can it scrape an entire channel archive?

It can retrieve multiple pages, but full archival completeness is not guaranteed. Results depend on source availability and configured limits.

Does it return video view counts?

Where available. Search results frequently expose view counts, while channel video listings may not.

Does it return channel names?

Where available. Channel names may be absent from channel-listing responses.

Does it return exact video upload dates?

Not reliably in every mode. Relative publication text is more commonly available. RSS enrichment may provide additional date information for recent uploads.

Does it download YouTube videos or audio?

No. This is a metadata extraction Actor, not a media downloader.

Does it extract transcripts or subtitles?

No.

Does it extract comments and likes?

It does not provide comprehensive comment or engagement-detail scraping. The output schema supports optional metadata such as like counts only where actually available.

Can it monitor newly uploaded videos?

It can identify previously unseen video IDs across repeated channel-monitoring runs. This is discovery-based monitoring, not a guaranteed real-time YouTube notification system.

Can I run it automatically every day?

Yes. Use Apify Schedules or an external automation system.

Can I integrate it with Python or JavaScript?

Yes. Use the official Apify clients or the REST API.

Can I connect it to n8n or Make?

Yes, through supported Apify integrations or REST API workflows.

Can I use it with AI agents?

Yes, where the Actor is exposed to compatible agent infrastructure through Apify APIs or MCP configuration.

Why are some output fields missing?

The scraper intentionally omits unavailable properties. Different YouTube sources expose different metadata.

Why does the Output table show fewer fields than the raw JSON?

The dataset's default overview is a selected-field view. Switch to the expanded metadata view or retrieve raw dataset items through the API.

Why did a monitoring run produce no items?

The source may contain no video IDs that are new relative to saved monitoring state. Inspect RUN_SUMMARY.previouslySeen.

Is there a maximum output limit?

The public input schema supports maxResults from 1 to 1,000 per run, subject to available source content and pagination limits.

Does the Actor work on private or members-only videos?

Private, authenticated, or restricted content is not a supported guarantee.

Is performance guaranteed?

No. Network conditions, external website changes, and runtime configuration affect execution.


21. Troubleshooting

ProblemLikely causeRecommended action
No input providedSelected mode has no source entriesPopulate the appropriate input array
Channel request failedTemporary network or source-access issueRetry with a known public channel
Search returned fewer resultsAvailable listings or page limitsIncrease maxPagesPerSource cautiously
Playlist returned limited recordsRestricted source or unverified deep continuationTest another public playlist
Monitoring returned zero recordsAll discovered IDs were previously seenInspect persistent monitoring summary
Missing view countsSource does not expose themTry keyword search mode
Missing exact datesListing response lacks date informationTreat date fields as optional
Actor is slower than expectedLarger workload, latency, or enrichmentReduce limits or disable enrichment
API returns unauthorizedInvalid or missing tokenCheck the Apify token and authorization header
Overview hides metadataDataset view projectionUse expanded metadata view or raw dataset API

If a production run fails, retain its run ID, input, logs, and RUN_SUMMARY for diagnosis.


For applications requiring dependable data collection, use the following workflow:

Application / Scheduler
|
v
Validate Input
|
v
Start YouTube Scraper
|
v
Wait for Run Completion
|
v
Check Platform Run Status
|
v
Retrieve RUN_SUMMARY
|
v
Retrieve Raw Dataset Items
|
v
Validate Required Fields
|
v
Deduplicate / Normalize
|
v
Database / Analytics / AI Agent

Best Practices

  • Store the input used for each run.
  • Preserve the Apify run ID.
  • Check source-level failures.
  • Treat optional metadata as optional.
  • Use canonical channel IDs for monitoring.
  • Avoid overlapping monitoring runs for identical channels.
  • Validate video URLs and IDs before downstream use.
  • Use database uniqueness constraints for cross-run deduplication.
  • Monitor extraction success over time.
  • Test restored example input before promoting changes to production.

23. Integration Resources

ResourceLink
YouTube Scraper ActorOpen Actor
AIConsulting ProfileDeveloper Profile
Apify REST APIAPI Documentation
Python SDKApify Python Client
JavaScript SDKApify JavaScript Client
Apify DatasetsDataset Documentation
Apify SchedulesScheduling Documentation
Apify MCPMCP Server
Apify PlatformApify

24. Support & Feature Requests

For issues, feature requests, or unexpected results, use the Issues tab on the Actor's Apify Marketplace listing.

Include:

  • Selected extraction mode
  • Input JSON with secrets removed
  • Apify run ID
  • Relevant execution logs
  • Expected behavior
  • Actual behavior

Helpful reports make it easier to reproduce source-specific problems and improve reliability.


25. Responsible Use & Limitations

This Actor is designed to extract publicly accessible video-listing information.

Users are responsible for complying with applicable laws, privacy requirements, YouTube's terms, and any relevant platform usage restrictions.

The Actor:

  • Does not require an authenticated YouTube account.
  • Does not use the official YouTube Data API.
  • Does not bypass private-content access requirements.
  • Does not guarantee complete historical coverage.
  • Does not guarantee every metadata property.
  • Does not download video or audio media.
  • Does not provide transcript or comment extraction.
  • Does not guarantee uninterrupted third-party website access.

YouTube may change its site, responses, or access restrictions at any time.


26. About AIConsulting

AIConsulting develops HTTP-first web scrapers, structured-data APIs, and automation tools for developers, businesses, researchers, and AI applications.

Our Published Apify Actors

ActorPrimary purpose
Google Maps Reviews ScraperIndividual Google reviews, ratings, dates, reviewer information, photos, and owner responses
Google Maps ScraperBusiness discovery, phone numbers, websites, addresses, and location intelligence
Google Flights ScraperFlight prices, routes, schedules, and itinerary data
YouTube ScraperVideos, Shorts, channels, playlists, search, and new-video monitoring

Our Engineering Philosophy

Fast extraction. Clean JSON. Practical automation.

We focus on efficient execution, transparent pricing, developer-friendly documentation, and practical data products.


Start Extracting YouTube Data

Turn publicly accessible YouTube listings into structured data for research, content discovery, analytics, automation, and AI applications.

HTTP-only extraction. Structured video metadata. Transparent pay-per-video pricing.

Start YouTube Scraper · View Pricing · Explore AIConsulting


Related search topics: YouTube scraper, YouTube API alternative, YouTube videos scraper, YouTube Shorts scraper, YouTube channel scraper, YouTube playlist scraper, YouTube search scraper, YouTube metadata extraction, YouTube video monitoring, Apify YouTube scraper, YouTube Python API, YouTube JavaScript API, YouTube scraping automation, YouTube video discovery, n8n YouTube integration, AI agents, MCP, structured video data.

Search terms describe documented capabilities and do not imply unsupported functionality.