YouTube Channel Stats & Video Performance avatar

YouTube Channel Stats & Video Performance

Pricing

$4.00 / 1,000 channel founds

Go to Apify Store
YouTube Channel Stats & Video Performance

YouTube Channel Stats & Video Performance

Channel statistics via the official YouTube Data API v3: subscriber count, video count, total views, country, creation date, plus view/like/comment performance of recent videos and the engagement rate. Bring your own free API key (BYOK), ~3 quota units per channel.

Pricing

$4.00 / 1,000 channel founds

Rating

0.0

(0)

Developer

Korhan Coşan Ergün

Korhan Coşan Ergün

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

Channel statistics and recent-video performance via the official YouTube Data API v3.

Bring your own API key (BYOK)

The youtubeApiKey input is required and is stored as a secret. To get one for free:

  1. console.cloud.google.com → new project
  2. APIs & Services → Library → "YouTube Data API v3" → Enable
  3. APIs & Services → Credentials → Create credentials → API key

You get a free quota of 10,000 units per day. This actor picks the quota-friendly endpoints:

CallQuotaUsed for
channels.list1Channel statistics
playlistItems.list1Recent videos from the channel's "uploads" playlist
videos.list1Statistics for 50 videos in a single call
search.list100Only as a last resort when a handle/ID cannot be resolved at all

A channel + its last 5 videos ≈ 3 units → the free quota is enough for ~3,000 channels per day.

Input

{
"youtubeApiKey": "***",
"channels": ["https://www.youtube.com/@GoogleDevelopers", "UC_x5XG1OV2P6uZZ5FSM9Ttw"],
"includeRecentVideos": true,
"recentVideoCount": 5
}

Accepted channel formats: UC... ID, @handle, youtube.com/@handle, youtube.com/channel/UC..., /c/..., /user/...

Output fields

FieldDescription
channel_id, channel_title, custom_url, handle_urlIdentity and links
subscriber_count, hidden_subscriber_countSubscriber count (with a flag if the channel hides it)
video_count, view_count, avg_views_per_videoTotal videos/views and the lifetime average
published_at, country, description, keywords, topic_categoriesChannel profile
uploads_playlist_id, thumbnail_url, privacy_statusTechnical fields
recent_videos[]{video_id, title, link, published_at, view_count, like_count, comment_count, duration_seconds, thumbnail_url}
recent_video_count, recent_avg_viewsAverage views of the recent videos
recent_engagement_raterecent_avg_views / subscriber_count * 100 (%) — a channel health indicator
errorError for this channel (if any), otherwise null

Pricing

Pay-per-event: channel-found → $0.004. You are only charged when a channel is actually found.

Local test

bash ../_common/vendor_common.sh .
APIFY_LOCAL=1 YOUTUBE_API_KEY=*** python3 main.py

Without a key (code-path verification only):

$python3 test_fixtures.py

test_fixtures.py starts a local HTTP server that imitates the API. The response bodies are written to match the field structure in Google's official API reference: structurally correct, but the data is synthetic. It verifies the parsing/normalization/dataset-writing paths, not the live API. sample_output.json is also derived from that fixture run (an example structure, not live data).