Youtube Search Scraper avatar

Youtube Search Scraper

Pricing

from $0.00005 / actor start

Go to Apify Store
Youtube Search Scraper

Youtube Search Scraper

Search YouTube with one or more queries via the official YouTube Data API and export structured results with optional video-level statistics and durations.

Pricing

from $0.00005 / actor start

Rating

0.0

(0)

Developer

Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Search YouTube with one or more queries using the official YouTube Data API v3 and export structured results to the default dataset.

What This Actor Does

This Actor allows you to search YouTube programmatically and get structured results including video details, channel information, and statistics. Perfect for content researchers, marketers, and developers building YouTube data pipelines.

Features

  • Uses official YouTube Data API v3 for reliable, stable results
  • Supports videos, channels, and playlists
  • Optional video details (duration, view count, likes, comments)
  • Pagination support for large result sets
  • Automatic retries with exponential backoff
  • Respects user spending limits

Use Cases

  • Content research and trend analysis
  • Competitor channel monitoring
  • Video metadata collection for ML/AI pipelines
  • Building searchable video databases
  • YouTube analytics and reporting

Input

ParameterTypeRequiredDefaultDescription
searchQuerystringYes-YouTube search query
maxResultsPerQueryintegerNo5Results to fetch (1-500)
typestringNovideovideo, channel, or playlist
orderstringNorelevancerelevance, date, rating, title, videoCount, viewCount
videoDurationstringNoanyany, short, medium, long (video only)
publishedAfterstringNo-ISO datetime filter
publishedBeforestringNo-ISO datetime filter
regionCodestringNo-ISO 3166-1 alpha-2 country code
relevanceLanguagestringNo-BCP-47 language code
safeSearchstringNomoderatemoderate, none, strict
includeVideoDetailsbooleanNotrueFetch duration and stats
maxConcurrencyintegerNo3Parallel queries (1-10)

Example input:

{
"searchQuery": "apify tutorial",
"maxResultsPerQuery": 50,
"type": "video",
"order": "relevance",
"includeVideoDetails": true
}

Output

Each dataset item contains:

{
"searchQuery": "apify tutorial",
"position": 1,
"resultKind": "video",
"resultId": "3rrpfW0bEdc",
"resultUrl": "https://www.youtube.com/watch?v=3rrpfW0bEdc",
"videoId": "3rrpfW0bEdc",
"channelId": "UCqD-h6ucBDUntfoapPyhp0Q",
"title": "Apify Tutorial For Beginners | How To Use Apify",
"description": "Apify review: https://speakaboutdigital.com/apify-review/",
"publishedAt": "2023-07-31T08:11:38Z",
"channelTitle": "Speak About Digital",
"thumbnailUrl": "https://i.ytimg.com/vi/3rrpfW0bEdc/hqdefault.jpg",
"duration": "PT10M41S",
"durationSeconds": 641,
"viewCount": 30007,
"likeCount": 338,
"commentCount": 13,
"embeddable": true,
"license": "youtube",
"privacyStatus": "public"
}

Pricing

  • Actor start: $0.00005 (synthetic event)
  • Search result: $0.01 per result

The Actor respects user-configured spending limits automatically.

Known Limitations

  • YouTube Data API has quota limits - keep maxResultsPerQuery reasonable
  • Some videos may not have like/comment counts available
  • Private videos are not accessible

Support

For issues or questions, visit the Apify Community or report bugs via Apify Console.