Youtube Search Api avatar
Youtube Search Api

Pricing

$2.00 / 1,000 results

Go to Store
Youtube Search Api

Youtube Search Api

Developed by

john smith

Maintained by Community

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.

5.0 (2)

Pricing

$2.00 / 1,000 results

0

Monthly users

10

Runs succeeded

>99%

Last modified

10 days ago

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

Pricing

Pricing model

Pay per result 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Price per 1,000 items

$2.00