# youtube-creator-analytics-scraper (`pirapaakaranpirathapan/apify-1`) Actor

Scrape YouTube creator profiles, subscriber metrics, recent video analytics, view counts, social links (Twitter/X, Instagram, TikTok, LinkedIn, Discord), and verified business contact emails for influencer marketing.

- **URL**: https://apify.com/pirapaakaranpirathapan/apify-1.md
- **Developed by:** [Pirapaakaran Pirathapan](https://apify.com/pirapaakaranpirathapan) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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/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 & Social Creator Analytics Scraper (Apify Actor)

> **Scrape YouTube creator profiles, subscriber metrics, recent video analytics, view counts, social links (Twitter/X, Instagram, TikTok, LinkedIn, Discord), and verified business contact emails for influencer marketing and lead generation.**

[![Apify](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com)
[![Crawlee](https://img.shields.io/badge/Powered%20by-Crawlee-blue)](https://crawlee.dev)
[![Node.js](https://img.shields.io/badge/Node.js-20-brightgreen.svg)](https://nodejs.org/)
[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE)

***

### 💡 What Does This Actor Do?

The **YouTube & Social Creator Analytics Scraper** is an all-in-one lead generation and market intelligence tool designed specifically for **influencer marketing agencies, PR brands, talent managers, and B2B outreach professionals**.

It automatically discovers YouTube creators by niche/keyword or scrapes direct channel lists, extracting critical metrics that determine sponsorship value:

1. **Audience & Reach**: Verified subscriber count and total published video count.
2. **True Video Performance**: Scrapes the latest recent videos, actual view counts, and computes the **Average Recent Video Views**.
3. **Engagement Rate Estimation**: Automatically computes the recent view-to-subscriber engagement ratio so you can spot genuine influence vs. dead subscriber counts.
4. **Direct Contact Info**: Discovers business contact emails from channel descriptions, bio snippets, and links.
5. **Cross-Platform Socials**: Extracts Instagram, Twitter/X, TikTok, LinkedIn, Discord, Patreon, Twitch, and custom website URLs.

***

### ✨ Features

- 🔍 **Niche & Keyword Discovery**: Automatically finds top creator channels by keywords (e.g., `tech reviews`, `fitness workout`, `personal finance`, `gaming`).
- 🎯 **Direct Channel URLs / Handles**: Provide specific handles (e.g., `@mkbhd`, `https://www.youtube.com/@MrBeast`).
- 📧 **Business Email Extraction**: Clean, verified business email extraction with automated noise filtering.
- 🔗 **Full Social Media Footprint**: Discovers Instagram, Twitter/X, TikTok, LinkedIn, Discord, and personal websites in one place.
- 📈 **Recent Video Analytics**: Extracts video titles, direct watch links, view counts, publication dates, and thumbnails.
- ⚡ **Lightweight & Fast**: No heavy browser rendering or costly Google API quotas required.

***

### 💼 High-Value Use Cases

- **Influencer Marketing & Sponsorship Campaigns**: Find relevant niche YouTubers with verified business emails and active recent view metrics.
- **PR & Brand Partnerships**: Reach out directly to content creators to send review samples, brand deals, or affiliate invites.
- **Talent Agencies & MCNs**: Scout emerging creators with high engagement rates before they explode.
- **Competitor & Market Research**: Benchmark top channels in your industry and monitor their upload frequency and viewership trends.

***

### ⚙️ Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `searchKeywords` | Array | `["tech reviews"]` | List of search keywords or niches to discover channels. |
| `channelUrls` | Array | `[]` | Optional direct channel URLs, handles (e.g. `@mkbhd`), or channel IDs. |
| `maxChannels` | Integer | `20` | Maximum number of creator channels to scrape (1 to 300). |
| `maxVideosPerChannel` | Integer | `5` | Number of recent videos to analyze per channel for average view velocity (1 to 30). |
| `extractEmails` | Boolean | `true` | Extract verified business contact emails from creator descriptions. |
| `extractSocialLinks` | Boolean | `true` | Extract Instagram, Twitter/X, TikTok, LinkedIn, Discord, and external websites. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": false }` | Apify Proxy settings (optional). |

#### Example Input JSON

```json
{
  "searchKeywords": ["tech reviews", "smartphones"],
  "channelUrls": ["https://www.youtube.com/@mkbhd"],
  "maxChannels": 25,
  "maxVideosPerChannel": 5,
  "extractEmails": true,
  "extractSocialLinks": true
}
```

***

### 📊 Sample Output Dataset (JSON)

```json
{
  "channelId": "UCBJycsmduvYEL83R_U4JriQ",
  "channelTitle": "Marques Brownlee",
  "channelHandle": "@mkbhd",
  "channelUrl": "https://www.youtube.com/@mkbhd",
  "subscribers": "21.4M",
  "subscribersNumeric": 21400000,
  "videoCount": "1.8K",
  "videoCountNumeric": 1800,
  "recentAvgViews": "9M",
  "recentAvgViewsNumeric": 9000000,
  "engagementRate": "42.06%",
  "email": "business@mkbhd.com",
  "allEmails": [
    "business@mkbhd.com"
  ],
  "socialLinks": {
    "twitter": "http://twitter.com/MKBHD",
    "instagram": "http://instagram.com/MKBHD",
    "discord": "http://discord.gg/MKBHD",
    "facebook": "http://facebook.com/MKBHD"
  },
  "instagram": "http://instagram.com/MKBHD",
  "twitter": "http://twitter.com/MKBHD",
  "tiktok": null,
  "linkedin": null,
  "discord": "http://discord.gg/MKBHD",
  "description": "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality",
  "avatarUrl": "https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s160-c-k-c0x00ffffff-no-rj",
  "bannerUrl": "https://yt3.googleusercontent.com/zi_48HwHU4s0Hnb6tZuvRzTfCPHrLEnrtIMDLzMauDEyDmURh9JZ4wrNd3lKr7m9uVnT4YjYKw=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
  "recentVideosCount": 5,
  "recentVideos": [
    {
      "videoId": "ESABTN4VtrA",
      "title": "iPhone Duo Review: First Generation Fun!",
      "url": "https://www.youtube.com/watch?v=ESABTN4VtrA",
      "views": "6M",
      "viewsNumeric": 6000000,
      "publishedTime": "17h ago",
      "thumbnailUrl": "https://i.ytimg.com/vi/ESABTN4VtrA/hq720.jpg"
    }
  ],
  "scrapedAt": "2026-10-22T05:10:00.000Z"
}
```

***

### 🛠️ How to Run Locally

```bash
cd 03-youtube-creator-analytics-scraper
npm start
```

Results will be automatically stored in `./storage/datasets/default/`.

***

### 🌐 Deploy to Apify Store

1. In the [Apify Console](https://console.apify.com), navigate to **Actors** > **Create new**.
2. Link your Git repository (`https://gitlab.com/pirapaakaranpirathapan/apify.git`).
3. Set the Dockerfile location to: `./03-youtube-creator-analytics-scraper/Dockerfile`.
4. Or push directly via Apify CLI:
   ```bash
   cd 03-youtube-creator-analytics-scraper
   apify push
   ```

***

### 📄 License

Licensed under the Apache-2.0 License.

# Actor input Schema

## `searchKeywords` (type: `array`):

Keywords or niche terms to find YouTube creators (e.g., 'tech reviews', 'personal finance', 'fitness workout', 'travel vlogs', 'gaming').

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

Direct channel URLs, handles, or IDs to scrape directly (e.g., 'https://www.youtube.com/@mkbhd', '@MrBeast', 'https://www.youtube.com/@aliabdaal').

## `maxChannels` (type: `integer`):

Maximum total number of creator channels to extract and analyze.

## `maxVideosPerChannel` (type: `integer`):

Number of recent videos to extract and evaluate per channel (calculates average views & upload recency).

## `extractEmails` (type: `boolean`):

Automatically detect and extract business contact email addresses from creator bios and channel descriptions.

## `extractSocialLinks` (type: `boolean`):

Extract social links including Instagram, Twitter/X, TikTok, LinkedIn, Discord, Patreon, and external websites.

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

Apify Proxy settings (optional - default direct connection works well, proxy recommended for large runs).

## Actor input object example

```json
{
  "searchKeywords": [
    "tech reviews"
  ],
  "channelUrls": [],
  "maxChannels": 20,
  "maxVideosPerChannel": 5,
  "extractEmails": true,
  "extractSocialLinks": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing verified creator metrics, subscriber counts, total views, average recent video views, business emails, and social media handles.

# 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("pirapaakaranpirathapan/apify-1").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("pirapaakaranpirathapan/apify-1").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 pirapaakaranpirathapan/apify-1 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pirapaakaranpirathapan/apify-1"
        }
    }
}
```

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/pc53TqIemQFDGyMJY/builds/CRw7G8MgAhWWWbEHU/openapi.json
