YouTube Channel Data API: Export Videos With Your API Key avatar

YouTube Channel Data API: Export Videos With Your API Key

Pricing

$0.50 / 1,000 result rows

Go to Apify Store
YouTube Channel Data API: Export Videos With Your API Key

YouTube Channel Data API: Export Videos With Your API Key

Export a YouTube channel's videos, likely Shorts and channel stats to JSON, CSV or Excel through the official YouTube Data API v3. You bring your own free API key and your own quota. Sort by latest or popular, filter by date.

Pricing

$0.50 / 1,000 result rows

Rating

0.0

(0)

Developer

Atesen Software

Atesen Software

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Before you start: this Actor needs your own YouTube Data API v3 key. It has not yet been tested end to end with a real key (the keyless and invalid-key paths and the data parsing are covered by tests). If you hit an error, tell us and we fix it the same day.

This Actor exports the videos, likely Shorts and public stats of any YouTube channel to JSON, CSV or Excel through the official YouTube Data API v3, with exact dates, view counts, likes, comment counts, tags and durations. It needs your own free YouTube Data API key: paste the key and a channel @handle into the input and click Start. Google counts the requests against your own quota, and no pages are scraped.

Use it when you want to export YouTube channel videos for an influencer shortlist, a competitor study, a content calendar, a spreadsheet or a database, and you prefer a documented API over scraping.

Data source and permission

  • Source: the official YouTube Data API v3 (channels.list, playlistItems.list, videos.list). No page scraping, no browser, no proxy, no login.
  • Your key, your quota: every request is made with the API key you enter, so Google counts it against your own Google Cloud project. The free quota is 10,000 units per day.
  • Your responsibility: by using your key you accept the YouTube API Services Terms of Service and the YouTube Developer Policies. They also cover how long you may keep API data, so read them before you store data for the long term.
  • Key safety: Apify stores the key encrypted. The Actor sends it only to googleapis.com in a request header. It is never written to the log, the dataset or the run summary. Create a key just for this use, restrict it to YouTube Data API v3 (no application restriction, Apify has no fixed IP) and delete it in Google Cloud Console when you no longer need it.
  • No personal data: rows hold public channel and video data only. No commenter names, no emails.
  • Not affiliated: built by Atesen Software. Not affiliated with, endorsed by or connected to Google or YouTube. YouTube is a trademark of Google LLC.

How to get an API key (5 minutes, free)

  1. Open Google Cloud Console and create or pick a project.
  2. Go to APIs and Services > Library, find YouTube Data API v3 and click Enable.
  3. Go to APIs and Services > Credentials > Create credentials > API key.
  4. Open the key, under API restrictions choose Restrict key and tick only YouTube Data API v3. Leave application restrictions off.
  5. Paste the key into the YouTube Data API key field of this Actor.

Without a key the run does not fail: it ends with one free status row that says youtubeApiKey is required and repeats these steps.

Quick start

  1. Paste your key, list your channels (one per line) and click Start. The prefilled input reads the 10 latest videos of one channel.
  2. Open the Output tab. Rows with "type": "channel" are channel stats, "type": "video" are videos, "type": "status" are free notes (for example a channel that was not found).
  3. Download the dataset as JSON, CSV or Excel.

Input

FieldWhat it does
youtubeApiKeyYour YouTube Data API v3 key (secret).
channels@handle, https://www.youtube.com/@name, /channel/UC... or a channel ID that starts with UC. Older /c/name and /user/name links work when the name matches a handle or a legacy user name.
contentTypesvideos (uploads longer than 60 seconds, default) and/or shorts (60 seconds or less).
maxVideosPerChannelRows per channel across the selected types. Default 50. 0 means as many as one run allows (10,000).
sortBylatest (default) or popular (most views among up to 5,000 recent uploads).
onlyVideosNewerThanOptional date, for example 2026-01-31. Reading stops when uploads get older.
videoDetailsDuration, view, like and comment counts, tags and the Shorts estimate. On by default.
includeChannelInfoOne channel row per channel. On by default.
maxConcurrencyChannels read at the same time, 1 to 3. All requests together stay under 5 per second.

Example input:

{
"youtubeApiKey": "YOUR_API_KEY",
"channels": ["@Apify", "@MrBeast"],
"contentTypes": ["videos"],
"maxVideosPerChannel": 20,
"sortBy": "latest",
"videoDetails": true,
"includeChannelInfo": true
}

Output

Shape of a channel row (values are illustrative; YouTube rounds public subscriber counts to three significant digits and some channels hide them, then subscriberCount is null):

{
"type": "channel",
"channelId": "UCTgwcoeGGKmZ3zzCXN2qo_A",
"title": "Apify",
"handle": "@apify",
"description": "About text of the channel",
"subscriberCount": 40600,
"videoCount": 307,
"viewCount": 2662614,
"country": "CZ",
"publishedAt": "2017-01-04T10:00:00Z",
"joinedDate": "2017-01-04",
"keywords": "web scraping",
"thumbnails": { "default": "https://...", "medium": "https://...", "high": "https://..." },
"url": "https://www.youtube.com/@apify",
"input": "@Apify"
}

Shape of a video row:

{
"type": "video",
"videoId": "e6My6S_QFJk",
"title": "Video title",
"description": "First 500 characters of the description",
"publishedAt": "2026-10-22T15:59:46Z",
"duration": "5:02",
"durationSec": 302,
"viewCount": 2100,
"likeCount": 50,
"commentCount": 7,
"tags": ["web scraping"],
"url": "https://www.youtube.com/watch?v=e6My6S_QFJk",
"thumbnail": "https://i.ytimg.com/vi/e6My6S_QFJk/maxresdefault.jpg",
"isShortLikely": false,
"contentType": "videos",
"channelId": "UCTgwcoeGGKmZ3zzCXN2qo_A",
"channelName": "Apify",
"channelUrl": "https://www.youtube.com/@apify"
}

