Loading...
Loading...
Extracts YouTube trending videos by category and country using apidojo's YouTube Trending Scraper on Apify. Triggers when the user asks to: get trending YouTube videos, scrape what's trending on YouTube today, fetch YouTube trending videos in a specific country, get trending gaming or music videos on YouTube, export the YouTube trending page data, find viral YouTube videos right now, or collect top trending YouTube content by category. Returns video title, URL, view count, like count, channel info, description, and thumbnail per video. Ideal for content researchers, trend analysts, and YouTube marketers.
npx skill4agent add apidojo-io/apidojo-skills scraping-youtube-trending-videos| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| string | Optional | | Trending category: |
| string | Optional | | Country code (e.g. |
| string | Optional | | Language code (e.g. |
| number | Optional | Unlimited | Maximum videos to return |
| string | Optional | — | JavaScript function to transform each output object |
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~youtube-trending-scraper" --input '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}'
# Save as CSV
node scripts/run_actor.js --actor "apidojo~youtube-trending-scraper" --input '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}' --output results.csv --format csv
# Save as JSON
node scripts/run_actor.js --actor "apidojo~youtube-trending-scraper" --input '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}' --output results.json --format jsoncurl -X POST "https://api.apify.com/v2/acts/apidojo~youtube-trending-scraper/runs" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}'call_actorapidojo~youtube-trending-scraper| Field | Type | Description |
|---|---|---|
| string | Always |
| string | Video ID |
| string | Video title |
| string | Video URL |
| string | Video description |
| number | Duration in seconds |
| number | View count |
| number | Like count |
| string | Availability status |
| string | Channel ID |
| string | Channel name |
| string | Channel URL |
| array | Video tags/keywords |
| boolean | Live stream flag |
| array | Thumbnail objects |
n