YouTube
Scrape public YouTube videos, channels, playlists, and comments
What it does
Pulls public YouTube data — videos, channels, playlists, and comment threads — and returns structured results you can read in chat or in the playground output panel.
How it works
YouTube is a native connector. No YouTube account or API key is required. AINexLayer fetches public pages when you ask.
- Chat — describe what you need (a channel, video URL, or topic). The agent runs the YouTube scraper automatically and answers from the results.
- API Playground — run the scraper yourself: open API Playground in the workspace sidebar, pick YouTube, choose a verb, fill in the form, and click Run. Results appear in the output panel; every run is logged under Runs with duration and cost.
Use in API Playground
Scrape videos, channels, and playlists
- Open API Playground → YouTube → Scrape
- Add at least one input:
- URLs — a video, channel (
/@handle), playlist, shorts, or hashtag page - Search queries — keywords to search on YouTube
- URLs — a video, channel (
- Set Max results to 10–20 for a first run
- Optional: enable Download subtitles if you need transcript text (slower)
- Click Run
Fetch comments
- Open API Playground → YouTube → Comments
- Paste one or more Video URLs
- Set Max comments to 10–20 for a first run
- Optional: change Sort by to
TOP_COMMENTSorNEWEST_FIRST - Click Run
Useful options
| Option | What it does |
|---|---|
| Max results | How many videos to return per channel, playlist, or search (up to 1000) |
| Download subtitles | Attach subtitle text to each video |
| Subtitles language | Language code for subtitles (default en) |
| Max comments | Comments and replies per video |
| Sort by | Order comments by top or newest |
What you get back
Scrape returns video items with title, views, likes, publish date, channel info, description, and optional subtitles. Comments returns comment items with author, text, like count, reply relationships, and timestamps.
Runs are billed per item returned — one charge per video and one per comment or reply. The price per item is shown on the YouTube card in API Playground.
