youtube
Collect videos, Shorts, channels, playlists, and comments from search queries or URLs without an API key, with optional detail enrichment and comment replies.
Instructions
YouTube Scraper: Videos, Shorts, Channels & Comments
Fast YouTube scraper with no browser and no API key: keyword search with filters, channel videos and Shorts, channel About data, playlists, video details (exact likes, date, description) and comments with replies. $1.00 per 1,000 results.
Pricing (pay per event, billed to your Apify account): Result: $0.001; platform usage billed to your account.
Runs on Apify as subimpact/youtube-scraper.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | Two-letter country code (gl), e.g. 'US'. | US |
| language | No | Interface language code (hl), e.g. 'en'. | en |
| _maxItems | No | How many dataset items to return to the model (1-1000, default 50). Truncates the response only; it does not change what the Actor collects or charges for. | |
| startUrls | No | YouTube URLs: videos (/watch?v=, youtu.be), Shorts (/shorts/), channels (@handle, /channel/, /c/, /user/) or playlists (?list=). | |
| searchSortBy | No | Sort order for search results. | relevance |
| _maxChargeUsd | No | Per-run spending cap in USD (default 0.5). Passed to Apify as the run option maxTotalChargeUsd, so the run stops when it reaches this charge. | |
| searchQueries | No | Keyword searches to run. Each query yields up to 'maxResultsPerQuery' results. | |
| channelContent | No | Which tab to scrape for channel URLs ('videos', 'shorts' or 'both'). A /@handle/shorts URL always forces Shorts. | videos |
| commentsSortBy | No | Comment order: 'top' (most upvoted) or 'newest'. | top |
| includeReplies | No | Also scrape replies to comments. | |
| maxConcurrency | No | How many inputs are processed in parallel. Pagination inside one input is sequential. | |
| scrapeComments | No | Also scrape comments for each video (adds 'comment' rows to the dataset). | |
| maxTotalResults | No | Global cap on total rows across all inputs. Hard stop: no rows past this number. | |
| searchUploadDate | No | Upload-date filter for search results. | any |
| enrichVideoDetails | No | Fetch the video page for every result for exact like counts, exact publish date, full description and comment count. One extra request per video. | |
| includeChannelInfo | No | For every channel URL, also deliver one 'channel' row with subscriber counts, About-panel info and links. | |
| maxResultsPerQuery | No | Maximum rows per search query. | |
| proxyConfiguration | No | Optional. Proxies are usually not needed: the scrape works over plain HTTPS from datacenter IPs. Enable Apify Proxy only for high volumes. | |
| maxCommentsPerVideo | No | Maximum TOP-LEVEL comment rows per video. Replies are capped separately by Max Replies Per Comment and do not count toward this limit. | |
| maxVideosPerChannel | No | Maximum video/short rows per channel or playlist URL. | |
| searchIncludeShorts | No | Also extract Shorts rows from search result shelves. | |
| maxRepliesPerComment | No | Maximum reply rows per comment thread. Reply rows do not count toward Max Comments Per Video. |