# YouTube Channel Statistics Scraper (`googleapi/youtube-channel-statistics-scraper`) Actor

Extract source-backed public YouTube channel statistics from bounded About pages using direct public HTTP.

- **URL**: https://apify.com/googleapi/youtube-channel-statistics-scraper.md
- **Developed by:** [Google API](https://apify.com/googleapi) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What this Actor does

YouTube Channel Statistics Scraper collects public channel profile details and the statistics shown on a channel's About page. It keeps the displayed count labels alongside normalized values so rounded counts remain clear.

### Input

Provide one or more public channel handles or channel URLs. `maxItems` caps the number of channel rows. Set `deduplicate` to `false` if you want repeated channel references kept. Use `includeMedia` and `includeLinks` to control public images and external links.

```json
{"channelHandles":["Google","YouTube"],"maxItems":2,"includeMedia":true,"includeLinks":true}
```

```json
{"channelUrls":["https://www.youtube.com/@Google","https://www.youtube.com/@YouTube"],"maxItems":2}
```

`startUrls` is also accepted for channel URLs. `deduplicate` is enabled by default, `locale` sets the page language preference, and `page` and `maxPages` are fixed at `1` because the Actor reads one About page per channel.

### Dataset output

Each record contains `channelId`, `channelName`, `handle`, `channelUrl`, `aboutUrl`, public description, country and join-date text, verification status, subscriber/video/view totals, channel images, external About links, and available channel tabs.

Each count includes its visible text. Abbreviated labels such as `1.25M subscribers` are marked approximate, and a join date is included only when explicitly shown.

```json
{
  "channelId": "UCexample123",
  "channelName": "Example Creator",
  "handle": "@ExampleCreator",
  "channelUrl": "https://www.youtube.com/@ExampleCreator",
  "subscriberCount": 1250000,
  "subscriberCountText": "1.25M subscribers",
  "subscriberCountIsApproximate": true,
  "videoCount": 384,
  "videoCountText": "384 videos",
  "totalViewsText": "182,000,000 views",
  "isVerified": true,
  "channelLinks": [
    {"title":"Creator website","destinationUrl":"https://example.com/creator","domain":"example.com","linkType":"website"}
  ],
  "channelTabs": ["Home", "Videos", "Shorts"]
}
```

Optional fields are absent when YouTube does not expose them. Dataset results can be downloaded as JSON, CSV, Excel, or another format supported by Apify. The run page provides result totals and source status.

### Cost, coverage, and responsible use

Check the Actor's Pricing tab for current Actor and Apify platform charges. Results reflect public channel information at run time and may vary by channel or locale. This Actor is independent of YouTube and Google. Follow YouTube's terms and applicable privacy laws when using the data.

# Changelog

This Actor's version history is a separate document: https://apify.com/googleapi/youtube-channel-statistics-scraper/changelog.md

# Actor input Schema

## `channelUrl` (type: `string`):

Public HTTPS YouTube channel URL or @handle.

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

Ordered public HTTPS channel URLs or @handles.

## `channelHandles` (type: `array`):

Public channel handles with or without @.

## `startUrls` (type: `array`):

Object-form alias for public YouTube channel URLs.

## `sourceUrls` (type: `array`):

Compatibility alias for public YouTube channel URLs.

## `urls` (type: `array`):

Compatibility alias for an ordered list of public YouTube channel URLs or @handles.

## `url` (type: `string`):

Compatibility alias for one public YouTube channel URL.

## `maxItems` (type: `integer`):

Global maximum number of normal channel statistics rows. Default: 25.

## `deduplicate` (type: `boolean`):

Skip repeated public channel IDs across the input sources.

## `includeMedia` (type: `boolean`):

Include publicly exposed avatar and banner URLs.

## `requestDelayMs` (type: `integer`):

Delay between ordered public channel About requests.

## `maxConcurrency` (type: `integer`):

Requests are intentionally ordered; only 1 is accepted.

## `maxRequestRetries` (type: `integer`):

Finite retries for transient public requests.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each public channel About request.

## `requestTimeoutMs` (type: `integer`):

Compatibility alias for requestTimeoutSecs.

## `maxResponseBytes` (type: `integer`):

Maximum public HTML bytes retained.

## `userAgent` (type: `string`):

Optional ordinary browser user agent; no stealth or fingerprint spoofing is used.

## `locale` (type: `string`):

Accept-Language value for public requests.

## `proxyConfiguration` (type: `object`):

Validated for compatibility; direct extraction does not route through a proxy.

## `includeLinks` (type: `boolean`):

Include structured public external links presented in the channel About data.

## `page` (type: `integer`):

This Actor reads one About page per channel; only page 1 is supported.

## `maxPages` (type: `integer`):

One About page is read per channel; maxPages is fixed at 1.

## Actor input object example

```json
{
  "maxItems": 25,
  "deduplicate": true,
  "includeMedia": true,
  "requestDelayMs": 0,
  "maxConcurrency": 1,
  "maxRequestRetries": 1,
  "requestTimeoutSecs": 30,
  "maxResponseBytes": 5000000,
  "locale": "en-US",
  "includeLinks": true,
  "page": 1,
  "maxPages": 1
}
```

# Actor output Schema

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

No description

## `outputMetrics` (type: `string`):

No description

## `runHealth` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("googleapi/youtube-channel-statistics-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("googleapi/youtube-channel-statistics-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 '{}' |
apify call googleapi/youtube-channel-statistics-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,googleapi/youtube-channel-statistics-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/fCsfV9LQgy45LOQVj/builds/VlhragsaTSvp7V0zt/openapi.json
