# YouTube Channel Profiles & Stats Scraper (`pellucid_bird/youtube-channel-profile-stats-lens`) Actor

Your go-to tool for building YouTube creator directories. Supply handles, channel URLs or IDs and export bios, links, joined dates, available view and video totals, and clearly labeled subscriber estimates to JSON, CSV or Excel.

- **URL**: https://apify.com/pellucid_bird/youtube-channel-profile-stats-lens.md
- **Developed by:** [O M](https://apify.com/pellucid_bird) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.09 / 1,000 profile saveds

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/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

### YouTube Channel Profiles & Stats Scraper

Build a creator directory from the YouTube channels you already know. Paste handles, channel URLs or IDs to get one deduplicated profile per channel, ready for JSON, CSV, Excel or an API workflow.

Collect biographies, public links, available view and video totals, country and joined date. Subscriber counts stay clearly labeled as **estimates**; missing fields stay null. Each profile includes field provenance and a collection timestamp.

Use it to:

- Enrich a creator shortlist with channel details and public links.
- Compare channel size using the precision YouTube actually exposes.
- Build dated snapshots for your own channel research or reporting.

### Quick start

1. Open the Input tab and add known channels, or paste this JSON.
2. Start the run and open its Dataset for the profiles.
3. Check the `OUTPUT` record in the key-value store for skipped or incomplete inputs.

```json
{
  "channels": [
    "@NASA",
    "https://www.youtube.com/@mkbhd",
    "UCBR8-60-B28hp2BmDPdntcQ"
  ],
  "maxItems": 50,
  "requestTimeoutSecs": 15,
  "maxRetries": 0,
  "maxEstimatedCostUsd": 1
}
```

Use 1–500 inputs. Accepted handle identifiers contain 1–30 Unicode letters, combining marks, numbers, periods, middle dots, underscores or hyphens and are normalized to NFC. This bounded input grammar is not a claim that an identifier exists or meets current handle-creation rules; YouTube resolution establishes its channel identity. Canonical HTTPS `youtube.com/@handle`, `/channel/UC…`, `/c/name` and `/user/name` URLs are accepted, including an optional `/about` suffix. Legacy aliases are resolved to a channel ID before profile identity is validated. URLs must have no query string or fragment. Handle casing and equivalent canonical URLs are deduplicated before collection; channel IDs prevent duplicate output when a handle and ID identify the same channel.

This Actor reads profiles for channels you already know. Search queries, video lists, comments, captions, and login-only data are outside its scope. No YouTube account, cookie or API key is required.

### Pricing

The Actor fee is **$0.09 per 1,000 saved profiles + $0.008 per run start**, with platform resources during the run included. One successful, unique profile is one result. Failed or missing inputs do not create result events; a startup event can still apply when a run returns zero profiles or has invalid input. The active Store Pricing tab is authoritative.

| Saved profiles in one run | Actor fee |
| ------------------------- | --------- |
| 1                         | $0.00809  |
| 20                        | $0.00980  |
| 60                        | $0.01340  |
| 500                       | $0.05300  |

Batch known channels into one run to spread the startup fee across your list. Later dataset access, exports and retention can incur standard account usage; inclusion of run resources is not a promise that every later platform operation is free.

### Understand the counters

| Output                                           | Meaning                                                                                           |
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
| `subscriberCount`                                | Always `null`: public displayed subscriber counts are not exact subscriber totals.                |
| `subscriberCountEstimate`, `subscriberCountText` | Numeric estimate and original display, for example `15100000` and `15.1M subscribers`.            |
| `subscriberCountPrecision`                       | `rounded`, `missing` or `unparsed`.                                                               |
| `videoCount`, `viewCount`                        | Exact integer values as displayed in the matching public About panel.                             |
| `videoCountEstimate`, `viewCountEstimate`        | Estimates if the source abbreviates those counters; the corresponding exact field remains `null`. |
| `joinedDate`, `joinedDatePrecision`              | Public joined date at day precision, or `null` when unavailable.                                  |
| `country`, `links`                               | Public About information, returned without visiting external links.                               |
| `avatarUrl`, `bannerUrl`, `keywordsText`         | Available channel metadata; images are URLs and are not downloaded.                               |
| `fieldSources`, `missingFields`, `warnings`      | Where fields came from, unavailable values and parsing limitations.                               |
| `scrapedAt`, `snapshotId`                        | UTC collection timestamp and reproducible snapshot fingerprint.                                   |

A missing country is not inferred from language or viewer location. A missing joined date stays `null`. Verification is `true` only when the public header explicitly labels the channel verified; otherwise it is `null`. Missing fields do not mean zero. Public subscriber precision is also explained in [YouTube's channel resource documentation](https://developers.google.com/youtube/data/reference/rest/v3/channels).

A real NASA snapshot collected on **10 November 2026** is shown below as an excerpt. Counts change; this is historical example data.

```json
{
  "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
  "handle": "@NASA",
  "title": "NASA",
  "subscriberCount": null,
  "subscriberCountEstimate": 15100000,
  "subscriberCountPrecision": "rounded",
  "subscriberCountText": "15.1M subscribers",
  "videoCount": 6202,
  "videoCountPrecision": "exact",
  "viewCount": 1135085308,
  "viewCountPrecision": "exact",
  "joinedDate": "2008-06-03",
  "country": null,
  "scrapedAt": "2026-11-10T14:48:53.332Z"
}
```

The complete record and its source hash are in `examples/profile.json` and `examples/profile-provenance.json`.

### Completeness and collection limits

Successful profiles are appended to the default dataset. A missing channel, unreadable source, mismatched channel identity or missing About panel produces a diagnostic in `OUTPUT`, without a profile row. Optional individual fields can remain null when the matching About panel does not expose them.

`maxItems` caps confirmed profiles. `maxEstimatedCostUsd` is an additional conservative run allowance; set it to zero to skip source requests and profile output. The platform's maximum total charge is checked separately. Admission also accounts for the full possible duration of the next source request or retry wait; fast requests do not permanently consume the unused projected time. Neither a local estimate nor a network byte bound guarantees the platform's final invoice.

Collection is sequential and limited to 500 inputs, 1,200 physical source requests, 300 seconds, 64 MiB accounted transfer and 16 MiB dataset output. Each response is bounded to 64 KiB for public context/identity resolution or 1 MiB for a profile. A profile row is limited to 128 KiB, individual description/keyword text to 20,000 characters, and external links to 50 with an explicit warning if more are present. Default retries are zero; one optional retry is allowed for transient failures. Retry-After delays longer than five seconds are not shortened. Persistent HTTP 403 or 429 stops the remaining batch.

`OUTPUT.status` reports `SUCCEEDED`, `PARTIAL`, `FAILED` or `INTERRUPTED`, with per-input statuses and any stop reason. A completed Apify run can still have partial collection; inspect this report whenever completeness matters. Limits may stop a large request before all inputs finish.

Confirmed results survive a resumed run. An interrupted or uncertain dataset append stops automatic continuation so that the dataset can be reconciled without duplicate charges. Public YouTube layouts and availability can change; the Actor reports source failures rather than bypassing login or inventing data.

### API and exports

Use this Actor's ID and your own Apify token. For large workloads, start asynchronously and read the run's default dataset when it finishes.

```bash
curl --request POST \
  "https://api.apify.com/v2/acts/pellucid_bird~youtube-channel-profile-stats-lens/runs" \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"channels":["@NASA"],"maxItems":1}'
```

Download dataset results through the Apify Console in JSON, CSV, XLSX or other supported formats. For source issues, include the run ID, affected public channel input and the relevant `OUTPUT` diagnostic. Do not send account cookies or passwords.

### FAQ

#### Are subscriber counts exact?

No. `subscriberCount` is always null. Use `subscriberCountEstimate` together with its display text and precision. Full integer video and view totals are exact **as displayed**, when the matching About panel provides them.

#### Can I discover channels or collect their videos?

This Actor enriches known channel identities. It does not search for channels, list videos or retrieve comments. No YouTube login or Data API key is required.

#### Why did my run return fewer profiles than requested?

A missing About panel, unavailable channel, source refusal or work limit can stop collection. Read each input's `OUTPUT` diagnostic. Failed inputs do not create profile rows; the startup fee can still apply.

#### Can I compare repeated runs?

Yes. Retain the string channel `id`, `scrapedAt` and precision fields in your own history. Source availability and displayed counts can change. Collect and use public information only where you have the necessary permission or applicable basis.

# Actor input Schema

## `channels` (type: `array`):

1–500 @handles, exact UC channel IDs, or HTTPS YouTube /@handle, /channel/, /c/ or /user/ URLs. Handle identifiers accept 1–30 Unicode letters/marks/numbers and . \_ - · separators, with existence verified by resolution; /about is optional. Videos and search are not accepted.

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

Stop after this many unique validated profiles, including already saved rows after a resumed run.

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

Bound for each source request, including DNS and response reading.

## `maxRetries` (type: `integer`):

Zero by default. At most one retry for transient network errors, HTTP 429 or 5xx; long Retry-After delays stop instead.

## `maxEstimatedCostUsd` (type: `number`):

Additional conservative planning allowance; zero skips source work and output. The platform maximum charge separately limits event charges. Estimates are not a guarantee of the final invoice.

## Actor input object example

```json
{
  "channels": [
    "@NASA",
    "https://www.youtube.com/@mkbhd",
    "UCBR8-60-B28hp2BmDPdntcQ"
  ],
  "maxItems": 50,
  "requestTimeoutSecs": 15,
  "maxRetries": 0,
  "maxEstimatedCostUsd": 1
}
```

# Actor output Schema

## `profiles` (type: `string`):

No description

## `report` (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 = {
    "channels": [
        "@NASA",
        "https://www.youtube.com/@mkbhd",
        "UCBR8-60-B28hp2BmDPdntcQ"
    ],
    "maxItems": 50,
    "requestTimeoutSecs": 15,
    "maxRetries": 0,
    "maxEstimatedCostUsd": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pellucid_bird/youtube-channel-profile-stats-lens").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 = {
    "channels": [
        "@NASA",
        "https://www.youtube.com/@mkbhd",
        "UCBR8-60-B28hp2BmDPdntcQ",
    ],
    "maxItems": 50,
    "requestTimeoutSecs": 15,
    "maxRetries": 0,
    "maxEstimatedCostUsd": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pellucid_bird/youtube-channel-profile-stats-lens").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 '{
  "channels": [
    "@NASA",
    "https://www.youtube.com/@mkbhd",
    "UCBR8-60-B28hp2BmDPdntcQ"
  ],
  "maxItems": 50,
  "requestTimeoutSecs": 15,
  "maxRetries": 0,
  "maxEstimatedCostUsd": 1
}' |
apify call pellucid_bird/youtube-channel-profile-stats-lens --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pellucid_bird/youtube-channel-profile-stats-lens"
        }
    }
}
```

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/wH5ko2jGacke5HxIw/builds/0BeDdDd1bqzkuCXrR/openapi.json
