Youtube Scraper

  • streamers/youtube-scraper
  • Modified
  • Users 565
  • Runs 6.8k
  • Created by Author's avatarStreamers

YouTube crawler and video scraper. Alternative YouTube API with no limits or quotas. Extract and download channel name, likes, number of views, and number of subscribers.

Youtube Scraper

Search term

searchKeywords

Optional

string

Enter a search term just like you would enter it in YouTube's search bar.

Maximum search results

maxResults

Optional

integer

Limit the number of videos you want to crawl. If you scrape a channel, acts as a limit for regular videos.

Maximum shorts

maxResultsShorts

Optional

integer

Limit the number of Shorts videos you want to crawl.

Maximum streams

maxResultStreams

Optional

integer

Limit the number of Stream videos you want to crawl.

Direct URLs

startUrls

Optional

array

Enter a link to a YouTube video, channel, playlist or search results page. You can also import a CSV file or Google Sheet with a list of URLs.
Note: Input from Search term will be ignored when using this option. If you only want to scrape shorts/streams, set Maximum search results to 0, otherwise they represented number of regular videos requested

Download subtitles

downloadSubtitles

Optional

boolean

If set to true, the scraper will download subtitles for the video and convert them to .srt format.

Save subtitles to key-value store

saveSubsToKVS

Optional

boolean

If set to true, the scraper will save the downloaded subtitles to the key-value store.
Note: Download subtitles must be turned on for this option to work.

Subtitle language

subtitlesLanguage

Optional

Enum

Language to download subtitles in.
Note: Download subtitles must be turned on for this option to work.

Options:

"en": string"de": string"es": string"fr": string"it": string"ja": string"ko": string"nl": string"pt": string"ru": string

Prefer automatically generated subtitles.

preferAutoGeneratedSubtitles

Optional

boolean

If set to true, automatically generated subtitles are preferred to user subtitles.Note: A subtitle language must be selected for this option to work.

Subtitle format

subtitlesFormat

Optional

Enum

Select in what format you want to download subtitles

Options:

"srt": string"vtt": string"xml": string"plaintext": string

Sorting order

sortingOrder

Optional

Enum

Select Youtube sorting parameter for search

Options:

"relevance": string"rating": string"date": string"views": string

Date filter

dateFilter

Optional

Enum

Select Youtube upload date filter for search

Options:

"hour": string"today": string"week": string"month": string"year": string

Video type filter

videoType

Optional

Enum

Select Youtube video type filter for search

Options:

"video": string"movie": string

Length filter

lengthFilter

Optional

Enum

Select Youtube video length filter for search

Options:

"under4": string"between420": string"plus20": string

HD

isHD

Optional

boolean

Will apply the HD filter for search

Subtitles/CC

hasSubtitles

Optional

boolean

Will apply the Subtitles/CC filter for search

Creative Commons

hasCC

Optional

boolean

Will apply the Creative Commons filter for search

3D

is3D

Optional

boolean

Will apply the 3D filter for search

Live

isLive

Optional

boolean

Will apply the Live filter for search

Purchased

isBought

Optional

boolean

Will apply the Purchased filter for search

4K

is4K

Optional

boolean

Will apply the 4K filter for search

360 degrees

is360

Optional

boolean

Will apply the 360 degrees filter for search

Location

hasLocation

Optional

boolean

Will apply the Location filter for search

HDR

isHDR

Optional

boolean

Will apply the HDR filter for search

VR180

isVR180

Optional

boolean

Will apply the VR180 filter for search

Only newer than (e.g. 2023-06-15)

oldestPostDate

Optional

string

Only posts uploaded after or on this date will be scraped. Note, that if you select this, sorting parameter will be auto-reset to NEWEST

Videos from last (e.g. 2) days

scrapeLastNDays

Optional

integer

Specify how old scraped videos can be (in days). Putting 1 will get you only today's videos, 2 - tomorrow's and today's, and so on. If the Only newer than field was set, the most recent one will be chosen. Note, that if you select this, sorting parameter will be auto-reset to NEWEST

Sort videos by

sortVideosBy

Optional

Enum

Maps to the three sorting buttons on the top of the channel videos page. Currently only applies to the main tab: Videos.

Options:

"NEWEST": string"POPULAR": string"OLDEST": string