Learn about the YouTube Scraper Tool used by the Newsletter AI Agent
BaseTool
that interacts with an Apify YouTube scraper actor. Here’s the implementation:
Parameter | Type | Description | Default |
---|---|---|---|
searchQueries | List[str] | Search terms for YouTube’s search bar | Required |
maxResultsShorts | int | Limit the number of Shorts videos to crawl | 0 |
maxResultStreams | int | Limit the number of Stream videos to crawl | 0 |
startUrls | List[str] | Direct URLs to YouTube videos, channels, playlists | [] |
downloadSubtitles | bool | Download subtitles for videos | False |
saveSubsToKVS | bool | Save downloaded subtitles to key-value store | False |
subtitlesLanguage | str | Language for subtitles download | ”any” |
preferAutoGeneratedSubtitles | bool | Prefer auto-generated subtitles | False |
subtitlesFormat | str | Format for subtitle downloads | ”srt” |
sortingOrder | str | How to sort the results | None |
dateFilter | str | Filter results by date | None |
videoType | str | Filter by video type | None |
lengthFilter | str | Filter by video length | None |
isHD | bool | Filter for HD videos | None |
hasSubtitles | bool | Filter for videos with subtitles | None |
title
: The title of the videourl
: The URL of the videodescription
: The description of the videochannelName
: The name of the channel that uploaded the videochannelUrl
: The URL of the channelviewCount
: The number of views the video haspublishedAt
: The date the video was publishedduration
: The duration of the video