Youtube Search Scraper avatar

Youtube Search Scraper

Pricing

from $0.20 / 1,000 result items

Go to Apify Store
Youtube Search Scraper

Youtube Search Scraper

This Apify Actor performs a YouTube video search based on a given keyword or phrase, and extracts detailed metadata for each video found.

Pricing

from $0.20 / 1,000 result items

Rating

5.0

(1)

Developer

Scraper One

Scraper One

Maintained by Community

Actor stats

17

Bookmarked

366

Total users

16

Monthly active users

3 hours ago

Last modified

Security

Limited permissions

Share

Apify Actor

This Apify Actor performs a YouTube video search based on a given keyword or phrase, and extracts detailed metadata for each video found. When available in YouTube search results, metadata includes video title, URL, thumbnail, channel name, duration, view count, publish time, estimated publication timestamp, and a short description snippet. Some fields may be absent, especially for Shorts (see Shorts and optional fields).

Ideal for trend tracking, market research, content discovery, or monitoring topics of interest on YouTube. Discover high-performing videos in your niche and understand viewer engagement and timing patterns. 🎯


Features

  • πŸ” Search YouTube by keywords
  • ⏳ Filter by time window, features, time window, upload date, druation
  • πŸ“Έ Extract video thumbnails
  • πŸ“Έ Sort by Relevance, Upload date, View count, Rating
  • πŸ“Š Retrieve view counts, durations, publish dates and more
  • πŸ“ Grab description snippets for quick context

Input Parameters

ParameterTypeRequiredDescription
querystringβœ…Search query to look for videos. Can be a keyword or phrase.
resultsCountnumber❌Maximum number of videos to extract. If not set, only a few of the first videos will be returned.
uploadDatestring❌Search for videos uploaded within specified dates only (Last hour, Today etc.).
featuresstring❌Apply Features filter to searched videos (Live, 4K, HD etc.).
sortBystring❌Apply sorting to searched videos. If not selected, defaults to platform default: 'relevancy'.
durationstring❌Apply Duration filter to searched videos ("Under 4 minutes", "4-20 minutes", "Over 20 minutes".).

Example Input

{
"query": "Trump",
"resultsCount": 10
}

Output Data

The actor returns an array of JSON objects representing individual YouTube videos and Shorts with the metadata available in search results.

Example Output

[
{
"id": "lawvcQd3syc",
"url": "https://www.youtube.com/watch?v=lawvcQd3syc",
"title": "Trump’s tariff triumph as a mind-blowing 50 world leaders beg to negotiate with the president",
"thumbnailUrl": "https://i.ytimg.com/vi/lawvcQd3syc/hq720.jpg",
"channelName": "Sky News Australia",
"length": 418,
"viewCount": 367429,
"publishedTimeText": "16 hours ago",
"estimatedPublishedTimestamp": 1744000134634,
"interpolatedTimestamp": 1744000134634,
"descriptionSnippet": "Donald Trump's tariffs are causing mass hysteria across the globe..."
},
{
"id": "MOSSX746Yi8",
"url": "https://www.youtube.com/shorts/MOSSX746Yi8",
"title": "A drive through Singapore | Audi RS 5",
"thumbnailUrl": "https://i.ytimg.com/vi/MOSSX746Yi8/oardefault.jpg",
"viewCount": 7800
}
]

Estimated publication timestamp

estimatedPublishedTimestamp is an estimated publication time expressed as a Unix timestamp in milliseconds. It is calculated from publishedTimeText (for example, "3 days ago") and the time of collection. Relative labels are rounded, so this value is an estimate rather than the exact upload time.

interpolatedTimestamp remains available as a backward-compatible alias with the same value. Use estimatedPublishedTimestamp in new integrations. Both fields are omitted when the publication date is missing or cannot be parsed.

Shorts and optional fields

YouTube can return Shorts alongside regular videos. A Shorts search card may provide only id, url, title, thumbnailUrl, and viewCount, as shown in the second result above.

For these cards, YouTube may omit channelName, length, publishedTimeText, descriptionSnippet, and videoSummary. Without a usable publication date, estimatedPublishedTimestamp and its interpolatedTimestamp alias are also unavailable. Unavailable fields are omitted from the JSON output; they are not replaced with empty strings or zero values. Some metadata, such as videoSummary, may also be unavailable for regular videos.

The actor extracts the metadata supplied in search results. Filling in missing Shorts metadata would require additional requests for video details, increasing the run time and the number of requests to YouTube.

Verification note (2026-10-19): A local check examined 20 fresh YouTube search responses covering all 14 Shorts from a reported production output. Their search cards did not contain the missing metadata, including in menus, accessibility text, or additional response metadata. The existing mapper preserved the available fields; this check found no loss of those fields during mapping.

Usage

  1. Sign in to Apify and open the YouTube Search Scraper actor page.
  2. Input your search parameters (query, resultsCount, sorting type, features, duration, etc.).
  3. Run the actor from the UI or via API.
  4. Download results in JSON, CSV, or Excel format.

Limitations & Notes

  • YouTube's structure may change; this actor targets current layouts.
  • Results depend on YouTube's public search – private/unlisted videos are not included.
  • Use responsibly and comply with YouTube's Terms of Service.
  • Rate-limited – Free users can make only a few requests per day. Contact us if you need higher or custom limits!

Best Use Case Flow

  • πŸ” Use this actor to find YouTube videos by keyword
  • πŸ“₯ Pipe video URLs into a YouTube Comments Scraper to extract replies
  • πŸ“Š Analyze engagement, comments, and popularity over time

Support & Contact

πŸ“¬ Need help or want to suggest a feature? Open an issue or contact us at scraper1one@gmail.com