# YouTube Channel Keywords Scraper (`googleapi/youtube-channel-keywords-scraper`) Actor

Extract source-backed public keyword signals from YouTube channel descriptions, titles, hashtags, and embedded video metadata.

- **URL**: https://apify.com/googleapi/youtube-channel-keywords-scraper.md
- **Developed by:** [Google API](https://apify.com/googleapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 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

Collect public YouTube channel keyword tags and channel profile details. The Actor can also calculate frequently used terms from the channel’s public metadata, description, hashtags, and (when requested) video titles. Calculated terms are useful for discovery and comparison, but they are not a substitute for the channel’s own tags.

Start with channel URLs or search for channels by phrase. You can optionally include titles from the channel’s first public Videos page or recent entries from YouTube’s public channel feed.

### How to use

1. Add one or more public YouTube channel URLs to `startUrls`, or provide a text search in `queries`.
2. Set `maxItems` and choose whether to include public images and external channel links.
3. To add video-title evidence, enable `sampleVideoTitles`. To include recent feed entries, enable `includeRecentVideos`.
4. Run the Actor and review the channel records in the dataset.

Example:

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/@Google/about" }
  ],
  "maxItems": 10,
  "includeMedia": true,
  "includeLinks": true,
  "sampleVideoTitles": true,
  "maxVideoSamples": 10,
  "includeRecentVideos": true,
  "maxRecentVideos": 5
}
```

### Input

| Input | Description | Default |
|---|---|---:|
| `startUrls` | Public YouTube channel, video, or search URLs. For direct collection, use a channel URL. | — |
| `queries` | Text searches for public YouTube channels. `query` and `searchQuery` are aliases for one query. | — |
| `maxItems` | Maximum channel records across all inputs (1–200). | 25 |
| `maxPages` | This Actor reads one source page per input; use `1`. | 1 |
| `deduplicate` | Return one record for each channel found across the inputs. | `true` |
| `includeMedia` | Include publicly displayed avatar and banner image URLs. | `true` |
| `includeLinks` | Include public external links listed on the channel profile. | `true` |
| `locale` | Language preference for public page text, such as `en-US`. | `en-US` |
| `sampleVideoTitles` | Include titles and visible metadata from the channel’s first public Videos page as keyword evidence. | `false` |
| `maxVideoSamples` | Maximum video titles retained for each channel (1–50). | 20 |
| `maxSamplingRequests` | Maximum number of channel Videos pages to inspect across the run (0–50). | 10 |
| `includeRecentVideos` | Include recent entries from the channel’s public feed. | `false` |
| `maxRecentVideos` | Maximum recent feed entries per channel (1–15). | 5 |
| `maxFeedRequests` | Maximum channels to include recent feed entries for across the run (0–50). | 10 |
| `proxyConfiguration` | Optional Apify or custom proxy configuration for public YouTube pages. | — |

You can also provide direct URLs using `channelUrls`, `channelUrl`, `sourceUrls`, `urls`, or `url`. `page` is limited to `1` because this Actor reads the supplied source page rather than paginating search results.

### Output

Each dataset item represents a channel and includes its `channelId`, name, handle and public URLs. Depending on what YouTube displays, it can also include:

- **Channel profile:** full description and paragraph HTML, country, join date, verification label, subscriber and video counts, and total views. Count text is retained, and approximate counts are marked as approximate.
- **Public links and images:** external links from the channel profile, primary website, and avatar or banner image variants when enabled and available.
- **Keyword information:** `channelKeywords` contains channel tags exposed by YouTube; `metaKeywords` preserves public keyword metadata; `hashtags` lists observed hashtags. `keywords` contains normalized terms with occurrence counts and the public fields that contributed them.
- **Video-title evidence:** when `sampleVideoTitles` is enabled, `sourceTitles` includes titles and visible publication text, view-count text, and duration from the first public Videos page. No upload-list pagination is performed.
- **Recent feed entries:** when `includeRecentVideos` is enabled, `recentVideos` can contain each feed item’s title, URL, full description, publication and update timestamps, thumbnail, and source-provided view and rating metrics.

YouTube may not expose channel tags, counts, dates, links, or video details for every channel. Calculated keywords are normalized frequency terms, not publisher-supplied tags; the term list is influenced by the available text and may favor English words. Missing optional values are omitted rather than inferred. Feed rating fields retain the source’s meaning and are not interpreted as likes.

Example dataset item:

```json
{
  "channelId": "UC_example_channel_id",
  "channelName": "Example Channel",
  "handle": "@ExampleChannel",
  "channelUrl": "https://www.youtube.com/@ExampleChannel",
  "channelKeywords": ["science", "education"],
  "keywords": [
    {
      "term": "science",
      "count": 4,
      "sourceFields": ["channelDescription", "videoTitle1"]
    }
  ],
  "hashtags": ["#science"],
  "sourceTitles": [
    {
      "videoId": "exampleVideoId",
      "title": "An example public video title",
      "videoUrl": "https://www.youtube.com/watch?v=exampleVideoId",
      "publishedAt": "2 days ago",
      "viewCountText": "18K views",
      "duration": "12:34"
    }
  ]
}
```

The Output tab shows the available result fields. The Actor’s run output also provides links to the dataset and run summary.

### Limits and responsible use

Results depend on what YouTube makes publicly available and on the configured record and enrichment limits. This Actor does not sign in to YouTube. Use public channel information responsibly and follow applicable privacy requirements and YouTube’s terms. This Actor is not affiliated with YouTube.

# 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.

## `includeAboutText` (type: `boolean`):

Compatibility flag; business descriptions are always complete. Page boilerplate is never emitted.

## `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 streamed bytes accepted from a public HTML 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`):

Only the initial public source page is supported.

## `sampleVideoTitles` (type: `boolean`):

Fetch one matching public Videos page per selected channel for real title and displayed video metadata evidence.

## `maxVideoSamples` (type: `integer`):

Maximum titles from the first public Videos page; no continuation requests.

## `maxSamplingRequests` (type: `integer`):

Run-wide ceiling for additional Videos page requests.

## `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,
  "includeAboutText": false,
  "requestDelayMs": 0,
  "maxConcurrency": 1,
  "maxRequestRetries": 1,
  "requestTimeoutSecs": 30,
  "maxResponseBytes": 5000000,
  "locale": "en-US",
  "renderJavaScript": false,
  "useBrowser": false,
  "page": 1,
  "sampleVideoTitles": false,
  "maxVideoSamples": 20,
  "maxSamplingRequests": 10,
  "includeRecentVideos": false,
  "maxRecentVideos": 5,
  "maxFeedRequests": 10
}
```

# Actor output Schema

## `output` (type: `string`):

No description

## `runHealth` (type: `string`):

No description

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

No description

## `runSummary` (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-keywords-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-keywords-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-keywords-scraper --silent --output-dataset

```

## MCP server setup

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