Youtube Scraper
Dapatkan data profile, postingan, comment, dan lainnya dengan lengkap dan konsisten.
Get User Profile
/v1/social-media:youtube-scraper/profile/:channelParameters
| Name | Type | In | Description |
|---|---|---|---|
| channel | string | path | Channel handle (@user), channel ID (UCxxx), atau full YouTube URL. Required. |
Example response
{"project":"social-media:youtube-scraper", "data": {"url":"https://www.youtube.com/@MrBeast","title":"MrBeast","avatar":"https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s900-c-k-c0x00ffffff-no-rj","banner":"https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj","handle":"@MrBeast","rssUrl":"https://www.youtube.com/feeds/videos.xml?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA","country":"PT","keywords":"mrbeast6000 beast mrbeast Mr.Beast mr","verified":true,"channelId":"UCX6OQ3DkcsbYNE6H8uQQuVA","vanityUrl":"http://www.youtube.com/@MrBeast","familySafe":true,"videoCount":982,"description":"SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!\nAccomplishments:\n- Raised $20,000,000 To Plant 20,000,000 Trees\n- Removed 30…","subscriberText":"489M subscribers","videoCountText":"982 videos","subscriberCount":489000000 },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Get User Videos
/v1/social-media:youtube-scraper/videos/:channelParameters
| Name | Type | In | Description |
|---|---|---|---|
| channel | string | path | Channel handle (@user), channel ID (UCxxx), atau full YouTube URL. Required. |
| tab | enum | query | Tab yang di-scrape. Default 'videos'. Cursor TIDAK kompatibel antar-tab. One of videos, shorts, streams. |
| page | number | query | Nomor halaman. Default 1, max 50. Per page ~30 video. |
Example response
{"project":"social-media:youtube-scraper", "data": {"tab":"videos","page":1,"count":30, "videos": [ {"url":"https://www.youtube.com/watch?v=AaMdXZMvT3w","title":"Survive 30 Days On An Island With Your Ex, Win $250,000","videoId":"AaMdXZMvT3w","duration":0,"thumbnail":"https://i.ytimg.com/vi/AaMdXZMvT3w/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAfwDXsWdeKhhuSk9s8s1TnaZVv0Q","viewCount":65000000,"viewCountText":"65M views","publishedTimeText":"6 days ago" }, {"url":"https://www.youtube.com/watch?v=6Zy5VLcEbZc","title":"I Stranded 100 People In The Wilderness For $250,000","videoId":"6Zy5VLcEbZc","duration":0,"thumbnail":"https://i.ytimg.com/vi/6Zy5VLcEbZc/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDXMEvwxFyL_olBjmhazAn6BR96jw","viewCount":110000000,"viewCountText":"110M views","publishedTimeText":"2 weeks ago" }, {"url":"https://www.youtube.com/watch?v=zRtGL0-5rg4","title":"Last To Leave Grocery Store, Wins $250,000","videoId":"zRtGL0-5rg4","duration":0,"thumbnail":"https://i.ytimg.com/vi/zRtGL0-5rg4/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAG-ou5PizjilKG7ZXLg61ZkWF6-g","viewCount":140000000,"viewCountText":"140M views","publishedTimeText":"1 month ago" } ], "channel": {"title":"MrBeast","handle":"@MrBeast","channelId":"UCX6OQ3DkcsbYNE6H8uQQuVA" },"hasMore":true,"nextPage":2 },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Get Video Detail
/v1/social-media:youtube-scraper/video/:idParameters
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Video ID (11 chars) atau full YouTube URL (watch, shorts, youtu.be). |
| url | string | query | Full YouTube video URL — alias untuk id (dipakai bulk async scraping). |
Example response
{"project":"social-media:youtube-scraper", "data": {"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ","tags":[],"title":"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","isLive":false, "channel": {"name":"Rick Astley","avatar":"https://yt3.ggpht.com/MOWpaiGJdgN4aKMI-NGQLL4jMVP3aDORlQpOBWooi0GSE2TGt4_9ncyepk1pCh-yWQ795AhPbw=s176-c-k-c0x00ffffff-no-rj","handle":"@RickAstleyYT","channelId":"UCuAXFkgsw1L7xaCfnd5JJOw","subscriberCount":4500000,"subscriberCountText":"4.5M subscribers" },"videoId":"dQw4w9WgXcQ", "captions": [ {"name":"English","language":"en","isAutoGenerated":false }, {"name":"English (auto-generated)","language":"en","isAutoGenerated":true }, {"name":"German (Germany)","language":"de-DE","isAutoGenerated":false } ],"category":"Music","duration":213, "keywords": [ "rick astley", "Never Gonna Give You Up", "nggyu" ],"isPrivate":false,"likeCount":19111621,"thumbnail":"https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp","viewCount":1775242717,"hasCaption":true,"isUnlisted":false,"uploadDate":"2009-10-24T23:57:33-07:00","description":"The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ …","publishDate":"2009-10-24T23:57:33-07:00","allowRatings":true,"isFamilySafe":true,"likeCountText":"19M", "availableCountries": [ "AD", "AE", "AF" ] },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Get Video Comments
/v1/social-media:youtube-scraper/comments/:idParameters
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Video ID (11-char) atau full YouTube URL. Required. |
| page | number | query | Nomor halaman. Default 1, max 50. Per page ~20 komentar. |
Example response
{"project":"social-media:youtube-scraper", "data": {"page":1,"count":20,"hasMore":true,"videoId":"dQw4w9WgXcQ", "comments": [ { "author": {"avatar":"https://yt3.ggpht.com/3s6evpqAiDU9tQR4sC2siJippbH2RWVPnwHgyl4V0th2iuQz0VDQZbUhQBGmsxLYo-mjG6TqZQ=s88-c-k-c0x00ffffff-no-rj","channelId":"UCBR8-60-B28hp2BmDPdntcQ","isCreator":false,"isVerified":true,"displayName":"@YouTube" },"content":"can confirm: he never gave us up","commentId":"Ugzge340dBgB75hWBm54AaABAg","likeCount":243000,"replyCount":1000,"replyLevel":0,"likeCountText":"243K","replyCountText":"1K","publishedTimeText":"1 year ago" }, { "author": {"avatar":"https://yt3.ggpht.com/ytc/AIdro_l_cdb12iEvfbconWqKW89iqSh69jL-NdmjZIuXCkr9Yg3iLzKFdf8SG32lYrR3AmrM9A=s88-c-k-c0x00ffffff-no-rj","channelId":"UCc4EU495shmfFPGMtoth0cQ","isCreator":false,"isVerified":false,"displayName":"@Sarah-x3j3z" },"content":"🇫🇷🇫🇷🇫🇷🇫🇷🇫🇷🍾🥂🎄💕😍👍🏻👌🏻🥰🥰🥰🥳😘🇫🇷🇫🇷🇫🇷","commentId":"Ugz_UZfwxElvwKkPfkl4AaABAg","likeCount":0,"replyCount":0,"replyLevel":0,"likeCountText":" ","publishedTimeText":"2 minutes ago" } ],"nextPage":2 },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Search
Cari video, channel, atau playlist di YouTube.
/v1/social-media:youtube-scraper/searchParameters
| Name | Type | In | Description |
|---|---|---|---|
| query | string | query | Search terms. Required. |
| type | enum | query | Result type. Default videos — an unfiltered search mixes shelves and returns an uneven count per page. One of videos, channels, playlists. |
| sort | enum | query | Ordering. Default relevance. One of relevance, viewCount. |
| gl | string | query | Two-letter country code. Changes ranking and locale text. |
| hl | string | query | Interface language code. |
| page | number | query | Page number. Default 1 — each page past the first costs one extra upstream round. |
Example response
{"project":"social-media:youtube-scraper", "data": {"page":1,"sort":"relevance","type":"videos","count":20, "items": [ {"url":"https://www.youtube.com/watch?v=n61ULEU7CO0","title":"Best of lofi hip hop 2021 ✨ [beats to relax/study to]","isLive":false, "channel": {"name":"Lofi Girl","channelId":"UCSJ4gkVC6NrvII8umztf0Ow" },"videoId":"n61ULEU7CO0","duration":22258,"thumbnail":"https://i.ytimg.com/vi/n61ULEU7CO0/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAi4TCpAtbxLFIBULRlcZHudl1uFw","viewCount":56337339,"description":"Listen on Spotify, Apple music and more → https://fanlink.tv/BestofLofi2021 The new Lofi Girl compilation “Best of 2021” is out now ...","durationText":"6:10:58","viewCountText":"56,337,339 views","publishedTimeText":"4 years ago" }, {"url":"https://www.youtube.com/watch?v=X4VbdwhkE10","title":"lofi hip hop radio 📚 beats to relax/study to","isLive":true, "channel": {"name":"Lofi Girl","channelId":"UCSJ4gkVC6NrvII8umztf0Ow" },"videoId":"X4VbdwhkE10","thumbnail":"https://i.ytimg.com/vi/X4VbdwhkE10/hq720.jpg?v=6a212016&sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAgn4FKbiWr9gXiEhIf0t5Y6y9TuQ","viewCount":12776,"description":"Listen on Spotify, Apple music and more → https://lnk.to/lofi-hiphop-beats-to-relax-study-to02 | Lofi Girl on all social media ...","viewCountText":"12,776 watching" } ],"query":"lofi hip hop","total":9365428,"hasMore":true,"nextPage":2 },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Get Playlist
Isi sebuah playlist YouTube.
/v1/social-media:youtube-scraper/playlist/:playlistIdParameters
| Name | Type | In | Description |
|---|---|---|---|
| playlistId | string | path | Playlist ID, or a full YouTube playlist URL. Required. |
| page | number | query | Page number. Default 1, 100 videos per page. Upstream stops offering a cursor after ~2 pages, so deeper pages come back empty. |
| gl | string | query | Two-letter country code. |
| hl | string | query | Interface language code. |
Example response
{"project":"social-media:youtube-scraper", "data": {"page":1,"count":10, "videos": [ {"url":"https://www.youtube.com/watch?v=DcKEPl-MpLA","title":"How Google Search continues to improve results","channel":"Google","videoId":"DcKEPl-MpLA","duration":236,"thumbnail":"https://i.ytimg.com/vi/DcKEPl-MpLA/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDHfSGJ1-2RQ0-n9ok-cve-4i_AIw","durationText":"3:56","viewCountText":"274K views","publishedTimeText":"5 years ago" }, {"url":"https://www.youtube.com/watch?v=0eKVizvYSUQ","title":"How Google Search Works (in 5 minutes)","channel":"Google","videoId":"0eKVizvYSUQ","duration":316,"thumbnail":"https://i.ytimg.com/vi/0eKVizvYSUQ/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDsjWS28Il8orntjudOP2IpTr7YYg","durationText":"5:16","viewCountText":"20M views","publishedTimeText":"6 years ago" }, {"url":"https://www.youtube.com/watch?v=WbSouimbtjU","title":"How real people make Google Search better","channel":"Google","videoId":"WbSouimbtjU","duration":124,"thumbnail":"https://i.ytimg.com/vi/WbSouimbtjU/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAGcwbVKoZhzUsbmjqno98lkW_O-w","durationText":"2:04","viewCountText":"239K views","publishedTimeText":"5 years ago" } ],"hasMore":true,"nextPage":2, "playlist": {"url":"https://www.youtube.com/playlist?list=PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r","title":"How Search Works","playlistId":"PL590L5WQmH8dpP0RyH5pCfIaDEdt9nk7r","viewCountText":"162,752 views","videoCountText":"10 videos" } },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Search Within Channel
Cari video di dalam satu channel YouTube.
/v1/social-media:youtube-scraper/channel-search/:channelParameters
| Name | Type | In | Description |
|---|---|---|---|
| channel | string | path | Channel handle (@user), channel ID (UCxxx), or a full YouTube URL. Required. |
| query | string | query | Search terms within that channel. Required. |
| gl | string | query | Two-letter country code. |
| hl | string | query | Interface language code. |
Example response
{"project":"social-media:youtube-scraper", "data": {"count":0,"query":"chocolate","videos":[],"channel":"UCX6OQ3DkcsbYNE6H8uQQuVA" },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Get Music Charts
Papan chart musik YouTube untuk negara tempat server berada. Pakai playlistId-nya di endpoint playlist buat baca lagunya.
/v1/social-media:youtube-scraper/music-chartsParameters
No parameters. Call it as is.
Example response
{"project":"social-media:youtube-scraper", "data": { "charts": [ {"url":"https://music.youtube.com/playlist?list=OLAK5uy_n7Ig_LAUbKE6_ZeQ1pwHmJcEhwX7BekBo","title":"Trending 20 Indonesia","subtitle":"Chart • YouTube Music","thumbnail":"https://yt3.googleusercontent.com/BhSX1G3hoGzpiuZlyfGJ_JmzSv1nyOG2C_uw9n_IUid-jiNDvf_UvYVVPSpZ3GwAewiDnEpf1VU=s576","playlistId":"OLAK5uy_n7Ig_LAUbKE6_ZeQ1pwHmJcEhwX7BekBo" }, {"url":"https://music.youtube.com/playlist?list=PL4fGSI1pDJn4lW6MJA2q37CfnraqAizqE","title":"Daily Top Music Videos - Indonesia","subtitle":"Chart • YouTube Music","thumbnail":"https://yt3.googleusercontent.com/K4qIvSWDZp1EFDoXTdfZUduvWKrVXL4LBq-ldC_JaTNd0gKbj9i9RTcyU40sU3aK159HfFlDxGcp=s576","playlistId":"PL4fGSI1pDJn4lW6MJA2q37CfnraqAizqE" }, {"url":"https://music.youtube.com/playlist?list=PL4fGSI1pDJn5QPpj0R4vVgRWk8sSq549G","title":"Top 100 Music Videos Indonesia","subtitle":"Chart • YouTube Music","thumbnail":"https://yt3.googleusercontent.com/TfXZERTeKShtvTyI59SVIl3BEJvSbwdU5c_phyqKULSDMvTT-gXdfzBfcNRoRVZWFM9nTPX2eQ=s576","playlistId":"PL4fGSI1pDJn5QPpj0R4vVgRWk8sSq549G" } ],"country":"Indonesia","chartCount":3 },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Comment Replies
Replies of a YouTube comment by video id/URL + replyToken (from comments[].replyToken) or commentId. Paginated (page 1-20).
/v1/social-media:youtube-scraper/comment-replies/:idParameters
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Video ID (11-char) atau full YouTube URL. Required. |
| replyToken | string | query | Token balasan dari youtube-scraper/comments (comments[].replyToken). Paling cepat. |
| commentId | string | query | ID komentar induk (dicari di ±100 komentar teratas). |
| page | number | query | Nomor halaman balasan. Default 1, max 20. Per page ±10 balasan. |
Example response
{"project":"social-media:youtube-scraper","data":null,"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Video Transcript
Transkrip/subtitle video YouTube lengkap dengan timestamp per segmen (start, duration, text) + teks gabungan. Pilih bahasa lewat `lang` dari daftar availableLanguages (manual atau auto-generated). Terima video ID, URL watch, shorts, youtu.be.
/v1/social-media:youtube-scraper/transcriptParameters
| Name | Type | In | Description |
|---|---|---|---|
| id | string | query | Video ID (11 chars) or full YouTube URL (watch, shorts, youtu.be). |
| url | string | query | Full YouTube video URL — alias for id. |
| lang | string | query | Transcript language code (e.g. en, id, ja). Default: the video's original/first track. Must be one of the video's available languages (listed in `availableLanguages`). |
Example response
{"project":"social-media:youtube-scraper","data":null,"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Search Suggestions
YouTube search typeahead: the autocomplete suggestions YouTube shows for partial text (localized by gl/hl).
/v1/social-media:youtube-scraper/search-suggestionsParameters
| Name | Type | In | Description |
|---|---|---|---|
| query | string | query | Partial search text, as typed in the YouTube search box. Required. |
| gl | string | query | Two-letter country code. Default US. |
| hl | string | query | Language code. Default en. |
Example response
{"project":"social-media:youtube-scraper","data":null,"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Hashtag Search
Videos/Shorts on a YouTube hashtag page (#tag): exact views, likes, publish date, channel. Shorts tab paginates with cursor.
/v1/social-media:youtube-scraper/hashtag-searchParameters
| Name | Type | In | Description |
|---|---|---|---|
| hashtag | string | query | Hashtag, with or without the leading #. Required. |
| type | enum | query | Tab. shorts (default) paginates ~36 per page; videos is a single page of ~16 long-form videos. One of shorts, videos. |
| gl | string | query | Two-letter country code. Default US. |
| hl | string | query | Language code. Default en. |
| cursor | string | query | Pagination cursor — pass nextCursor from the previous response. |
Example response
{"project":"social-media:youtube-scraper","data":null,"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Trending Shorts
The YouTube Shorts feed (what plays when you scroll youtube.com/shorts), localized by country: title, channel, views, likes, publish date. Infinite scroll via cursor.
/v1/social-media:youtube-scraper/trending-shortsParameters
| Name | Type | In | Description |
|---|---|---|---|
| gl | string | query | Two-letter country code — the feed is localized. Default US. |
| hl | string | query | Language code. Default en. |
| cursor | string | query | Pagination cursor — pass nextCursor from the previous response to keep scrolling. |
Example response
{"project":"social-media:youtube-scraper","data":null,"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Try it
Live request with your key
const data = await client.run( "social-media:youtube-scraper", "profile", { channel: "MrBeast" });
Youtube Scraper
Dapatkan data profile, postingan, comment, dan lainnya dengan lengkap dan konsisten.
/v1/…youtube-scraper/profile/:channelTry it
Parameters
channel
string · path · required
Channel handle (@user), channel ID (UCxxx), atau full YouTube URL.
Example response
{"project":"social-media:youtube-scraper", "data": {"url":"https://www.youtube.com/@MrBeast","title":"MrBeast","avatar":"https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s900-c-k-c0x00ffffff-no-rj","banner":"https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj","handle":"@MrBeast","rssUrl":"https://www.youtube.com/feeds/videos.xml?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA","country":"PT","keywords":"mrbeast6000 beast mrbeast Mr.Beast mr","verified":true,"channelId":"UCX6OQ3DkcsbYNE6H8uQQuVA","vanityUrl":"http://www.youtube.com/@MrBeast","familySafe":true,"videoCount":982,"description":"SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!\nAccomplishments:\n- Raised $20,000,000 To Plant 20,000,000 Trees\n- Removed 30…","subscriberText":"489M subscribers","videoCountText":"982 videos","subscriberCount":489000000 },"timestamp":"2026-05-27T13:36:09Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Code
const data = await client.run( "social-media:youtube-scraper", "profile", { channel: "MrBeast" });