# YouTube Channel Links Scraper (`googleapi/youtube-channel-links-scraper`) Actor

Extract source-backed public YouTube channel About details and explicitly linked external destinations.

- **URL**: https://apify.com/googleapi/youtube-channel-links-scraper.md
- **Developed by:** [Google API](https://apify.com/googleapi) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 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 Links Scraper collects public channel profile details and external destinations explicitly linked from a YouTube channel. It can return the channel description, audience labels, public links, and channel images. It reports About-section links and does not visit their destinations.

### Input

Provide a public channel, video, or YouTube search URL, or use a search query to find channel candidates. Channel About URLs usually expose the richest profile details. `maxItems` caps channel records; `includeMedia` and `includeLinks` control optional image and link fields.

```json
{"startUrls":[{"url":"https://www.youtube.com/@example/about"}],"maxItems":1}
```

```json
{"queries":["creative technology channels"],"maxItems":10,"includeMedia":false}
```

Set `includeRecentVideos` to `true` to attach recent entries from matching channels' public feeds. `maxRecentVideos` limits entries per channel and `maxFeedRequests` limits how many feeds are read. `deduplicate` is enabled by default; `page` and `maxPages` are fixed at `1` for a channel profile. Use `locale` for the public page language preference.

### Dataset output

Each row contains channel identity and public About details such as `channelId`, `channelName`, `handle`, `channelUrl`, `channelDescription`, `channelCountry`, join-date fields, verification, subscriber/video/view counts, and avatar or banner links.

External destinations listed on the channel are returned in `channelExternalLinks`, with fields such as `destinationUrl`, `label`, `displayUrl`, `domain`, and `linkType`. Aggregate fields include `channelExternalLinkCount`, `channelExternalLinkTypeCounts`, and `channelExternalLinkDomains`. The optional `channelSubscribeUrl` is included only when YouTube explicitly exposes it.

```json
{
  "channelId": "UCexample123",
  "channelName": "Example Creator",
  "handle": "@ExampleCreator",
  "channelUrl": "https://www.youtube.com/@ExampleCreator",
  "channelSubscriberCount": 1250000,
  "channelSubscriberCountText": "1.25M subscribers",
  "channelSubscriberCountIsApproximate": true,
  "channelExternalLinks": [
    {"destinationUrl":"https://example.com/","label":"Creator website","displayUrl":"example.com","domain":"example.com","linkType":"website"}
  ],
  "channelExternalLinkCount": 1,
  "channelExternalLinkDomains": ["example.com"]
}
```

Compact subscriber, view, or video totals may be rounded; the original displayed text and an approximation indicator are included. Only YouTube links associated with the channel are included; video-description and site-navigation links are excluded. Dataset results can be downloaded as JSON, CSV, Excel, or another format supported by Apify.

### Coverage and responsible use

Available fields vary by channel and locale. External links are returned as public URLs without opening the destination. The Actor does not sign in or access private account data. Use public information responsibly and follow YouTube's terms and applicable laws.

# Actor input Schema

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

Primary public YouTube channel, video, or search URLs. Object form is recommended in the Apify UI.

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

Compatibility alias for an array of public HTTPS YouTube URLs.

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

Compatibility alias for public YouTube channel, video, or search URLs.

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

Compatibility alias for an array of public YouTube URLs.

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

Compatibility alias for one public YouTube URL.

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

Compatibility alias for one public YouTube channel, video, or search URL.

## `queries` (type: `array`):

Optional text queries. They create public YouTube search pages and return channel candidates when YouTube exposes them.

## `query` (type: `string`):

Compatibility alias for one search query.

## `searchQuery` (type: `string`):

Compatibility alias for one search query.

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

Global maximum of normal channel records across all sources. Default: 25.

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

This detail Actor reads one About page per source; only 1 is accepted.

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

Remove repeated channels across source URLs using channel ID, canonical URL, or name.

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

Include publicly exposed channel avatar and banner URLs.

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

Include public external links presented by the channel; YouTube internal links are excluded.

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

Delay between ordered public requests.

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

Requests are intentionally ordered and serial; only 1 is accepted.

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

Finite retries for transient fetch failures; access boundaries are not retried indefinitely.

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

Timeout for each public page request.

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

Compatibility alias for requestTimeoutSecs.

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

Maximum response bytes retained from a public page response.

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

Optional ordinary browser user agent. Stealth and fingerprint spoofing are not used.

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

Accept-Language value for public requests.

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

Routes public HTTPS requests through configured Apify or custom HTTP(S) proxies. Residential proxies are recommended. No authentication cookies or browser session are transferred.

## `renderJavaScript` (type: `boolean`):

Compatibility flag. The Actor uses public HTML/embedded state and does not launch a browser.

## `useBrowser` (type: `boolean`):

Compatibility flag. Browser automation is not required for the HTTP extraction path.

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

One-based page. This profile scraper supports only page 1; use additional channel URLs for more profiles.

## `includeRecentVideos` (type: `boolean`):

Opt-in: fetch one public YouTube Atom feed per source-verified channel. Adds nested recentVideos with full text, exact dates, media and source metrics; no external destination is fetched.

## `maxRecentVideos` (type: `integer`):

Maximum source feed entries included on each channel record. The public feed normally exposes at most 15 entries and has no pagination.

## `maxFeedRequests` (type: `integer`):

Run-wide budget for opt-in feed enrichment; one request per enriched channel.

## Actor input object example

```json
{
  "maxItems": 25,
  "maxPages": 1,
  "deduplicate": true,
  "includeMedia": true,
  "includeLinks": true,
  "requestDelayMs": 0,
  "maxConcurrency": 1,
  "maxRequestRetries": 1,
  "requestTimeoutSecs": 30,
  "maxResponseBytes": 3000000,
  "locale": "en-US",
  "renderJavaScript": false,
  "useBrowser": false,
  "page": 1,
  "includeRecentVideos": false,
  "maxRecentVideos": 5,
  "maxFeedRequests": 10
}
```

# Actor output Schema

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

No description

## `outputSummary` (type: `string`):

No description

## `runHealth` (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-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 = {}

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

```

## MCP server setup

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