Youtube Search Scraper avatar
Youtube Search Scraper

Pricing

from $0.60 / 1,000 results

Go to Apify Store
Youtube Search Scraper

Youtube Search Scraper

Scrape YouTube search results for long-form videos or Shorts. Get detailed video stats, channel info, thumbnails, tags, and more via YouTube Data API.

Pricing

from $0.60 / 1,000 results

Rating

0.0

(0)

Developer

Grow Media

Grow Media

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Scrape YouTube search results for videos (long-form or shorts) with detailed video and channel information.

Features

  • Search by Query - Search YouTube for any keyword or phrase
  • Video Type Filter - Choose between long-form videos or YouTube Shorts
  • Detailed Video Data - Get comprehensive video information including views, likes, comments, duration, and more
  • Channel Information - Includes uploader's channel details like subscriber count, total videos, avatar, etc.
  • Pagination Support - Automatically fetches multiple pages until target count is reached
  • YouTube Data API Integration - Uses official API for accurate and detailed metadata

Input Parameters

ParameterTypeRequiredDefaultDescription
queriesarrayYes["how to make money"]List of search queries to scrape
maxResultsintegerNo50Maximum videos per query (1-500)
videoTypestringNo"long"Video type: "long" for long-form videos, "short" for YouTube Shorts

Example Input

Search for Long-form Videos

{
"queries": ["python tutorial", "web development"],
"maxResults": 100,
"videoType": "long"
}

Search for YouTube Shorts

{
"queries": ["funny cats", "cooking hacks"],
"maxResults": 50,
"videoType": "short"
}

Multiple Queries

{
"queries": [
"machine learning tutorial",
"data science for beginners",
"python projects"
],
"maxResults": 30,
"videoType": "long"
}

Output Data

Each video in the output dataset contains:

Video Information

FieldTypeDescription
titlestringVideo title
idstringYouTube video ID
urlstringFull video URL
typestring"video" or "short"
thumbnailUrlstringHigh-quality thumbnail URL
viewCountintegerNumber of views
likesintegerNumber of likes
commentsCountintegerNumber of comments
durationstringVideo duration (HH:MM:SS)
durationSecondsintegerDuration in seconds
datestringPublish date (ISO 8601)
descriptionstringVideo description
hashtagsarrayHashtags from description
tagsarrayVideo tags
categoryIdstringYouTube category ID

Channel Information

FieldTypeDescription
channelNamestringChannel name
channelIdstringYouTube channel ID
channelUrlstringChannel URL
channelUsernamestringChannel handle (@username)
channelDescriptionstringChannel description
channelAvatarUrlstringChannel avatar image URL
channelBannerUrlstringChannel banner image URL
numberOfSubscribersintegerSubscriber count
channelTotalVideosintegerTotal videos on channel
channelTotalViewsintegerTotal channel views
channelJoinedDatestringChannel creation date
channelLocationstringChannel country
isChannelVerifiedbooleanVerification status

Metadata

FieldTypeDescription
orderintegerResult order (0-indexed)
searchQuerystringThe search query used
searchVideoTypestringVideo type filter used
privacyStatusstringVideo privacy status
definitionstringVideo quality (hd/sd)
captionstringCaption availability
licensestringVideo license type
embeddablebooleanCan be embedded
madeForKidsbooleanMade for kids flag

Example Output

{
"title": "How to Make Money Online in 2024 - Complete Guide",
"id": "abc123xyz",
"url": "https://www.youtube.com/watch?v=abc123xyz",
"type": "video",
"thumbnailUrl": "https://i.ytimg.com/vi/abc123xyz/maxresdefault.jpg",
"viewCount": 1500000,
"likes": 45000,
"commentsCount": 3200,
"duration": "00:15:30",
"durationSeconds": 930,
"date": "2024-01-15T10:00:00Z",
"description": "In this video, I'll show you...",
"hashtags": ["#makemoney", "#sidehustle"],
"tags": ["make money online", "passive income", "side hustle"],
"channelName": "Finance Channel",
"channelId": "UCxxxxxxxxxxxxxxxx",
"channelUrl": "https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxx",
"channelUsername": "@financechannel",
"numberOfSubscribers": 2500000,
"channelTotalVideos": 450,
"channelAvatarUrl": "https://yt3.ggpht.com/...",
"order": 0,
"searchQuery": "how to make money",
"searchVideoType": "long"
}

Use Cases

  • Market Research - Analyze trending topics and competitor content
  • Content Ideas - Find popular videos in your niche for inspiration
  • Influencer Discovery - Find channels creating content on specific topics
  • Trend Analysis - Track video performance metrics across topics
  • Data Analysis - Build datasets for machine learning or analytics

Limitations

  • Maximum 500 videos per query
  • Rate limited to avoid API restrictions
  • Requires valid authentication cookies

Integrations

This actor can be integrated with:

  • Google Sheets - Export results directly to spreadsheets
  • Webhooks - Trigger actions when scraping completes
  • API - Call programmatically from your applications
  • Scheduling - Run automatically on a schedule

Support

If you encounter any issues or have questions, please open an issue on the actor's GitHub repository.