# YouTube Channel · Subscribers, Views & Videos (`corent1robert/youtube-channel-vitals-scraper`) Actor

Paste YouTube channel URLs or @handles — get lifetime views, subscribers, and video count in one row per channel. Schedule daily to track growth. Public About data only. No login, no API key.

- **URL**: https://apify.com/corent1robert/youtube-channel-vitals-scraper.md
- **Developed by:** [Corentin Robert](https://apify.com/corent1robert) (community)
- **Categories:** Videos, Social media, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 channel snapshots

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 · Subscribers, Views & Videos

Paste public YouTube channel URLs or @handles. Get **lifetime views, subscribers, and video count** — **one row per channel**, ready to schedule every day.

**No login. No API key. Public About data only.** This is **not** a video catalog.

### Who is this for?

| You are… | Typical goal | Suggested setup |
|----------|--------------|-----------------|
| Creator / media brand | See if total views and subs move week to week | One @handle, Schedule daily |
| Agency | Report growth for several clients | List of channel URLs, Schedule weekly |
| Competitor research | Snapshot rival channels without Studio access | 2–10 handles, same schedule |
| Ops / data | Append history into Sheets or a warehouse | Named dataset or webhook after each run |

**What you get by default** — `viewCount`, `subscriberCount`, `videoCount`, `scrapedAt`, plus channel URL, id, handle, and title so each row is identifiable.

**What this Actor does not do** — it does **not** list videos or per-video views. For a full upload export, use **[YouTube Channel · Uploads & Metadata](https://apify.com/corent1robert/youtube-channel-videos-scraper)**.

### Ready-made examples (published tasks)

| Example | Best for |
|---------|----------|
| [Daily views for one YouTube channel](https://apify.com/corent1robert/youtube-channel-vitals-scraper/examples/daily-youtube-channel-views) | One creator — schedule daily |
| [Competitor YouTube subscriber snapshot](https://apify.com/corent1robert/youtube-channel-vitals-scraper/examples/competitor-youtube-subscriber-snapshot) | Side-by-side rival channels |
| [Several YouTube handles in one run](https://apify.com/corent1robert/youtube-channel-vitals-scraper/examples/several-youtube-handles-snapshot) | Small watchlist |
| [Agency weekly YouTube channel vitals](https://apify.com/corent1robert/youtube-channel-vitals-scraper/examples/agency-weekly-youtube-vitals) | Recurring client reporting |

### Quick start

1. Open the Actor and paste a channel URL (e.g. `https://www.youtube.com/@Logementatypique`) or `@handle`
2. Click **Start** — one dataset row appears with views, subscribers, videos
3. Open **Schedules**, run daily, keep the same task so history accumulates in exports / integrations

Each Apify run has its own default dataset. For a growth curve, send results to **Google Sheets**, a **named dataset**, or a webhook after each run.

***

### What you get

| Field | Description |
|-------|-------------|
| `viewCount` | Lifetime views from the public About panel (the figure behind **More** on the channel) |
| `subscriberCount` | Public subscriber count (`null` if hidden) |
| `videoCount` | Public video count |
| `scrapedAt` | UTC timestamp of this snapshot |
| `channelUrl` / `handle` / `channelId` / `channelTitle` | Channel identity |

### Input

| Field | What it does |
|-------|----------------|
| Channel URLs | One public URL or @handle per line. **Free plan: 20 / run.** Paid plans follow your run budget. |

```json
{
  "channelUrls": [
    "https://www.youtube.com/@Logementatypique"
  ]
}
```

### Output sample

```json
{
  "channelUrl": "https://www.youtube.com/@Logementatypique",
  "input": "https://www.youtube.com/@Logementatypique",
  "channelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
  "handle": "@Logementatypique",
  "channelTitle": "Logement Atypique",
  "viewCount": 43124,
  "subscriberCount": 83,
  "videoCount": 256,
  "scrapedAt": "2026-09-04T05:00:00.000Z"
}
```

***

### How much does it cost to scrape YouTube channel stats?

HTTP-only (no browser). Typical run: one channel in a few seconds.

| Scenario | Approx. cost |
|----------|----------------|
| 1 channel (daily check) | well under $0.01 |
| 20 channels (Free plan max) | a few cents |
| 200 channels (paid) | compute stays low; billed per snapshot row |

Exact PPE is on the Actor **Pricing** tab (`Actor start` + one event per dataset row).

### Is it legal to scrape YouTube channel stats?

This Actor only reads **public** About-panel figures (views, subscribers, video count) that anyone can open in a browser without signing in. It does not access YouTube Studio or private analytics. You are responsible for complying with YouTube’s terms and applicable law (including GDPR if you store personal data).

### How to use (schedule)

1. Save a **Task** with your channel list
2. Create a **Schedule** (daily 07:00 is a common pattern)
3. Export or pipe each run’s dataset into Sheets / BigQuery / your CRM

### Local development

```bash
npm install
apify run
```

Input lives in `storage/key_value_stores/default/INPUT.json`.

### Also available

**[YouTube Channel · Uploads & Metadata](https://apify.com/corent1robert/youtube-channel-videos-scraper)** — one row per video (titles, IDs, dates). Use when you need the catalog, not the About totals.

### Support

Contact <corentin@outreacher.fr> if you need a custom scraper or tailored automation.

# Actor input Schema

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

Paste one or more public channel URLs or @handles — one per line. Each channel becomes one dataset row with views, subscribers, and video count.

**Free plan:** 20 channels per run.

## Actor input object example

```json
{
  "channelUrls": [
    "https://www.youtube.com/@Logementatypique"
  ]
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per channel: views, subscribers, video count, timestamp.

## `runLog` (type: `string`):

Progress log for this run.

# 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/@Logementatypique"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("corent1robert/youtube-channel-vitals-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "channelUrls": ["https://www.youtube.com/@Logementatypique"] }

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

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

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

```

## CLI example

```bash
echo '{
  "channelUrls": [
    "https://www.youtube.com/@Logementatypique"
  ]
}' |
apify call corent1robert/youtube-channel-vitals-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corent1robert/youtube-channel-vitals-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PDiwzdjkF9N5Cx2Vd/builds/Z3R86MmaXSjjzjUK7/openapi.json
