Youtube Search Api

Youtube Search Api

Search YouTube videos, channels, and playlists using the YouTube Data API. Features comprehensive filtering options, automatic authentication, and detailed results including thumbnails and metadata. Perfect for content research, marketing analysis, and finding targeted videos.

SOCIAL_MEDIAAUTOMATIONFOR_CREATORSApify

YouTube Search API Actor

This Apify actor provides a simple interface to search YouTube videos using the YouTube Data API.

Features

  • Search YouTube videos with comprehensive metadata
  • Get up to 1000 video results in a single run
  • Automatic pagination handling behind the scenes
  • Full video statistics (views, likes, comments)
  • Channel information and statistics
  • HTML entities properly decoded for better readability

Input Parameters

The actor accepts the following input parameters:

ParameterTypeDescription
qStringRequired - The search query
maxResultsIntegerThe maximum number of items to return (1-1000, default: 100)
useFiltersBooleanEnable to use advanced filtering options
channelTypeStringThe type of channel to search for (any, show)
eventTypeStringThe event type to search for (completed, live, upcoming)
orderStringThe order to sort the results by (date, rating, relevance, title, videoCount, viewCount)
publishedAfterStringOnly show content published after this date (RFC 3339 format)
publishedBeforeStringOnly show content published before this date (RFC 3339 format)
regionCodeStringThe region code for search results (ISO 3166-1 alpha-2 country code, e.g. US)
relevanceLanguageStringThe language to search in (ISO 639-1 two-letter language code, e.g. en)
safeSearchStringWhether to include restricted content (moderate, none, strict)
videoDefinitionStringWhether to search for HD or standard videos (any, high, standard)
videoDurationStringThe duration of videos to search for (any, long, medium, short)
videoLicenseStringThe license of videos to search for (any, creativeCommon, youtube)

Output

The actor outputs a structured dataset with comprehensive information about each video:

1{
2  "title": "Video Title",
3  "type": "video",
4  "channelName": "Channel Name",
5  "date": "2023-01-01T00:00:00Z",
6  "text": "Video description...",
7  "thumbnailUrl": "https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg",
8  "order": 0,
9  "input": "search query",
10  "hashtags": ["hashtag1", "hashtag2"],
11  "channelId": "CHANNEL_ID",
12  "channelUrl": "https://www.youtube.com/channel/CHANNEL_ID",
13  "channelUsername": "username",
14  "numberOfSubscribers": 1000000,
15  "channelViewCount": 50000000,
16  "channelVideoCount": 500,
17  "hiddenSubscriberCount": false,
18  "channelCreatedAt": "2020-01-01T00:00:00Z",
19  "id": "VIDEO_ID",
20  "url": "https://www.youtube.com/watch?v=VIDEO_ID",
21  "viewCount": 10000,
22  "likes": 1000,
23  "commentsCount": 100,
24  "commentsTurnedOff": false,
25  "duration": 180,
26  "keywords": ["keyword1", "keyword2"],
27  "isMembersOnly": false
28}

Authentication

This actor uses an external token server to authenticate requests to the YouTube API. No additional authentication is required.

Usage

  1. Create a new task for the YouTube Search API actor on the Apify platform
  2. Configure your search parameters
  3. Run the task
  4. Access the results in the task's dataset

Advantages Over YouTube API Direct Use

  • Automatically handles pagination to get up to 1000 results
  • Combines multiple API endpoints (search, videos, channels) for comprehensive data
  • Properly decodes HTML entities in titles and descriptions
  • Extracts hashtags from video descriptions
  • Provides clean, consistent data format
  • No API key or quota management required

Limitations

  • The actor is subject to YouTube API quota limitations
  • Focuses exclusively on video search results

Frequently Asked Questions

Is it legal to scrape job listings or public data?

Yes, if you're scraping publicly available data for personal or internal use. Always review Websute's Terms of Service before large-scale use or redistribution.

Do I need to code to use this scraper?

No. This is a no-code tool — just enter a job title, location, and run the scraper directly from your dashboard or Apify actor page.

What data does it extract?

It extracts job titles, companies, salaries (if available), descriptions, locations, and post dates. You can export all of it to Excel or JSON.

Can I scrape multiple pages or filter by location?

Yes, you can scrape multiple pages and refine by job title, location, keyword, or more depending on the input settings you use.

How do I get started?

You can use the Try Now button on this page to go to the scraper. You’ll be guided to input a search term and get structured results. No setup needed!