likeCount or commentCount is null when the creator hides likes or turns comments off.

What it costs: Apify and your Google quota

Apify side: pay per event. One result event is charged for each saved channel row and each saved video row. Status rows are free. A run without a key, with a wrong key or with an exhausted quota charges nothing. Current prices are on the Pricing tab. Set Maximum cost per run in the run options and the Actor stops at that limit.

Google side: your own quota, free up to 10,000 units per day (resets at midnight Pacific Time). This Actor only uses calls that cost 1 unit each. It never uses search.list, which costs 100 units per call.

CallUnits
Look up one channel (channels.list)1
Read 50 uploads (playlistItems.list, one page)1
Details for 50 videos (videos.list)1

Examples:

  • 1 channel, 50 latest videos with details: 1 + 1 + 1 = 3 units.
  • 1 channel, 500 latest videos: 1 + 10 + 10 = 21 units.
  • 100 channels with 50 latest videos each: 300 units, so a free key covers about 3,000 such channels per day.
  • popular on one channel: it reads up to ten times the rows you ask for (at least 500, at most 5,000 uploads), so 21 to 201 units per channel.
  • Shorts only on a channel with 3,000 uploads: every upload is checked for its duration, 1 + 60 + 60 = 121 units.

The run summary (RUN_SUMMARY in the key-value store) shows how many units the run used.

What it does and what it does not

  • Reads the uploads playlist of each channel with 50 videos per request. The Actor keeps at most 5 requests per second, so even a channel with hundreds of videos takes seconds of API time.
  • Shorts are an estimate. The Data API has no Shorts flag. A video of 60 seconds or less is marked isShortLikely: true. YouTube now allows Shorts of up to 3 minutes, so a longer Short shows up as a video, and a normal clip under 60 seconds shows up as a Short.
  • Live streams are not a content type. Live and upcoming broadcasts are skipped. A finished live stream is a normal video.
  • Private and deleted videos are not returned by the API and are skipped.
  • Does not collect comments, transcripts, search results, playlists other than uploads, or analytics that need the channel owner's login.
  • Descriptions are cut to 500 characters (channel descriptions to 1,000).
  • A quota error, a wrong key or a blocked key stops the run at once with a clear status row. Rows saved before that stay in the dataset. Network errors and 5xx answers are retried a few times. Quota and key errors are never retried.

Differences from the older YouTube Channel Scraper Actor

The older Actor (youtube-channel-scraper) reads YouTube pages without a key. This one uses the official API and needs your key.

Older ActorThis Actor
SourceYouTube pagesOfficial Data API v3
Keynoneyour own key
Dates and countsrelative text unless details are onexact ISO dates and numbers
Shortstab based flag isShortisShortLikely, estimated from duration
Live streams tab, sort oldestyesno (a free input_notice row tells you)
Channel links, verified flag, business email flagyesnot in the API, removed
Row types and main field namestype, videoId, title, viewCount, publishedAt, duration, channelId...kept; description replaces descriptionSnippet, tags replaces keywords and hashtags on videos
Limitnone, but breaks when YouTube changes pagesyour Google quota (10,000 units per day free)

Use via API, n8n, Make and Zapier

Put the Apify token in the Authorization header, never in a URL:

curl -X POST "https://api.apify.com/v2/acts/atesen-software~youtube-channel-data-api/run-sync-get-dataset-items?timeout=120" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "youtubeApiKey": "YOUR_YOUTUBE_API_KEY", "channels": ["@Apify"], "maxVideosPerChannel": 50 }'

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('atesen-software/youtube-channel-data-api').call({ channels: ["@Apify"], contentTypes: ["videos"], maxVideosPerChannel: 10, sortBy: "latest" });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

In n8n use the Apify node or an HTTP Request node, in Make the Apify modules, in Zapier the Apify app. Pass the YouTube key as the youtubeApiKey input field.

Use with AI agents (MCP)

Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the Apify MCP server. Load only this Actor with:

https://mcp.apify.com?tools=atesen-software/youtube-channel-data-api

Client config (sign in with Apify OAuth when the browser opens, or add an Authorization: Bearer <APIFY_TOKEN> header instead):

{
"mcpServers": {
"apify": { "url": "https://mcp.apify.com?tools=atesen-software/youtube-channel-data-api" }
}
}

Then ask in plain words, for example: "List the 10 latest videos of @Apify with views, likes and duration." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.

FAQ

Why do I need my own API key? The Actor calls the official API. Google counts each request against the project that owns the key, so you stay in control of the quota and can revoke the key at any time.

Is there a free way to get a key? Yes. Creating a key in Google Cloud Console is free and includes 10,000 units per day.

I get quota_exceeded. Your project used its daily units. Wait for the reset at midnight Pacific Time or ask Google for more quota in Google Cloud Console. Rows saved before the stop are in the dataset.

I get api_key_restricted. The key is limited to an IP address, a website or other APIs. Set API restrictions to YouTube Data API v3 only and remove application restrictions.

I get api_not_enabled. Enable YouTube Data API v3 for the project of the key in APIs and Services > Library.

Why fewer rows than maxVideosPerChannel? The channel has fewer matching uploads, or the date filter or the videos/shorts filter removed some. A free no_videos status row says so.

Can I get only new uploads? Save the input as a task with onlyVideosNewerThan set to a recent date and add a schedule in Apify Console.