# 📈 YouTube Channel Analytics Scraper (`taroyamada/youtube-channel-analytics`) Actor

Scrape YouTube profiles to track subscriber metrics, total views, recent uploads, and Shorts for competitor benchmarking and content research.

- **URL**: https://apify.com/taroyamada/youtube-channel-analytics.md
- **Developed by:** [太郎 山田](https://apify.com/taroyamada) (community)
- **Categories:** Videos, SEO tools, Marketing
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## YouTube Channel Analytics API | Channel Metadata, Uploads & Shorts

Evaluate YouTube creators and automate your influencer marketing research with this robust channel analytics scraper. Marketers and agencies use this tool to gather public channel intelligence at scale, bypassing the need for complex API keys or OAuth permissions. By tracking multiple profiles simultaneously, you can compile a comprehensive dataset of industry leaders or potential brand ambassadors.

Instead of manually clicking through websites or YouTube profiles to verify subscriber counts, you can schedule this tool to run weekly or daily. It monitors a list of channel URLs and tracks essential metrics like public subscriber counts, overall views, canonical URLs, and rich about-page descriptions. Additionally, the scraper fetches recent long-form uploads and Shorts, allowing you to gauge a creator's publishing cadence, content velocity, and audience engagement strategies.

Whether you are building a database of leads, vetting potential sponsorships, or analyzing competitor channels, this tool provides the structured data you need. Extract contact details embedded in channel bios or track how often a creator posts sponsored content. The scraped results provide deep insights into YouTube pages, giving you the exact metrics needed to make data-driven decisions for your next influencer outreach campaign or market research initiative.

### Store Quickstart

- Start with 1–3 channel URLs or `@handles` and keep `videoLimit` at 8 or below for the first run.
- Leave `includeShorts` on if you care about creator cadence; turn it off when long-form uploads are enough.
- Use dataset delivery first so you can inspect channel-level warnings and resolved content counts.
- After the first useful run, move to the recurring cadence-watch template, then use the webhook handoff template for new-upload alerts.

### What it does

- Accepts YouTube channel URLs (`@handle`, `/channel/`, `/user/`, `/c/`) and bare `@handles`
- Normalizes channel metadata: channel ID, title, canonical URL, subscriber text/count when public, avatar/banner, description/about fields, links, and total public views when exposed
- Resolves recent uploads from the public `videos` tab and optional Shorts from the public `shorts` tab
- Enriches recent items from watch pages with view text, duration, thumbnail, publish/upload dates, and tags/keywords when public
- Produces channel-level rollups such as total resolved items, cadence hints from recent public labels, and explicit availability warnings

### What it cannot do

Because this actor uses public pages only, it cannot provide private YouTube Studio analytics such as watch time, revenue, CTR, impressions, audience demographics, traffic sources, or hidden subscriber counts.

### Use Cases

| Who | Why |
|---|---|
| **Creator teams** | Benchmark publishing cadence, upload mix, and Shorts usage |
| **Brand marketers** | Vet partner channels and content fit without API quota setup |
| **Analysts** | Track recent uploads, tags, and view text at scale |
| **Ecommerce teams** | Pair channel activity with Shopify or app-store signals |

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `channelUrls` | string[] | required | YouTube channel URLs or bare `@handles` |
| `videoLimit` | integer | `8` | Max recent uploads and, when enabled, Shorts to resolve per channel |
| `includeShorts` | boolean | `true` | Also collect the public Shorts tab |
| `timeoutMs` | integer | `20000` | HTTP timeout per public page request |
| `delivery` | string | `"dataset"` | `dataset` or `webhook` |
| `webhookUrl` | string | — | Optional webhook target when `delivery=webhook` |
| `dryRun` | boolean | `false` | Skip dataset/webhook delivery |

### Output shape

```jsonc
{
  "meta": {
    "generatedAt": "2025-01-01T00:00:00.000Z",
    "implementationStatus": "live",
    "totalSources": 1,
    "totals": {
      "totalResolvedChannels": 1,
      "totalResolvedUploads": 8,
      "totalResolvedShorts": 4,
      "totalResolvedContent": 12,
      "warningCount": 1
    },
    "limits": {
      "recentItemsPerSection": 8,
      "includeShorts": true,
      "timeoutMs": 20000
    },
    "notes": ["..."]
  },
  "channels": [
    {
      "inputUrl": "https://www.youtube.com/@Google",
      "status": "ok",
      "channel": {
        "channelId": "UC...",
        "title": "Google",
        "handle": "@Google",
        "canonicalUrl": "https://www.youtube.com/@Google",
        "subscriberCountText": "14.1M subscribers",
        "totalViewCountText": "6,332,598,834 views"
      },
      "recentUploads": [{ "videoId": "...", "title": "...", "viewCountText": "...", "durationText": "...", "keywords": ["..."] }],
      "recentShorts": [{ "videoId": "...", "isShort": true }],
      "rollups": {
        "totalResolvedVideos": 12,
        "recentPostingCadenceHint": "Roughly weekly posting inferred from recent public labels."
      },
      "availability": {
        "videosTab": "ok",
        "shortsTab": "ok",
        "aboutTab": "ok"
      },
      "warnings": []
    }
  ]
}
````

### Status values

- `ok`: all requested public surfaces resolved cleanly
- `partial`: some requested surfaces or item enrichments were unavailable, but useful data was collected
- `missing`: YouTube returned a missing page
- `blocked`: YouTube returned a challenge or block page
- `invalid`: the input was not a supported channel URL or handle
- `error`: no usable public data could be resolved

### Local run

```bash
npm start
npm test
```

Use `input.json` for local runs.

### Related Actors

Pair this actor with other flagship intelligence APIs in the same portfolio:

- [Google Play Intelligence API](https://apify.com/taroyamada/google-play-intelligence) — connect app-market performance and review signals to channel activity.
- [Apple App Store Intelligence API](https://apify.com/taroyamada/apple-app-store-intelligence) — mirror the same workflow for iOS apps and public review feeds.
- [Shopify Store Intelligence API](https://apify.com/taroyamada/shopify-store-intelligence) — pair content cadence with public storefront and catalog changes.
- [Trustpilot Review Intelligence API](https://apify.com/taroyamada/trustpilot-enterprise-review-aggregator) — add brand-reputation context alongside channel output.

### Pricing & Cost Control

Apify Store pricing is usage-based, so total cost mainly follows how many `channelUrls` you analyze and how many recent items you resolve. Check the Store pricing card for the current per-event rates.

- Start with a short `channelUrls` list.
- Keep `videoLimit` low while testing downstream workflows.
- Disable `includeShorts` when you only need long-form uploads.
- Use `dryRun: true` before larger channel batches or webhook delivery.

### ⭐ Was this helpful?

If this actor saved you time, please [**leave a ★ rating**](https://apify.com/taroyamada/youtube-channel-analytics/reviews) on Apify Store. It takes 10 seconds, helps other developers discover it, and keeps updates free.

Bug report or feature request? Open an issue on the [Issues tab](https://apify.com/taroyamada/youtube-channel-analytics/issues) of this actor.

# Actor input Schema

## `channelUrls` (type: `array`):

One or more YouTube channel URLs or bare @handles.

## `videoLimit` (type: `integer`):

Maximum recent uploads and, when enabled, recent Shorts to resolve per channel.

## `includeShorts` (type: `boolean`):

Also resolve public Shorts from the channel Shorts tab.

## `timeoutMs` (type: `integer`):

HTTP timeout per public page request in milliseconds.

## `delivery` (type: `string`):

Where to send results: dataset or webhook.

## `webhookUrl` (type: `string`):

Webhook URL to POST results to when delivery=webhook.

## `dryRun` (type: `boolean`):

Run without saving rows to the dataset.

## Actor input object example

```json
{
  "channelUrls": [
    "https://www.youtube.com/@Google",
    "@YouTubeCreators"
  ],
  "videoLimit": 8,
  "includeShorts": true,
  "timeoutMs": 20000,
  "delivery": "dataset",
  "dryRun": false
}
```

# 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 = {
    "channelUrls": [
        "https://www.youtube.com/@Google",
        "@YouTubeCreators"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("taroyamada/youtube-channel-analytics").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 = { "channelUrls": [
        "https://www.youtube.com/@Google",
        "@YouTubeCreators",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("taroyamada/youtube-channel-analytics").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "channelUrls": [
    "https://www.youtube.com/@Google",
    "@YouTubeCreators"
  ]
}' |
apify call taroyamada/youtube-channel-analytics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=taroyamada/youtube-channel-analytics",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "📈 YouTube Channel Analytics Scraper",
        "description": "Scrape YouTube profiles to track subscriber metrics, total views, recent uploads, and Shorts for competitor benchmarking and content research.",
        "version": "0.1",
        "x-build-id": "uIpKQWR4qjFdQVVDr"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/taroyamada~youtube-channel-analytics/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-taroyamada-youtube-channel-analytics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/taroyamada~youtube-channel-analytics/runs": {
            "post": {
                "operationId": "runs-sync-taroyamada-youtube-channel-analytics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/taroyamada~youtube-channel-analytics/run-sync": {
            "post": {
                "operationId": "run-sync-taroyamada-youtube-channel-analytics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "channelUrls"
                ],
                "properties": {
                    "channelUrls": {
                        "title": "Channel URLs or @handles",
                        "type": "array",
                        "description": "One or more YouTube channel URLs or bare @handles.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "videoLimit": {
                        "title": "Recent items per section",
                        "minimum": 1,
                        "maximum": 25,
                        "type": "integer",
                        "description": "Maximum recent uploads and, when enabled, recent Shorts to resolve per channel.",
                        "default": 8
                    },
                    "includeShorts": {
                        "title": "Include Shorts",
                        "type": "boolean",
                        "description": "Also resolve public Shorts from the channel Shorts tab.",
                        "default": true
                    },
                    "timeoutMs": {
                        "title": "Timeout (ms)",
                        "minimum": 5000,
                        "maximum": 60000,
                        "type": "integer",
                        "description": "HTTP timeout per public page request in milliseconds.",
                        "default": 20000
                    },
                    "delivery": {
                        "title": "Delivery",
                        "enum": [
                            "dataset",
                            "webhook"
                        ],
                        "type": "string",
                        "description": "Where to send results: dataset or webhook.",
                        "default": "dataset"
                    },
                    "webhookUrl": {
                        "title": "Webhook URL",
                        "type": "string",
                        "description": "Webhook URL to POST results to when delivery=webhook."
                    },
                    "dryRun": {
                        "title": "Dry Run",
                        "type": "boolean",
                        "description": "Run without saving rows to the dataset.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
