Scrapers
YouTube trends
Pure InnerTube API access. No browser, no PoToken in v1. Tracks YouTube trending feeds per country, channel uploads, video metadata, search results, and Shorts. Writes one item per video or channel to the dataset.
Updated today
Overview
At a glance
- Worker
ultron-youtube-trends- Runtime
- youtubei.js (pure InnerTube), no browser
- Modes
- trending, channel, video, search, shorts
- Default
- trending feed for US
- Cap
- 500 items per target. Hard ceiling 250k per run.
- Proxy
- Residential US default; tunable per country
- Default delay
- 1500 ms per call, jittered 1 to 3 seconds
Picked when a workspace needs to observe what is rising on YouTube for a region, audit a channel's recent uploads, or backfill metadata for a known video id list. Most chat-driven calls land in trending or search mode; the marketing swarm uses channel mode to pull competitor uploads weekly.
Five modes
The mode knob selects which surface to scrape.
| Mode | Inputs | Returns |
|---|---|---|
| trending | regions[] (ISO 3166-1 alpha-2) | One trending feed per country, max 50 items by default. |
| channel | channelIds[] (UC-prefixed) | Recent uploads for each channel id. |
| video | videoIds[] (11-char id) | Full metadata enrichment for known video ids. |
| search | searchQueries[] | Search result lists per query. |
| shorts | regions[] | Shorts trending feed per country. |
Input schema
.actor/INPUT_SCHEMA.jsonjson
Tip
The client knob is the escape hatch. WEB carries the most metadata but is also the most aggressively gated. ANDROID and IOS return reduced fields but bypass the PoToken requirement entirely. ANDROID_VR is the most aggressive bypass when the others fail.
Crawl flow
Per-target loop with InnerTube under the hood.
src/__main__.pypy
Output shape
One row per video or channel.
dataset-row.jsonjson
InnerTube clients
| Client | Fields | When to use |
|---|---|---|
| WEB | Full metadata, all fields populated. | Default. First-line client. |
| ANDROID | Most fields, a few mobile-only. | When WEB hits the bot gate. Slightly less metadata. |
| IOS | Slimmer payload, fewer thumbnails. | Second-line fallback. |
| ANDROID_VR | Bypass-focused, minimal metadata. | Last resort when both WEB and ANDROID gate. |
| TV | TV-specific metadata. Niche. | Rarely useful. |
Webhook contract
actor.jsonjson
File map
actors/youtube-trends
.actor
actor.json
INPUT_SCHEMA.json
src
__main__.pyInnerTube wrapper + per-mode dispatchers
Dockerfile
requirements.txt
README.md