Youtube Search Scraper
Pricing
from $0.00005 / actor start
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
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| searchQuery | string | Yes | - | YouTube search query |
| maxResultsPerQuery | integer | No | 5 | Results to fetch (1-500) |
| type | string | No | video | video, channel, or playlist |
| order | string | No | relevance | relevance, date, rating, title, videoCount, viewCount |
| videoDuration | string | No | any | any, short, medium, long (video only) |
| publishedAfter | string | No | - | ISO datetime filter |
| publishedBefore | string | No | - | ISO datetime filter |
| regionCode | string | No | - | ISO 3166-1 alpha-2 country code |
| relevanceLanguage | string | No | - | BCP-47 language code |
| safeSearch | string | No | moderate | moderate, none, strict |
| includeVideoDetails | boolean | No | true | Fetch duration and stats |
| maxConcurrency | integer | No | 3 | Parallel 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
maxResultsPerQueryreasonable - 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.