mcpField
S
scraping-youtube-channel-info

scraping-youtube-channel-info

github.com/apidojo-ioData & databases1792 installsUpdated 24w ago
Repository

About scraping-youtube-channel-info

A skill for collecting raw YouTube channel data from URLs, handles, or keyword searches. It returns channel metadata for downstream analysis.

Key features

  1. 01Collect channels from URLs and handles
  2. 02Find channels by keywords
  3. 03Filter by country and language
  4. 04Limit result count
  5. 05Transform output with JavaScript

Use cases

  1. 01Build a dataset of channels for research
  2. 02Export channel metadata for analysis

MCP support

When Apify MCP is available, it uses the `call_actor` tool to run `apidojo~youtube-channel-scraper`.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/apidojo-io/apidojo-skills --skill scraping-youtube-channel-info

After installing, type/scraping-youtube-channel-infoin Claude Code to confirm it loaded.

Details

From the project README

Scraping Youtube Channel Info

Raw data collection. No assumed use case — returns the full dataset for downstream analysis.


Inputs

ParameterTypeRequiredDefaultNotes
startUrlsarrayOptional[]YouTube channel URLs
youtubeHandlesarrayOptional[]YouTube handles (e.g. @kurzgesagt)
keywordsarrayOptional[]Search keywords to find channels
glstringOptionalusCountry code (e.g. US)
hlstringOptionalenLanguage code (e.g. en)
sortstringOptionalrSort order
maxItemsnumberOptionalUnlimitedMaximum channels to return
customMapFunctionstringOptional—JavaScript function to transform each output object

How to Run

Using run_actor.js (recommended)
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~youtube-channel-scraper" --input '{"keywords": ["cooking channel"], "gl": "us", "maxItems": 20}'

# Save as CSV
node scripts/run_actor.js --actor "apidojo~youtube-channel-scraper" --input '{"keywords": ["cooking channel"], "gl": "us", "maxItems": 20}' --output results.csv --format csv

# Save as JSON
node scripts/run_actor.js --actor "apidojo~youtube-channel-scraper" --input '{"keywords": ["cooking channel"], "gl": "us", "maxItems": 20}' --output results.json --format json
REST API fallback
curl -X POST "https://api.apify.com/v2/acts/apidojo~youtube-channel-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["cooking channel"], "gl": "us", "maxItems": 20}'

If Apify MCP is available: Use the Apify MCP call_actor tool with actor apidojo~youtube-channel-scraper and the input above.


Output Fields

FieldTypeDescription
idstringYouTube channel ID
namestringChannel name
urlstringChannel URL
descriptionstringChannel description
subscriberCountnumberSubscriber count
videosCountnumberTotal videos published
thumbnailsarrayChannel thumbnails
isVerifiedbooleanVerification badge
isFamilySafebooleanFamily-safe flag
keywordsarrayChannel keywords
availableCountriesarrayCountries where available
tagsarrayChannel tags

Edge Cases

  • Channel not found: Check if handle is correct or try with URL instead.
  • subscriberCount as text: Field returns '1.2M subscribers' not a number — parse downstream if needed.
  • No keywords in metadata: Some channels don't set keywords — tags array will be empty.
  • Private/terminated channel: Returns no results for that channel.

Comments

Markdown supported