Youtube Explorer avatar
Youtube Explorer
Under maintenance
Try for free

7 days trial then $30.00/month - No credit card required now

View all Actors
This Actor is under maintenance.

This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?

See alternative Actors
Youtube Explorer

Youtube Explorer

jupri/youtube-explorer
Try for free

7 days trial then $30.00/month - No credit card required now

โ–ถ๏ธ Scrape Youtube.com

Welcome To YouTube Explorer

dont be sad readme is here

โ–ถ๏ธ About YouTube.com

YouTube is an American online video sharing and social media platform headquartered in San Bruno, California. It was launched on February 14, 2005, by Steve Chen, Chad Hurley, and Jawed Karim. It is currently owned by Google, and is the second most visited website, after Google Search. YouTube has more than 2.5 billion monthly users[7] who collectively watch more than one billion hours of videos each day.[8] As of May 2019, videos were being uploaded at a rate of more than 500 hours of content per minute.[9][10]

โ–ถ๏ธ About This Actor

Scrape publicly data about video, movie, song, music from Youtube.com. Search videos, comments, sort & filter by type, upload date, video quality & features.

โ–ถ๏ธ Tutorial

๐Ÿฟ Basic Parameters

ParameterTypeDescription
querystring arrayQuery, Search Terms or URL
limitintegerNumber of results (per-query)

๐Ÿฟ Search Filters

ParameterTypeValuesDescription
filters.sortstringdate views ratingVideo sorting
filters.kindstring(See below)Media types
filters.featuresarray360 3d 4k creative hd hdr live location purchased subtitle vr180Video features

๐Ÿฟ Media Types

TypeDescription
videoVideos
channelYouTube Channels
playlistVideo Playlists
movieMovie Videos (Trailers)
songSongs
musicMusic Videos
musiclistMusic Playlist
albumMusic Albums
artistArtist channels
podcastPodcasts
episodePodcast episodes
userYouTube users

๐Ÿฟ Basic Usage

Search videos

{ "query": ["sponge bobs"], "filters.kind": "video", "limit": 10 }

Autodetect youtube URL for possible contents

{ "query": ["https://www.youtube.com/results?search_query=python"], "limit": 10 }

๐Ÿฟ Advanced Usage

YouTube Query Language (YQL) :

[ [ <COMMAND:> | # | @ ] [ <NAME> | <ID> | <KEYWORD> ] [ / <SECTION> ] | <URL> ]

Possible QUERY values :

FormatExampleDescription
KEYWORDSsquare pantsSearch Anything
#HASHTAG#webscrapingSearch Hashtag
/shorts#webscraping/shortsShorts videos
<VIDEO_ID>WQNgQVRG9_UScrape Video
/commentsWQNgQVRG9_U/commentsNew comments
/top_commentsWQNgQVRG9_U/top_commentsTop comments
<PLAYLIST_ID>PLxxxxxxxxxxxxxxxxxxxxxxxScrape Playlist
<CHANNEL_ID>UCxxxxxxxxxxxxxxxxxxxxxxxScrape Channel
@CHANNEL_NAME@apify
/featured@apify/featured
/videos@apify/videosChannel videos
/shorts@apify/shortsChannel shorts (reels)
/streams@apify/streamsChannel live streams
/playlist@apify/playlistChannel playlists
/community@apify/communityChannel community
/channels@apify/channelsRelated channels
/store@apify/storeProducts page
/releases@apify/releasesChannel releases
https:URLhttps://www.youtube.comStart URL
/searchhttps://www.youtube.com/results
/channel/<channel>https://www.youtube.com/channel/UCxxxxxx
/@<channel>https://www.youtube.com/@apify

โ–ถ๏ธ Examples

๐Ÿฟ Example #1: Searching

Search video based on keywords.

{ "query": ["square pants"], "limit": 100 }

Sorting the results by specific key.

{ "query": ["square pants"], "filters.sort": "date", "limit": 20 }

Filters results by type.

{ "query": ["python"], "limit": 20, "filters.kind": "channel" }

Filter videos by features.

1{ 
2	"query": ["indonesia"], 
3	"limit": 20, 
4	"filters.kind": "video",
5	"filters.features": ["3d", "hd"]
6}

๐Ÿฟ Example #2: Channel, Playlist and Hashtag

Scraping channel contents (use: channel_id prefix UCxxxx or @NAME)

{ "query": "UCxxxxxxxxxxxxxxxxxxxxxxx/videos" }
{ "query": "@apify/playlist" }

Scraping playlist contents (playlist_id prefix PLxxxx)

{ "query": "PLxxxxxxxxxxxxxxxxxxxxxxx" }

Scraping hashtag contents (prefix #HashTag)

{ "query": "#webscraping" }
{ "query": "#travel/shorts" }

๐Ÿฟ Example #3: Video Data

Scrape video comments

{ "query": "__VIDEO_ID__/comments" }
{ "query": "__VIDEO_ID__/top_comments" }

โ–ถ๏ธ Results Grouping

Some results can belong to a group. A group identified by group field, consist of a group header followed by several object (group member).

Example :

1[
2	...
3	# group header
4	{ "group": 1, "type": "group", "title": "Shorts" },
5	# group items
6	{ "group": 1, "type": "video", "title": "Is web scraping legal?", ... },
7	{ "group": 1, "type": "video", "title": "Scrape data from any website!", ... },
8	{ "group": 1, "type": "video", "title": "Python WEB SCRAPING in 30 Seconds!", ... }
9	...
10]

โ–ถ๏ธ Output Samples

Video without metadata

1{
2    "id"		: "eQoO3Wh9JWM",
3    "published"	: "1 year ago",
4    "duration"	: "3:25",
5    "title"		: "How to extract data from Google Search with Google SERPs Scraper",
6    "type"		: "video",
7    "url"		: "https://www.youtube.com/watch?v=eQoO3Wh9JWM",
8    "views"		: "8,287 views"
9}

Video with metadata (using include_video_metadata=true option)

1{
2    "id"		: "eQoO3Wh9JWM",
3    "published"	: "2022-02-06",
4    "duration"	: 204, # duration in seconds
5    "title"		: "How to extract data from Google Search with Google SERPs Scraper",
6    "type"		: "video",
7    "uploaded"	: "2022-02-06",
8    "url"		: "https://www.youtube.com/watch?v=eQoO3Wh9JWM",
9    "views"		: 8287, # views count
10    "streams": {
11        "formats": [ ... ],	# list of video formats (video + audio stream)
12        "audios": [ ... ], 	# list of audio-only streams
13        "videos": [ ... ]	# list of video-only streams
14    }
15}

โ–ถ๏ธ Support

โšก๏ธ Feel free to reach out to the developer for any issues or suggestions for improvement.

Developer
Maintained by Community
Actor metrics
  • 5 monthly users
  • 2 stars
  • 100.0% runs succeeded
  • 6.1 hours response time
  • Created in Sep 2022
  • Modified 9 days ago