# Youtube Leads Generator (`caprolok/youtube-leads-generator`) Actor

Turn YouTube searches into verified lead lists. Extract channel names, emails, handles, and profile links using just a keyword and country. Perfect for sales, influencer outreach, PR, recruiting, and B2B targeting.

- **URL**: https://apify.com/caprolok/youtube-leads-generator.md
- **Developed by:** [Caprolok](https://apify.com/caprolok) (community)
- **Categories:** Lead generation, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 180 total users, 2 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Leads Generator](https://caprolok-assets.s3.us-east-1.amazonaws.com/All+Social+Media+Posts+Extractor/youtube-leads-generator-banner.png)

## YouTube Leads Generator

Turn YouTube searches into qualified lead lists in minutes. **YouTube Leads Generator** finds creator and brand channels that match your keywords, then extracts contact-ready details so you can reach out confidently.

Whether you’re in sales, recruiting, PR, or partnerships, this tool saves hours of manual digging. Point it at a niche and location, set how many leads you want, and download clean, structured data that plugs straight into your CRM or spreadsheet.

### 📄 What Can You Extract?

\[List each field in the following format:]

- emails: A list of discovered email addresses associated with the channel (masked in sample for privacy)
- keyword: The search keyword that produced the result (masked in sample)
- name: The YouTube channel’s display name (partially masked in sample)
- user_id: The channel’s unique YouTube ID (partially masked in sample)
- user_link: The public URL to the channel page (partially masked in sample)
- user_thumbnail: The channel avatar image URL (partially masked in sample)
- username: The channel’s @handle (partially masked in sample)

### 📘 How to Use

Getting started is quick and painless even if you've never scraped data before:

1. **Create a free Apify account.** All you need is an email address.
2. **Open the [YouTube Leads Generator](https://apify.com/caprolok/youtube-leads-generator)** on the Apify platform.
3. **Add your input parameters** (e.g., URLs, filters, etc. - customize as needed).
4. **Click "Start".** The actor will visit each URL and gather data.
5. **Download your dataset** in JSON, CSV, Excel, or HTML, or pipe it straight into your integrations via the API.

### ✨ Key Features

- Keyword-based discovery with optional country filtering
- Extracts channel handle, ID, name, and profile link
- Captures potential contact emails from channel surfaces
- Smart de-duplication to avoid repeated contacts
- Limit results with `max_leads` for fast sampling
- Export to JSON/CSV/Excel/HTML or stream via API
- Works great in automations with Zapier/Make/Airbyte
- Built and hosted on Apify for reliability and scale

### ⌨️ Input Parameters

| Field     | Type   | Description                                                   | Required |
|-----------|--------|---------------------------------------------------------------|----------|
| keyword   | string | Topic or niche to search for (e.g., `marketing`, `fitness`)   | Yes      |
| location  | string | Optional 2-letter country code to bias results (e.g., `US`)   | No       |
| max_leads | number | Maximum number of leads to return (e.g., `10`)                | No       |

#### Sample Input

```json
{
  "keyword": "marketing",
  "location": "US",
  "max_leads": 10
}
```

### 📊 Output

The actor returns a structured dataset with the following fields for each record.

#### Sample Output (JSON)

\[hide the output values partially]

```json
[ 
  {
    "emails": [
      "contact@optim*****.com",
      "hello@tech******.com"
    ],
    "keyword": "t***",
    "name": "optim**",
    "user_id": "UCRYOj4DmyxhBVrdvbsUw***",
    "user_link": "https://www.youtube.com/@@optim***tech",
    "user_thumbnail": "https://yt3.googleusercontent.com/M9YwxViKtozHtuhHwgVz9qO0644N4KKUhHvjp-m5HEpUEpkzPrdnVYHgVXiN4jFNONaCmXRCHQ=s***-c-k-c0x00ffffff-no-rj",
    "username": "@optim***tech"
  },
  {
    "emails": [
      "linus@tech****.com",
      "business@linus*****.com"
    ],
    "keyword": "t***",
    "name": "L**** Tech Tips",
    "user_id": "UCXuqSBlHAE6Xw-yeJA0T***",
    "user_link": "https://www.youtube.com/@@Linus****Tips",
    "user_thumbnail": "https://yt3.googleusercontent.com/gnvYLhXy8FAlPXZ2RTrkrgj-5kyt0vdE2FUGVOiKGdEZIa-wN5A-7nwZBlWJLzUMmoh1NWAU=s***-c-k-c0x00ffffff-no-rj",
    "username": "@Linus****Tips"
  },
  {
    "emails": [
      "info@top****.com"
    ],
    "keyword": "t***",
    "name": "T** Tech",
    "user_id": "UCvRg_-z2D9c_hMO05ZgU***",
    "user_link": "https://www.youtube.com/@@top****_oficial",
    "user_thumbnail": "https://yt3.googleusercontent.com/f8XsKq2_Ey-QCN036vsdxfe_bSsR96Be2COGgJKpCNF6foK1RkjVLl41Q_1QfbtCthfGC4nGOg=s***-c-k-c0x00ffffff-no-rj",
    "username": "@top****_oficial"
  }
]
```

### 🎯 Use Cases

- Build targeted outreach lists for SaaS, agencies, and B2B partnerships
- Source creators for affiliate, sponsorship, or ambassador programs
- Find niche experts for webinars, podcasts, and conference panels
- Recruit technical creators and developer advocates by topic
- Identify media/press contacts for product launch announcements
- Populate PR databases with verified YouTube channel details
- Create geo-specific prospecting lists (e.g., US-only, UK-only)
- Enrich existing channel lists with handles, IDs, and contact emails
- Discover local businesses with active channels for SMB sales
- Curate creator shortlists for influencer marketing campaigns

### 📌 Usage Tips

- Start with a broad keyword, then narrow down based on early results.
- Use `max_leads` while testing to iterate quickly on the right search terms.
- Combine with a CRM dedupe step to avoid contacting the same channel twice.

### 🔌 Integrations

YouTube Leads Generator fits seamlessly into your data pipeline. Thanks to built-in integrations on the Apify platform, you can connect this actor with virtually any cloud service or web app.

#### Popular integrations

- **Make (Integromat)** – automate multi-step workflows.
- **Zapier** – send data to 5,000+ apps.
- **Airbyte** – sync datasets into your data warehouse.
- **Slack** – push instant notifications.
- **Google Sheets & Drive** – store results in spreadsheets or cloud.
- **GitHub** – commit datasets directly to your repositories.
- **AWS S3 / Azure Blob Storage** – archive large exports securely.

#### Webhooks

Set up webhooks to trigger actions when the actor completes or fails, e.g., send email or Slack alerts.

### 🛠️ API Access

Prefer to automate with code? The Apify REST API lets you manage, schedule, and run this actor programmatically.

- **Run & Schedule Actors**
- **Access Datasets**
- **Monitor Runs**
- **Version Control**

#### Client libraries

| Language | Package | Install |
| -------- | ------- | ------- |
| Node.js  | `apify-client` | `npm install apify-client` |
| Python   | `apify-client` | `pip install apify-client` |

***

For complete API examples and detailed usage, visit the [API documentation](https://apify.com/caprolok/youtube-leads-generator/api/python).

```js
// Example: Trigger a run with Node.js
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 = {
  "keyword": "marketing",
  "location": "US",
  "max_leads": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("caprolok/youtube-leads-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results:', await client.dataset(run.defaultDatasetId).listItems());
```

#### MCP Quickstart

You can use the Apify MCP Server in two ways:

**1. Standard Input/Output (stdio):**

- Set MCP client server command to `npx @apify/actors-mcp-server` and environment variable `APIFY_TOKEN` to your Apify API token.

**2. HTTPS Endpoint mcp.apify.com:**

- Connect your MCP client by including `Authorization: Bearer <APIFY_TOKEN>` header in your requests.

For more details, see the [MCP API documentation](https://apify.com/caprolok/youtube-leads-generator/api/python).

### 🔗 Other Actors you might want to check

### 🆘 Support

If you encounter any issues, have suggestions, or need assistance, please use the [Issues tab](https://apify.com/caprolok/youtube-leads-generator/issues/open). Our team actively monitors this section and will respond promptly.

# Actor input Schema

## `keyword` (type: `string`):

Enter a keyword, niche, or industry to find public YouTube channels. Examples: marketing, fitness coach, real estate.

## `location` (type: `string`):

Restrict search to a specific country (e.g., 'US').

## `max_leads` (type: `integer`):

Select the number of leads you want to scrape.

## Actor input object example

```json
{
  "keyword": "marketing",
  "max_leads": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Public channel rows for the keyword you entered (name, handle, and channel link when available).

# 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 = {
    "keyword": "marketing"
};

// Run the Actor and wait for it to finish
const run = await client.actor("caprolok/youtube-leads-generator").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 = { "keyword": "marketing" }

# Run the Actor and wait for it to finish
run = client.actor("caprolok/youtube-leads-generator").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 '{
  "keyword": "marketing"
}' |
apify call caprolok/youtube-leads-generator --silent --output-dataset

```

## MCP server setup

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

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/ThO65QJU0eIv6JMiM/builds/jxAsx0VJcFMS8udbT/openapi.json
