YouTubeMenu
YouTube
7 endpoints. All of them accept a JSON body, support cache_days and return the standard response envelope.
Limitations: Unofficial API: not affiliated with or endorsed by the platform. Public data only. Counts can be YouTube's rounded figures; comments are top-level only; transcripts exist only for videos with captions.
/v1/youtube/profileYouTube channel info by handle, channel ID or URL: title, description, approximate subscriber/video counts, avatar and banner.
YouTube Channel Scraper API: use cases, pricing and questions
Body parameters
Send one of username or channel. Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | One of | Channel @handle, handle, channel ID or channel URL.Example: @MrBeast |
channel | string | One of | Alias of username (same accepted formats).Example: UCX6OQ3DkcsbYNE6H8uQQuVA |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/youtube/profile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"@MrBeast"}'Response fields (14)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
channel_id | string or null | Channel ID (UC...) |
handle | string or null | Channel handle including '@' |
title | string | Channel name |
description | string | Channel description |
keywords | string | Channel keywords as one string |
subscriber_count | integer or null | Approximate subscribers parsed from rounded text |
subscriber_count_text | string or null | Raw text, e.g. '521M subscribers' |
video_count | integer or null | Approximate video count from rounded text |
video_count_text | string or null | Raw text, e.g. '1K videos' |
is_family_safe | boolean | Channel flagged family safe |
channel_url | string or null | Vanity or canonical channel URL |
avatar_url | string or null | Largest avatar image URL |
banner_url | string or null | Largest banner image URL |
available_countries | integer or null | COUNT of available country codes |
Good to know
- Subscriber and video counts are YouTube's rounded figures (for example 521M).
- Legacy /user/ and /c/ links are not supported. Use the @handle or the channel ID (UC...).
/v1/youtube/videosA YouTube channel summary plus its latest uploads (max 30) with title, approximate views, relative publish time, duration and thumbnail, with the channel header (handle, description, banner, video count).
YouTube Videos Scraper API: use cases, pricing and questions
Body parameters
Send one of username or channel. Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | One of | Channel @handle, handle, channel ID or channel URL.Example: MrBeast |
channel | string | One of | Alias of username (same accepted formats).Example: UCX6OQ3DkcsbYNE6H8uQQuVA |
limit | integer | No | Maximum number of videos to return. From 1 to 30, default 12.Example: 5 |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/youtube/videos \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"MrBeast","limit":5}'Response fields (26)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
channel_id | string or null | Channel ID (UC...) |
title | string | Channel name |
channel_url | string or null | Vanity or canonical channel URL |
avatar_url | string or null | Largest avatar image URL |
subscriber_count | integer or null | Approximate subscribers from rounded text |
subscriber_count_text | string or null | Raw text, e.g. '521M subscribers' |
handle | string or null | Channel handle including '@' |
description | string | Channel description |
keywords | string | Channel keywords as one string |
video_count | integer or null | Approximate video count from rounded text |
video_count_text | string or null | Raw text, e.g. '1K videos' |
is_family_safe | boolean | Channel flagged family safe |
banner_url | string or null | Largest banner image URL |
available_countries | integer or null | COUNT of available country codes |
videos_fetched | integer | Number of videos returned |
has_more | boolean | First page held more than limit |
videos[] | array of objects | Latest uploads from Videos tab, max limit |
videos[].video_id | string | 11-char video ID |
videos[].link | string | Watch URL |
videos[].title | string | Video title |
videos[].view_count | integer or null | Approximate views from rounded text |
videos[].view_count_text | string or null | Raw text, e.g. '74M views' |
videos[].published_text | string or null | Relative time, e.g. '12 days ago' |
videos[].duration_text | string or null | Duration badge, e.g. '32:15' |
videos[].duration_seconds | integer or null | Duration in seconds |
videos[].thumbnail_url | string or null | Largest thumbnail URL |
Good to know
- Returns up to 30 latest uploads. View counts are approximate and publish times are relative, for example "2 days ago".
/v1/youtube/videoA single YouTube video by URL or ID: title, description, exact views, likes, duration, publish date, category, keywords and channel.
YouTube Video Scraper API: use cases, pricing and questions
Body parameters
Send one of url, id or video. Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | One of | YouTube video URL (a bare ID also works).Example: https://www.youtube.com/watch?v=jNQXAC9IVRw |
id | string | One of | 11-character video ID.Example: 0e3GPea1Tyg |
video | string | One of | Alias (URL or ID).Example: https://youtu.be/dQw4w9WgXcQ |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/youtube/video \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=jNQXAC9IVRw"}'Response fields (24)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
video_id | string | 11-char video ID |
link | string | Canonical watch URL |
title | string | Video title |
description | string | Full video description |
duration_seconds | integer or null | Duration in seconds |
view_count | integer or null | Exact view count |
like_count | integer or null | Like count from microformat |
published_at | string or null | Publish date from microformat (ISO) |
category | string or null | YouTube category name |
is_live | boolean | Video is/was live-stream content |
is_family_safe | boolean or null | Flagged family safe |
playability | string or null | Playability status, e.g. 'OK', 'LOGIN_REQUIRED' |
keywords[] | array of strings | Video tags, max 100 |
thumbnail_url | string or null | Largest thumbnail URL |
thumbnails[] | array of objects | Every standard thumbnail size on i.ytimg.com, largest first (maxres is missing for some low-resolution uploads) |
thumbnails[].quality | string | 'maxres', 'sd', 'hq', 'mq' or 'default' |
thumbnails[].url | string | JPG URL |
thumbnails[].width | integer | Width in pixels |
thumbnails[].height | integer | Height in pixels |
channel | object | Uploading channel |
channel.channel_id | string or null | Channel ID (UC...) |
channel.name | string | Channel name |
channel.handle | string or null | Channel handle including '@' |
channel.url | string or null | Channel URL |
Good to know
- View and like counts are exact.
- is_live is also true for recordings of finished live streams.
/v1/youtube/searchSearch YouTube by keyword: videos, Shorts, channels and playlists with views, publish time, duration and channel. Optional type, popularity sort and upload-date filters.
YouTube Search Scraper API: use cases, pricing and questions
Body parameters
Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keywords (max 200 characters).Example: lofi hip hop |
type | string | No | Result type: all, video, shorts, channel or playlist. Default all.Example: video |
sort | string | No | relevance or popularity (view_count is accepted as an alias). Default relevance.Example: popularity |
upload_date | string | No | Only results uploaded within: today, week, month or year.Example: week |
limit | integer | No | Maximum number of results to return. From 1 to 50, default 20.Example: 10 |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/youtube/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"lofi hip hop","limit":10}'Response fields (36)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
query | string | Normalized search query |
type | string | Applied type filter: all, video, shorts, channel or playlist |
sort | string | Applied sort: relevance or popularity |
upload_date | string or null | Applied upload-date filter, null when not set |
results_fetched | integer | Number of results returned |
has_more | boolean | YouTube has more results beyond limit |
results[] | array of objects | Results in YouTube's order, max limit. Fields depend on type |
results[].type | string | video, channel or playlist (Shorts are videos with is_short true) |
results[].video_id | string | Video items: 11-char video ID |
results[].link | string | Video items: watch URL (/shorts/ URL for Shorts) |
results[].title | string | Video, channel or playlist title |
results[].channel | object or null | Video items: uploading channel (null for Shorts shelf items) |
results[].channel.name | string or null | Channel name |
results[].channel.channel_id | string or null | Channel ID (UC...) |
results[].channel.handle | string or null | Channel handle including '@' when YouTube exposes it |
results[].channel.url | string or null | Channel URL |
results[].view_count | integer or null | Video items: views (exact for regular results, rounded for Shorts shelf items; current viewers for live streams) |
results[].view_count_text | string or null | Video items: raw text, e.g. '14,709,279 views' or '3,597 watching' |
results[].published_text | string or null | Video items: relative time, e.g. '1 month ago' |
results[].duration_text | string or null | Video items: duration, e.g. '6:10:58' |
results[].duration_seconds | integer or null | Video items: duration in seconds |
results[].thumbnail_url | string or null | Video and playlist items: largest thumbnail URL |
results[].is_live | boolean | Video items: live right now |
results[].is_short | boolean | Video items: YouTube Short |
results[].channel_id | string | Channel items: channel ID (UC...) |
results[].handle | string or null | Channel items: handle including '@' |
results[].description | string or null | Channel items: description snippet |
results[].subscriber_count | integer or null | Channel items: approximate subscribers from rounded text |
results[].subscriber_count_text | string or null | Channel items: raw text, e.g. '521M subscribers' |
results[].is_verified | boolean | Channel items: verified badge |
results[].avatar_url | string or null | Channel items: largest avatar URL |
results[].url | string | Channel and playlist items: channel or playlist URL |
results[].playlist_id | string | Playlist items: playlist ID |
results[].channel_name | string or null | Playlist items: owner shown by YouTube |
results[].video_count | integer or null | Playlist items: number of videos (null for Mixes) |
results[].video_count_text | string or null | Playlist items: raw text, e.g. '43 videos' |
Good to know
- Results are fetched in pages of about 20 (up to 3 pages for limit 50).
- Sorting by upload date or rating is not available: YouTube removed those sorts and ignores them. Use upload_date to restrict recency; popularity is YouTube's own ranking, not a strict view-count order.
- With type all, YouTube's Shorts shelves are skipped; use type shorts to get Shorts. Shorts from shelves have no channel, publish time or duration.
/v1/youtube/commentsTop-level comments of a YouTube video by URL or ID, sorted by top or newest: text, author, likes, reply count, pinned and hearted flags, plus the total comment count.
YouTube Comments Scraper API: use cases, pricing and questions
Body parameters
Send one of url or id. Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | One of | YouTube video URL (watch, youtu.be, shorts, live or embed link; a bare ID also works).Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ |
id | string | One of | 11-character video ID.Example: dQw4w9WgXcQ |
sort | string | No | top or newest. Default top.Example: newest |
limit | integer | No | Maximum number of comments to return. From 1 to 100, default 20.Example: 20 |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/youtube/comments \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ","limit":20}'Response fields (22)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
video_id | string | 11-char video ID |
sort | string | Applied sort: top or newest |
comment_count | integer or null | Total comments on the video (exact) |
comments_fetched | integer | Number of comments returned |
has_more | boolean | More comments are available beyond limit |
comments[] | array of objects | Top-level comments, max limit |
comments[].id | string | Comment ID |
comments[].link | string | Permalink to the comment |
comments[].text | string | Full comment text |
comments[].author | object | Comment author |
comments[].author.name | string or null | Display name (usually the @handle) |
comments[].author.channel_id | string or null | Author channel ID (UC...) |
comments[].author.handle | string or null | Author handle including '@' |
comments[].author.avatar_url | string or null | Author avatar URL |
comments[].author.is_channel_owner | boolean | Author is the video's channel |
comments[].author.is_verified | boolean | Author has a verified badge |
comments[].like_count | integer or null | Likes, approximate from rounded text (0 when none) |
comments[].like_count_text | string or null | Raw text, e.g. '8.4K'; null when no likes |
comments[].reply_count | integer or null | Number of replies |
comments[].published_text | string or null | Relative time, e.g. '2 months ago' or '6 years ago (edited)' |
comments[].is_pinned | boolean | Pinned by the channel |
comments[].is_hearted | boolean | Hearted by the channel |
Good to know
- Top-level comments only, about 20 per page; replies are not included. A pinned comment is listed first in both sorts.
- Like counts are YouTube's rounded figures (for example 8.4K); comment_count is exact.
- Returns 404 with code COMMENTS_DISABLED when comments are turned off, and NOT_FOUND when the video does not exist.
/v1/youtube/transcriptTranscript of a YouTube video from its captions: timed segments, joined plain text, chosen language and the list of available caption languages.
YouTube Transcript API: use cases, pricing and questions
Body parameters
Send one of url or id. Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | One of | YouTube video URL (watch, youtu.be, shorts, live or embed link; a bare ID also works).Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ |
id | string | One of | 11-character video ID.Example: dQw4w9WgXcQ |
lang | string | No | Caption language code such as en, de, pt-BR or es-419. Default: the video's original language.Example: en |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/youtube/transcript \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'Response fields (14)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
video_id | string | 11-char video ID |
language | string | Language code of the returned track |
language_name | string | Track name, e.g. 'English' or 'English (auto-generated)' |
is_auto_generated | boolean | Track is YouTube's automatic captions |
available_languages[] | array of objects | All caption tracks of the video |
available_languages[].code | string | Language code |
available_languages[].name | string | Track name |
available_languages[].is_auto_generated | boolean | Automatic captions |
segment_count | integer | Number of segments |
text | string | All segments joined as plain text |
segments[] | array of objects | Timed caption segments |
segments[].start | number | Start time in seconds (2 decimals) |
segments[].duration | number or null | Duration in seconds (2 decimals) |
segments[].text | string | Segment text |
Good to know
- Without lang, the hand-written track in the video's spoken language is preferred, then YouTube's default track, then automatic captions.
- lang matches the exact code first, then the same base language (pt matches pt-BR). Machine-translated transcripts are not offered.
- Returns 404 with code NO_TRANSCRIPT when the video has no captions or none in the requested language (the message lists the available codes).
/v1/youtube/playlistA YouTube playlist by URL or ID: title, description, owner channel, video and view counts, plus its videos (max 100) with views, publish time and duration.
YouTube Playlist Scraper API: use cases, pricing and questions
Body parameters
Send one of url or id. Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | One of | Playlist URL or any YouTube link with a list= parameter (a bare playlist ID also works).Example: https://www.youtube.com/playlist?list=PLOzDu-MXXLlj7croDcwz33c-a5rpNEBNe |
id | string | One of | Playlist ID (PL..., OLAK5uy_..., UU...).Example: PLOzDu-MXXLlj7croDcwz33c-a5rpNEBNe |
limit | integer | No | Maximum number of videos to return. From 1 to 100, default 50.Example: 10 |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/youtube/playlist \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/playlist?list=PLOzDu-MXXLlj7croDcwz33c-a5rpNEBNe","limit":10}'Response fields (32)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
playlist_id | string | Playlist ID |
title | string | Playlist title |
description | string | Playlist description |
channel | object or null | Owner channel |
channel.name | string or null | Channel name |
channel.channel_id | string or null | Channel ID (UC...) |
channel.handle | string or null | Channel handle including '@' when YouTube exposes it |
channel.url | string or null | Channel URL |
video_count | integer or null | Number of videos in the playlist |
video_count_text | string or null | Raw text, e.g. '43 videos' |
view_count | integer or null | Total playlist views |
view_count_text | string or null | Raw text, e.g. '306,365 views' |
thumbnail_url | string or null | Playlist thumbnail URL |
url | string | Playlist URL |
videos_fetched | integer | Number of videos returned |
has_more | boolean | The playlist has more videos than returned |
videos[] | array of objects | Videos in playlist order, max limit |
videos[].video_id | string | 11-char video ID |
videos[].link | string | Watch URL |
videos[].title | string | Video title |
videos[].channel | object or null | Uploading channel |
videos[].channel.name | string or null | Channel name |
videos[].channel.channel_id | string or null | Channel ID (UC...) |
videos[].channel.handle | string or null | Channel handle including '@' when YouTube exposes it |
videos[].channel.url | string or null | Channel URL |
videos[].view_count | integer or null | Approximate views from rounded text |
videos[].view_count_text | string or null | Raw text, e.g. '4.4M' |
videos[].published_text | string or null | Relative time, e.g. '4 years ago' |
videos[].duration_text | string or null | Duration badge, e.g. '2:03:14' |
videos[].duration_seconds | integer or null | Duration in seconds |
videos[].thumbnail_url | string or null | Largest thumbnail URL |
videos[].is_live | boolean | Live right now |
Good to know
- Returns the first page of the playlist (up to 100 videos). Unavailable videos are hidden by YouTube, so a page can hold fewer than 100.
- Video view counts are YouTube's rounded figures (for example 4.4M); playlist view and video counts are exact.
- Returns 404 when the playlist does not exist or is private.