# YouTube Description Links Scraper 🔗 (`contactminerlabs/youtube-description-links-scraper`) Actor

This Scraper extracts external links found in YouTube video descriptions: URLs, video titles, channel names, channel URLs, descriptions, link types, video IDs, dates and source links. Enter one or more YouTube video or channel URLs and get clean data ready for lead generation & market research

- **URL**: https://apify.com/contactminerlabs/youtube-description-links-scraper.md
- **Developed by:** [ContactMinerLabs](https://apify.com/contactminerlabs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Description Links Scraper – Sponsors, Affiliate Links, Promo Codes & Backlinks 💰

**YouTube Description Links Scraper** extracts **every link written in YouTube video descriptions**, for whole channels or single videos, in bulk. Each link is classified – **sponsor, affiliate link (Amazon Associates, Impact, CJ, Awin, LTK…), social profile, merch / shop, creator support (Patreon, Linktree…), website, short link, YouTube** – with the **sponsor name, promo code, anchor text, section, UTM parameters** and the video context (title, views, date, channel, subscribers).

Perfect for **brands and agencies researching influencer sponsorships, affiliate marketers, SEO teams looking for backlinks, competitive intelligence, lead generation and market researchers**.

### ✨ Why this YouTube links scraper?

- 📺 **Bulk channels & videos** – paste `@handles`, channel URLs, video URLs or IDs
- 🎬 **Whole channels** – latest N videos or the full catalogue, plus Shorts and live streams
- 🤝 **Sponsor detection** – partner sections, "use code", "thanks to", discounts… with the sponsor name
- 💸 **Affiliate detection** – Amazon (amzn.to, tag=), Impact, CJ, Awin, Rakuten, ShareASale, LTK, ShopMy, Geniuslink…
- 🏷️ **Promo codes** – `code SAVE20`, `use code CREATOR`…
- 🌐 **Domains & backlinks** – root domain, clean link without tracking, UTM source / campaign
- 🧾 **Video summary rows** – links count, link types, domains, promo codes, emails and chapters of each video
- 🧹 **Clean data** – every empty value is returned as `N/A`

### 🔍 What does it extract?

| Field | Description |
| --- | --- |
| `type` | `link` (one row per link) or `video` (one row per video) |
| `link` / `cleanLink` | The link, and the same link without tracking parameters |
| `domain` / `rootDomain` | Domain of the link |
| `linkType` | sponsor, affiliate, social, creator support, shop / merch, website, short link, youtube video / channel / playlist |
| `platform` | Social network, affiliate network or domain |
| `sponsorName` | Brand of the sponsor (from the description) |
| `isAffiliate` / `affiliateNetwork` | Affiliate link and its network |
| `promoCode` | Promo code written next to the link |
| `anchorText` / `section` / `lineText` | Text of the link, section title ("Sponsors", "Follow us"…), full line |
| `linkPosition` / `lineNumber` / `linksInVideo` | Position of the link in the description |
| `utmSource` / `utmCampaign` | UTM parameters |
| `videoTitle` / `videoUrl` / `videoViews` / `videoPublishDate` / `videoLengthSeconds` / `videoCategory` / `videoType` | The video |
| `channelName` / `channelUrl` / `channelHandleUrl` / `channelSubscribers` | The channel |
| `linksCount` / `affiliateLinksCount` / `linkTypes` / `domains` / `promoCodes` / `emails` / `chapters` / `description` | Video rows |
| `searchQuery` / `foundVia` / `sourceUrl` / `scrapedAt` | Run context |

### 🛠 How to extract links from YouTube descriptions (4 steps)

1. **Paste channels and/or videos** – e.g. `https://www.youtube.com/@channel`, `@channel`, a video URL
2. **Set the max videos per channel** (0 = all) and choose Shorts / live streams
3. **Choose the output** – video + link rows, link rows only, or video rows only – and optional link type filters
4. Click **Start**

Five dataset views are ready: **Overview**, **All fields**, **Sponsors & affiliates**, **Domains & backlinks** and **Videos**.

### 💡 Tips

🔹 Use the **Sponsors & affiliates** view to see which brands sponsor which creators, with their promo codes
🔹 Filter **linkTypes = sponsor, affiliate** to build a sponsorship database in your niche
🔹 Use **rootDomain** to count how many creators link to a brand (or to your competitors)
🔹 Schedule the actor weekly on the same channels to catch new sponsorships
🔹 Keep **RESIDENTIAL** proxies for large runs

### 🎯 Use cases

🤝 **Influencer marketing** – find creators already sponsored by brands like yours, and what they promote
💸 **Affiliate research** – which products, stores and networks creators use
🌐 **SEO & backlinks** – every website linked from YouTube in your market
🕵️ **Competitive intelligence** – who your competitors sponsor and with which codes
📇 **Lead generation** – business emails and websites of creators

### 📥 Input

```json
{
  "urls": ["https://www.youtube.com/@example_channel", "https://www.youtube.com/watch?v=XXXXXXXXXXX"],
  "maxVideosPerChannel": 100,
  "includeShorts": false,
  "includeLive": false,
  "outputMode": "both",
  "linkTypes": [],
  "excludeYoutubeLinks": false,
  "includeDescription": true,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Description |
| --- | --- | --- |
| `urls` | string\[] | 📺 Channels and/or videos (bulk) |
| `maxVideosPerChannel` | integer | 🔢 Latest videos per channel (0 = all) |
| `includeShorts` | boolean | 📱 Add the channel's Shorts |
| `includeLive` | boolean | 🔴 Add the channel's past live streams |
| `outputMode` | string | 🧾 `both`, `links` or `videos` |
| `linkTypes` | string\[] | 🎯 Keep only these link types (empty = all) |
| `excludeYoutubeLinks` | boolean | Skip links to YouTube itself |
| `includeDescription` | boolean | Full description in video rows |
| `proxyConfiguration` | object | 🛡️ Proxy settings (RESIDENTIAL recommended) |

### 🧾 Output example

Link row:

```json
{
  "type": "link",
  "videoId": "XXXXXXXXXXX",
  "videoUrl": "https://www.youtube.com/watch?v=XXXXXXXXXXX",
  "videoTitle": "Example Video Title",
  "videoPublishDate": "2026-11-10T08:00:00-08:00",
  "videoViews": 250000,
  "videoLengthSeconds": 905,
  "videoCategory": "Science & Technology",
  "videoType": "video",
  "channelName": "Example Channel",
  "channelUrl": "https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxxxxxxxx",
  "channelHandleUrl": "https://www.youtube.com/@example_channel",
  "channelSubscribers": 1200000,
  "link": "https://example-brand.com/creator?utm_source=youtube&utm_campaign=nov",
  "cleanLink": "https://example-brand.com/creator",
  "domain": "example-brand.com",
  "rootDomain": "example-brand.com",
  "linkType": "sponsor",
  "platform": "example-brand.com",
  "sponsorName": "Example Brand",
  "isAffiliate": false,
  "affiliateNetwork": "N/A",
  "promoCode": "CREATOR20",
  "anchorText": "Get 20% off with code CREATOR20 at",
  "section": "Check out our sponsors",
  "linkPosition": 1,
  "linksInVideo": 9,
  "utmSource": "youtube",
  "utmCampaign": "nov",
  "searchQuery": "Example Channel",
  "foundVia": "channel",
  "scrapedAt": "2026-11-17T10:00:00+00:00"
}
```

### ❓ FAQ

**Where does the data come from?**
From the public YouTube pages of the channels and videos – the descriptions anyone can read.

**Why do I get fewer videos than expected?**
Private, removed and age-restricted videos are skipped. Without Shorts and live streams enabled, only the Videos tab is analysed.

**How are sponsors and affiliate links detected?**
From the link itself (affiliate domains and parameters like `tag=`, `ref=`, `aff=`) and from the text around it (sponsor sections, "use code", "thanks to", discounts). Short links whose destination is hidden are labelled `short link` unless the text shows a sponsor.

**Why is a field `N/A`?**
The information does not exist for this link or video (no promo code, no UTM, not an affiliate link…).

**Is it legal?**
The data is public. You are responsible for using it in compliance with the applicable laws (GDPR, anti-spam rules…) and YouTube's terms.

**How long does a run take?**
Around 100 to 200 videos per minute.

### 💰 Pricing

Simple pay-per-result model: you only pay for the rows delivered (link rows and video rows).

**Price: $2.99 per 1,000 results** 💵

### ⚠️ Disclaimer

This tool is **not affiliated with, endorsed by, or sponsored by YouTube or Google**. Data comes from public pages.

### 🔗 Related actors

- 💬 **YouTube Video Comments Scraper** (ContactMinerLabs)
- 🎥 **YouTube Channel Videos & Comments Scraper** (ContactMinerLabs)
- 👻 **Snapchat Public Profiles Scraper** (ContactMinerLabs)
- 🎯 **Reddit Leads & Mentions Scraper** (ContactMinerLabs)

### 📫 Support

😊 Leave us a ⭐⭐⭐⭐⭐ review if you like this YouTube links scraper!
🌍 Questions, custom needs or issues? Contact us through Apify.

# Actor input Schema

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

Bulk list. Channels: https://www.youtube.com/@handle, /channel/UC…, /c/name, @handle. Videos: watch?v=…, youtu.be/…, /shorts/… or the video ID.

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

Latest videos analysed per channel (0 = all videos of the channel).

## `includeShorts` (type: `boolean`):

Also analyse the channel's Shorts.

## `includeLive` (type: `boolean`):

Also analyse the channel's past live streams.

## `outputMode` (type: `string`):

Rows of type 'video' (summary of the description) and/or 'link' (every link found). Each row counts as one result.

## `linkTypes` (type: `array`):

Optional filter. Empty = all link types.

## `excludeYoutubeLinks` (type: `boolean`):

Skip links to other YouTube videos, channels and playlists.

## `includeDescription` (type: `boolean`):

Add the full description text to video rows.

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

RESIDENTIAL proxy recommended (YouTube blocks most datacenter IPs).

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/@LinusTechTips",
    "https://www.youtube.com/@mkbhd"
  ],
  "maxVideosPerChannel": 100,
  "includeShorts": false,
  "includeLive": false,
  "outputMode": "both",
  "linkTypes": [],
  "excludeYoutubeLinks": false,
  "includeDescription": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `detailed` (type: `string`):

No description

## `sponsors` (type: `string`):

No description

## `domains` (type: `string`):

No description

## `videos` (type: `string`):

No description

## `summary` (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 = {
    "urls": [
        "https://www.youtube.com/@LinusTechTips",
        "https://www.youtube.com/@mkbhd"
    ],
    "maxVideosPerChannel": 100,
    "outputMode": "both",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("contactminerlabs/youtube-description-links-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 = {
    "urls": [
        "https://www.youtube.com/@LinusTechTips",
        "https://www.youtube.com/@mkbhd",
    ],
    "maxVideosPerChannel": 100,
    "outputMode": "both",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("contactminerlabs/youtube-description-links-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 '{
  "urls": [
    "https://www.youtube.com/@LinusTechTips",
    "https://www.youtube.com/@mkbhd"
  ],
  "maxVideosPerChannel": 100,
  "outputMode": "both",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call contactminerlabs/youtube-description-links-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,contactminerlabs/youtube-description-links-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/RUOT0l6Oxdnx26u6u/builds/UeR3wKBojoGetG9kd/openapi.json
