YouTube API
Read YouTube videos, Shorts, comments, transcripts, channels, channel posts and video formats with one EveryInfra API key. JSON responses, from $0.56 per 1,000 calls.
All you need is one API key, no YouTube account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.
- 27 endpoints, one key
- Failed calls and empty results are not charged.
- Call with an EveryInfra API key, not a YouTube access token
Real samples for one video
POST /api/v1/social params {"url":"https://www.youtube.com/watch?v=aqz-KE-bpKQ"}
- Video formats
video_formats - Media download links
media_links - Format stream URL
stream_url - Related posts
related_posts- count
- 26
Platform availability
- 24h health
- 100%
Last 30 days
Available capabilities
Retrieve YouTube videos, Shorts, comments, captions, subscriber counts, and channel metadata.
Provide channel handles or video URLs. Subscriber counts are totals, not subscriber lists.
Search
- SearchHealthy · health 100%
Search YouTube videos by keyword, up to 50 per call.
search$0.78 per 1,000 callsEvery 10 rows count as one call - Shorts searchNormal
Search YouTube Shorts across the whole site by keyword, with optional
sortanddate_range.shorts_search$0.79 per 1,000 calls - Account searchNormal
Find YouTube channels by name or keyword.
user_search$0.56 per 1,000 calls - Search in channelNormal
Search inside one YouTube channel by keyword, from the channel link or @handle.
search_in_channel$0.56 per 1,000 calls - Search suggestionsNormal
Get the suggestions YouTube's search box shows for what you type, about 14 in one call, in order.
search_suggest$0.56 per 1,000 calls - Video searchNormal
Search YouTube for videos only by
keyword, with an optional upload-time filter insort:hour,today,week,month(the default) oryear.video_search$0.56 per 1,000 calls - HashtagNormal
List the videos and Shorts on a YouTube hashtag page, in the order YouTube shows them, from the hashtag name or its link, with optional
languageandcountry.hashtag$0.79 per 1,000 calls
Channels
- Channel detailsHealthy · health 99%
Get a YouTube channel from its channel URL.
profile$0.56 per 1,000 calls - Posts by userHealthy · health 99%
List videos from a YouTube channel URL, up to 50 per call.
user_posts$0.56 per 1,000 callsEvery 10 rows count as one call - ShortsNormal
Browse the Shorts of a YouTube channel by handle, up to 100 per call.
shorts$0.56 per 1,000 callsEvery 20 rows count as one call - FollowersNormal
Check the subscriber count of a YouTube channel from its handle.
followers$0.56 per 1,000 calls - Channel ID lookupNormal
Turn a YouTube channel link, @handle, UC channel ID or channel name into the channel's ID, handle, display name and both links.
resolve_channel$0.56 per 1,000 calls - Channel live streamsNormal
List the entries on a YouTube channel's Live tab from
channel_id: streams that are live now, past streams and upcoming ones.channel_lives$0.56 per 1,000 calls - Channel playlistsNormal
List the playlists on a YouTube channel's Playlists tab from
channel_id.channel_playlists$0.56 per 1,000 calls
Videos
- Video detailsHealthy · health 99%
Fetch the title, description, channel, views, likes, comment count, duration and publish date of one YouTube video from its watch or share link.
video$0.56 per 1,000 calls - TranscriptHealthy · health 100%
Pull the captions of a YouTube video as full text and timestamped segments, with the track language, available languages and channel details.
transcript$0.56 per 1,000 calls - Related postsNormal
List the videos, Shorts and playlists YouTube recommends next to one video, from the video link.
related_posts$0.56 per 1,000 calls - Playlist videosNormal
List the videos of a YouTube playlist in the playlist's order from
playlist_id(an ID starting with PL, UU or OLAK5uy_, or a link withlist=).playlist_videos$0.56 per 1,000 calls - Recommended ShortsNormal
Read a page of YouTube's Shorts recommendation feed, with no parameters.
recommended_shorts$0.79 per 1,000 calls
Comments
- CommentsHealthy · health 97%
Read comments on a YouTube video, up to 100 per call.
comments$0.56 per 1,000 callsEvery 20 rows count as one call - Comment repliesNormal
Read the replies under one YouTube comment, on a video or on a channel post, from the link and the comment's
comment_id(acommentsorcommunity_post_commentsrow'sid).comment_replies$0.79 per 1,000 calls
Channel posts
- Community postsNormal
Page through the posts in a YouTube channel's Posts tab, newest first, from the channel link or @handle.
community_posts$0.56 per 1,000 calls - Channel postNormal
Open one YouTube channel post from its link and get its text, likes, comment count, the time YouTube shows, author, and attachment: images, a video, or poll options and total votes.
community_post$0.56 per 1,000 calls - Channel post commentsNormal
Read the comments on one YouTube channel post from its link.
community_post_comments$0.56 per 1,000 calls
Formats and playback addresses
- Video formatsNormal
List the formats a YouTube video has, from its link: quality, codec, bitrate, size, frame rate and audio quality for each format, with no playback URLs.
video_formats$0.56 per 1,000 calls - Media download linksHealthy · health 100%
Get every format of a YouTube video with its playback URL, from the video link.
media_links$0.56 per 1,000 calls - Format stream URLNormal
Get the playback URL of one format of a YouTube video, from the video link and the format's
itag(taken fromvideo_formatsormedia_links).stream_url$0.56 per 1,000 calls
6 questions to ask before choosing a data API for YouTube
Does YouTube have an official API, and how is it different from this one?
Yes. The YouTube Data API v3 reads public videos, channels and comments with an API key, and the account being read does not need to authorize anything. The default quota is 10,000 units per day per project, and search is capped at 100 calls a day. With EveryInfra, you skip setting up a Google Cloud project and managing quota, and use the same API key and request format as on other platforms.
Official sources: YouTube Data API: authentication guide · YouTube Data API: quota costs · Checked
Do I need to log in to YouTube or provide a cookie to make calls?
No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.
How is it billed? Are failed requests charged? Is there a free trial?
Billing is per request, from $0.56 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.
Can I connect this YouTube API to Claude or Cursor?
Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server. An agent can search YouTube content, read comments and look up accounts on its own.
What compliance points apply when using YouTube data?
The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.
What YouTube data can I get?
Available YouTube capabilities (27): Search, Channel details, Posts by user, Video details, Comments, Followers, Transcript, Shorts, Comment replies, Related posts, Channel ID lookup, Community posts, Channel post, Channel post comments, Search in channel, Shorts search, Account search, Search suggestions, Video formats, Media download links, Format stream URL, Channel live streams, Channel playlists, Playlist videos, Video search, Hashtag, Recommended Shorts. The parameters and response fields of each capability are in the API reference on this page.
Use cases
Video search and topic research
Search videos and Shorts by keyword, read the search box suggestions, and search inside one channel.
Channel research
Search channels by name, read a channel's profile and follower count, then see its videos and Shorts.
Video details and transcripts
Read the details and transcript of one video, then see its related videos.
Comments and engagement
Read the comments and replies under a video, and the comments under a channel post.
Channel posts
Read the posts on a channel's Posts tab, then the details of one post.
Video formats and playback addresses
See which formats a video has, and get the playback address of all formats or of one.
Link cleanup
Look up a channel across channel link, @handle and channel ID.
Usesresolve_channel
YouTube Data API vs EveryInfra
How the YouTube Data API and the EveryInfra YouTube endpoints compare on who can call and on daily usage. Some endpoint pages also compare with the matching official method.
| Compared | YouTube Data API | EveryInfra |
|---|---|---|
| Who can call | "Create a project in the Google Cloud console and obtain authorization credentials so your application can submit API requests." | Call with an EveryInfra API key, not with credentials from a Google Cloud project. |
| Daily usage | "Projects that enable the YouTube Data API have a default quota allocation of 100 search.list calls, 100 videos.insert calls, and 10,000 units per day combined for all other endpoints." | Billed per call; each endpoint page shows the price of one call. |
The quotes are the English text of the YouTube Data API Overview page. Official sources: YouTube Data API Overview (updated 2026-11-12)
What does each YouTube action accept?
Parameter table for all 27 actions
Sync delivery for every action.
| Action | Required | Optional | Limit | Per 1,000Blank rows: $0.56 | Response fields |
|---|---|---|---|---|---|
searchSearch Search YouTube videos by keyword, up to 50 per call. Get channel, description, views, likes, comments, duration and publish date. | keyword | sort | Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $0.78 per 1,000 requestsEvery 10 rows count as one call | id · url · title · text · author_name · author_username · author_id · author_url · like_count · like_count_estimated · comment_count · comment_count_estimated · view_count · view_count_estimated · duration · posted_at · thumbnail_url · hashtags · is_comments_disabled · is_members_only · is_paid_partnership · author_follower_count · author_follower_count_estimated · author_video_count · author_video_count_estimated · author_view_count · author_view_count_estimated · author_created_at · description_links · search_rank · platform |
profileChannel details Get a YouTube channel from its channel URL. Get bio, subscriber, video and view counts, verification, location, avatar, banner and creation date. It does not expose YouTube Analytics or a list of subscribers. | url | — | — | channel_id · name · url · bio · subscriber_count · subscriber_count_estimated · video_count · video_count_estimated · view_count · view_count_estimated · is_verified · location · avatar_url · banner_url · created_at · platform | |
user_postsPosts by user List videos from a YouTube channel URL, up to 50 per call. Get title, description, views, likes, comments, duration and publish date. Use | url | since, sort | Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $0.56 per 1,000 requestsEvery 10 rows count as one call | id · url · title · text · author_name · author_username · author_id · author_url · like_count · like_count_estimated · comment_count · comment_count_estimated · view_count · view_count_estimated · duration · posted_at · thumbnail_url · hashtags · is_comments_disabled · is_members_only · is_paid_partnership · author_follower_count · author_follower_count_estimated · author_video_count · author_video_count_estimated · author_view_count · author_view_count_estimated · author_created_at · description_links · search_rank · platform |
videoVideo details Fetch the title, description, channel, views, likes, comment count, duration and publish date of one YouTube video from its watch or share link. Comments and the transcript come from their own actions, | url | — | — | id · url · title · text · author_name · author_username · author_id · author_url · like_count · like_count_estimated · comment_count · comment_count_estimated · view_count · view_count_estimated · duration · posted_at · thumbnail_url · hashtags · is_comments_disabled · is_members_only · is_paid_partnership · author_follower_count · author_follower_count_estimated · author_video_count · author_video_count_estimated · author_view_count · author_view_count_estimated · author_created_at · description_links · search_rank · platform | |
commentsComments Read comments on a YouTube video, up to 100 per call. Each comment has text, author, likes, reply count, date and a reply flag. Sort by newest or popular, and set a start date with | url | page_token, since, sort | Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is billed by its row count, one call per 20 rows. | $0.56 per 1,000 requestsEvery 20 rows count as one call | id · text · author_name · like_count · like_count_estimated · reply_count · reply_count_estimated · posted_at · published_text · is_reply · reply_to_id · platform |
followersFollowers Check the subscriber count of a YouTube channel from its handle. Get | username | channel | — | id · username · url · follower_count · following_count · post_count · like_count · connection_count · precision · platform · channel_id · display_name · follower_count_estimated | |
transcriptTranscript Pull the captions of a YouTube video as full text and timestamped segments, with the track language, available languages and channel details. | url | language | — | id · url · title · text · segments · language · available_languages · channel_id · channel_name · channel_username · view_count · view_count_estimated · like_count · like_count_estimated · comment_count · comment_count_estimated · posted_at · platform | |
shortsShorts Browse the Shorts of a YouTube channel by handle, up to 100 per call. Get title, thumbnail, views, likes, duration and publish date. Pass a handle in | username | channel, since, sort | Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $0.56 per 1,000 requestsEvery 20 rows count as one call | id · url · title · thumbnail_url · view_count · view_count_estimated · like_count · like_count_estimated · duration · posted_at · author_name · author_id · author_url · platform |
comment_repliesComment replies Read the replies under one YouTube comment, on a video or on a channel post, from the link and the comment's | url, comment_id | page_token | Each call returns one page of up to 10 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · like_count · like_count_estimated · reply_count · reply_count_estimated · posted_at · published_text · is_reply · reply_to_id · is_creator · is_verified · is_pinned · is_hearted · is_edited · video_id · post_id · platform |
related_postsRelated posts List the videos, Shorts and playlists YouTube recommends next to one video, from the video link. Each row has | url | page_token | Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | type · id · url · title · text · author_name · author_username · author_id · author_url · author_avatar_url · author_is_verified · view_count · view_count_estimated · duration · published_text · thumbnail_url · badges · is_live · is_upcoming · playlist_id · video_count · video_count_estimated · platform | |
resolve_channelChannel ID lookup Turn a YouTube channel link, @handle, UC channel ID or channel name into the channel's ID, handle, display name and both links. When | channel | — | — | channel_id · username · name · url · channel_url · matched_by · platform | |
community_postsCommunity posts Page through the posts in a YouTube channel's Posts tab, newest first, from the channel link or @handle. Each post has text, likes, comment count, the time YouTube shows, and its attachment: images, a video, or poll options and total votes. 10 per page; pass | url | page_token | Each call returns one page of up to 10 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect. | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · like_count · like_count_estimated · comment_count · comment_count_estimated · published_text · attachment_type · image_urls · video_id · video_title · poll_options · poll_total_votes · links · platform | |
community_postChannel post Open one YouTube channel post from its link and get its text, likes, comment count, the time YouTube shows, author, and attachment: images, a video, or poll options and total votes. | url | — | — | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · like_count · like_count_estimated · comment_count · comment_count_estimated · published_text · attachment_type · image_urls · video_id · video_title · poll_options · poll_total_votes · links · platform | |
community_post_commentsChannel post comments Read the comments on one YouTube channel post from its link. Each comment has text, author, likes, reply count, the time YouTube shows, and creator, pinned, hearted and edited flags. 20 per page; pass | url | page_token | Each call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect. | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · like_count · like_count_estimated · reply_count · reply_count_estimated · posted_at · published_text · is_reply · reply_to_id · is_creator · is_verified · is_pinned · is_hearted · is_edited · post_id · platform | |
search_in_channelSearch in channel Search inside one YouTube channel by keyword, from the channel link or @handle. Rows are videos, Shorts and playlists (see | url, keyword | page_token | Each call returns one page of up to 30 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | type · id · url · title · text · author_name · author_username · author_id · author_url · author_avatar_url · author_is_verified · view_count · view_count_estimated · duration · published_text · thumbnail_url · badges · is_live · is_upcoming · playlist_id · video_count · video_count_estimated · platform | |
shorts_searchShorts search Search YouTube Shorts across the whole site by keyword, with optional | keyword | date_range, page_token, sort | Each call returns one page of up to 50 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | type · id · url · title · text · author_name · author_username · author_id · author_url · author_avatar_url · author_is_verified · view_count · view_count_estimated · duration · published_text · thumbnail_url · badges · is_backfill · platform |
user_searchAccount search Find YouTube channels by name or keyword. Each channel has channel ID, name, handle, link, bio, subscriber and video counts, verification flag and avatar. 20 per page; pass | keyword | page_token | Each call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect. | channel_id · name · username · url · bio · subscriber_count · subscriber_count_estimated · video_count · video_count_estimated · is_verified · avatar_url · platform | |
search_suggestSearch suggestions Get the suggestions YouTube's search box shows for what you type, about 14 in one call, in order. Set | keyword | country, language, limit | — | rank · keyword · platform | |
video_formatsVideo formats List the formats a YouTube video has, from its link: quality, codec, bitrate, size, frame rate and audio quality for each format, with no playback URLs. Use | url | — | — | id · title · author_name · author_id · duration · view_count · is_live · thumbnail_url · available_qualities · formats · adaptive_formats · hls_manifest_url · dash_manifest_url · expires_at · expires_in_seconds · platform | |
media_linksMedia download links Get every format of a YouTube video with its playback URL, from the video link. Each format has | url | — | — | id · title · author_name · author_id · duration · view_count · is_live · thumbnail_url · available_qualities · formats · adaptive_formats · hls_manifest_url · dash_manifest_url · expires_at · expires_in_seconds · platform | |
stream_urlFormat stream URL Get the playback URL of one format of a YouTube video, from the video link and the format's | url, itag | — | — | id · itag · url · mime_type · quality_label · content_length · expires_at · expires_in_seconds · platform | |
channel_livesChannel live streams List the entries on a YouTube channel's Live tab from | channel_id | page_token, sort | Each call returns one page of up to 30 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | type · id · url · title · text · author_name · author_username · author_id · author_url · author_avatar_url · author_is_verified · view_count · view_count_estimated · duration · published_text · thumbnail_url · preview_url · badges · is_live · is_upcoming · platform | |
channel_playlistsChannel playlists List the playlists on a YouTube channel's Playlists tab from | channel_id | page_token | Each call returns one page of up to 30 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | type · id · url · title · author_name · author_id · author_url · thumbnail_url · playlist_id · video_count · video_count_estimated · is_course · platform | |
playlist_videosPlaylist videos List the videos of a YouTube playlist in the playlist's order from | playlist_id | page_token | Each call returns one page of up to 100 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | type · id · url · title · text · author_name · author_username · author_id · author_url · author_avatar_url · author_is_verified · view_count · view_count_estimated · duration · published_text · thumbnail_url · preview_url · badges · is_live · is_upcoming · playlist_index · platform | |
video_searchVideo search Search YouTube for videos only by | keyword | page_token, sort | Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | type · id · url · title · text · author_name · author_username · author_id · author_url · author_avatar_url · author_is_verified · view_count · view_count_estimated · duration · published_text · thumbnail_url · preview_url · badges · is_live · is_upcoming · platform | |
hashtagHashtag List the videos and Shorts on a YouTube hashtag page, in the order YouTube shows them, from the hashtag name or its link, with optional | hashtag | country, language, page_token | Each call returns one page of up to 36 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | type · id · url · title · text · author_name · author_username · author_id · author_url · author_avatar_url · author_is_verified · view_count · view_count_estimated · duration · published_text · thumbnail_url · preview_url · badges · is_live · is_upcoming · hashtag_name · hashtag_video_count · hashtag_video_count_estimated · hashtag_channel_count · hashtag_channel_count_estimated · platform |
recommended_shortsRecommended Shorts Read a page of YouTube's Shorts recommendation feed, with no parameters. It is not a trending chart: the feed is not ranked by popularity and changes from call to call. Every row has the Short's ID, link and cover; title, channel and duration come only when YouTube sends them. About 40 per page, with no repeats along one chain of pages. | page_token | Each call returns one page of up to 40 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | type · id · url · title · text · author_name · author_id · author_url · duration · thumbnail_url · platform |
What each action's parameters mean (27 actions)
Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.
Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.
What do the YouTube search parameters mean?
Search YouTube videos by keyword, up to 50 per call. Get channel, description, views, likes, comments, duration and publish date. sort orders by relevance, newest, most views or top rating. Results are not complete, and the ranking is not explained.
keywordRequired- The search query term for the YouTube search action. If passed to compatibility inputs for the shorts action, this parameter acts as a channel name rather than initiating a site-wide Shorts search.
sortOptional- Video search order:
relevance,newest,most_viewedortop_rated. Withnewest, the videos returned are ordered byposted_at, newest first, and videos withoutposted_atcome last. YouTube still chooses which videos match the keyword, so older videos can appear.Allowed values:most_viewednewestrelevancetop_rated
What do the YouTube profile parameters mean?
Get a YouTube channel from its channel URL. Get bio, subscriber, video and view counts, verification, location, avatar, banner and creation date. It does not expose YouTube Analytics or a list of subscribers.
Full API reference: parameters, code samples, response example and healthurlRequired- The target URL required by YouTube actions. Use full channel URLs for profile and user_posts, or specific watch?v= and share links for video, comments, and transcript. Channel metadata is derived from published content, and comments does not return channel community board posts.
What do the YouTube user_posts parameters mean?
List videos from a YouTube channel URL, up to 50 per call. Get title, description, views, likes, comments, duration and publish date. Use since for a start date and sort for newest, oldest or popular. One batch may not cover the whole channel archive.
urlRequired- The target URL required by YouTube actions. Use full channel URLs for profile and user_posts, or specific watch?v= and share links for video, comments, and transcript. Channel metadata is derived from published content, and comments does not return channel community board posts.
sinceOptional- The lower date bound for filtering channel videos, Shorts, or comments. It applies to those lists only.
sortOptional- The sort order applied across YouTube actions. For search, accepted values are relevance, newest, most_viewed, and top_rated. For channel videos and Shorts, accepted values are newest, oldest, and popular. For comments, accepted values are newest and popular. Specifying this parameter on a single-video query does not filter that video's content.Allowed values:
newestoldestpopular
What do the YouTube video parameters mean?
Fetch the title, description, channel, views, likes, comment count, duration and publish date of one YouTube video from its watch or share link. Comments and the transcript come from their own actions, comments and transcript.
urlRequired- The target URL required by YouTube actions. Use full channel URLs for profile and user_posts, or specific watch?v= and share links for video, comments, and transcript. Channel metadata is derived from published content, and comments does not return channel community board posts.
What do the YouTube comments parameters mean?
Read comments on a YouTube video, up to 100 per call. Each comment has text, author, likes, reply count, date and a reply flag. Sort by newest or popular, and set a start date with since. Use reply_to_id to link replies. The full thread is not promised.
urlRequired- The target URL required by YouTube actions. Use full channel URLs for profile and user_posts, or specific watch?v= and share links for video, comments, and transcript. Channel metadata is derived from published content, and comments does not return channel community board posts.
page_tokenOptional- Page token. To paginate, pass an empty string (
page_token="") for the first page, then pass back the previous response'snext_page_tokenexactly as received, with the other parameters unchanged. Each page holds at leastlimittop-level comments (default 20, when that many remain) with their replies, as whole pages, so often more.sincecan't be combined withpage_token. Each page counts as one call. Tokens last 24 hours, and the last page has nonext_page_token. A request withoutpage_tokenworks as before, returning at most 100 comments; it sometimes includes anext_page_tokenthat can be followed the same way. To paginate, start frompage_token="". sinceOptional- The lower date bound for filtering channel videos, Shorts, or comments. It applies to those lists only.
sortOptional- The sort order applied across YouTube actions. For search, accepted values are relevance, newest, most_viewed, and top_rated. For channel videos and Shorts, accepted values are newest, oldest, and popular. For comments, accepted values are newest and popular. Specifying this parameter on a single-video query does not filter that video's content.Allowed values:
newestpopular
What do the YouTube followers parameters mean?
Check the subscriber count of a YouTube channel from its handle. Get follower_count, channel_id, display_name and a precision flag; a rounded count has follower_count_estimated true and precision approximate. following_count, post_count, like_count and connection_count can be absent. Pass the @handle in username. It returns aggregate counts, not a list of subscribers.
usernameRequired- The channel handle (optional leading @) required by the followers and shorts actions;
followersalso accepts a channel ID starting with UC or a channel link. The followers action returns aggregate subscriber counts rather than user lists. The shorts action prioritizes handles and does not treat UC... channel IDs as identical identifiers.YouTube: Understanding Channel Handles — YouTube defines a handle as a unique channel identifier starting with @, which is distinct from the channel display name. · Checked channelOptional- A compatibility alias for specifying a channel handle. Full /channel/UC... URLs may fail to parse across helper utilities, so prefer passing a handle or using the URL parameter explicitly provided by the action.
What do the YouTube transcript parameters mean?
Pull the captions of a YouTube video as full text and timestamped segments, with the track language, available languages and channel details. language requests a track, but not every video has captions and automatic translation is not guaranteed.
urlRequired- The target URL required by YouTube actions. Use full channel URLs for profile and user_posts, or specific watch?v= and share links for video, comments, and transcript. Channel metadata is derived from published content, and comments does not return channel community board posts.
languageOptional- The requested language code for transcript content. Subtitles are returned based on available tracks; automatic translation is not guaranteed.
What do the YouTube shorts parameters mean?
Browse the Shorts of a YouTube channel by handle, up to 100 per call. Get title, thumbnail, views, likes, duration and publish date. Pass a handle in username, not a UC channel ID. One batch may not include every Short on the channel.
usernameRequired- The channel handle (optional leading @) required by the followers and shorts actions;
followersalso accepts a channel ID starting with UC or a channel link. The followers action returns aggregate subscriber counts rather than user lists. The shorts action prioritizes handles and does not treat UC... channel IDs as identical identifiers.YouTube: Understanding Channel Handles — YouTube defines a handle as a unique channel identifier starting with @, which is distinct from the channel display name. · Checked channelOptional- A compatibility alias for specifying a channel handle. Full /channel/UC... URLs may fail to parse across helper utilities, so prefer passing a handle or using the URL parameter explicitly provided by the action.
sinceOptional- The lower date bound for filtering channel videos, Shorts, or comments. It applies to those lists only.
sortOptional- The sort order applied across YouTube actions. For search, accepted values are relevance, newest, most_viewed, and top_rated. For channel videos and Shorts, accepted values are newest, oldest, and popular. For comments, accepted values are newest and popular. Specifying this parameter on a single-video query does not filter that video's content.Allowed values:
newestoldestpopular
What do the YouTube comment_replies parameters mean?
Read the replies under one YouTube comment, on a video or on a channel post, from the link and the comment's comment_id (a comments or community_post_comments row's id). Each reply has text, author, likes, the time YouTube shows, and creator, pinned, hearted and edited flags. About 10 on the first page and up to about 50 after; pass next_page_token back as page_token for more.
urlRequired- The video link (watch?v=, youtu.be or shorts) or the channel post link (
https://www.youtube.com/post/Ugkx…) the comment is on. comment_idRequired- ID of the top-level comment, starting with Ug, taken from the
idof acommentsorcommunity_post_commentsrow. A reply's ID also works and reads the comment it belongs to. A value that is not recognized returns 422 and is not charged. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 10 replies on the first page and up to about 50 on later pages; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube related_posts parameters mean?
List the videos, Shorts and playlists YouTube recommends next to one video, from the video link. Each row has type, title, channel, view count, duration, the time YouTube shows and badges. About 20 per page; pass next_page_token back as page_token for more.
What do the YouTube resolve_channel parameters mean?
Turn a YouTube channel link, @handle, UC channel ID or channel name into the channel's ID, handle, display name and both links. When channel is a name, matched_by says how it matched: handle, or search for the first channel found by name (check that it is the one you wanted).
channelRequired- The channel to look up, in any of four forms: a channel link (
https://www.youtube.com/@NASAorhttps://www.youtube.com/channel/UC…), an @handle, a channel ID that starts with UC, or a channel name. A name is tried as an @handle first, then searched;matched_bytells you which.
What do the YouTube community_posts parameters mean?
Page through the posts in a YouTube channel's Posts tab, newest first, from the channel link or @handle. Each post has text, likes, comment count, the time YouTube shows, and its attachment: images, a video, or poll options and total votes. 10 per page; pass next_page_token back as page_token for more.
urlRequired- A YouTube channel link (
https://www.youtube.com/@NASAorhttps://www.youtube.com/channel/UC…), an @handle, or a channel ID that starts with UC. Returns the posts in the channel's Posts tab, newest first. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. 10 posts per page; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube community_post parameters mean?
Open one YouTube channel post from its link and get its text, likes, comment count, the time YouTube shows, author, and attachment: images, a video, or poll options and total votes.
Full API reference: parameters, code samples, response example and healthurlRequired- A YouTube channel post link (
https://www.youtube.com/post/Ugkx…), or just the part after /post/.
What do the YouTube community_post_comments parameters mean?
Read the comments on one YouTube channel post from its link. Each comment has text, author, likes, reply count, the time YouTube shows, and creator, pinned, hearted and edited flags. 20 per page; pass next_page_token back as page_token for more. A post with comments turned off returns an empty list.
urlRequired- A YouTube channel post link (
https://www.youtube.com/post/Ugkx…), or just the part after /post/. A post with comments turned off returns an empty list. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. 20 comments per page; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube search_in_channel parameters mean?
Search inside one YouTube channel by keyword, from the channel link or @handle. Rows are videos, Shorts and playlists (see type) with title, view count, duration, the time YouTube shows and badges. About 30 per page; pass next_page_token back as page_token for more.
urlRequired- A YouTube channel link (
https://www.youtube.com/@NASAorhttps://www.youtube.com/channel/UC…), an @handle, or a channel ID that starts with UC. Only this channel is searched. keywordRequired- Search words, up to 200 characters. Results mix videos, Shorts and playlists; check each row's
type. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 30 rows per page, as YouTube sends them; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube shorts_search parameters mean?
Search YouTube Shorts across the whole site by keyword, with optional sort and date_range. Each Short has title, channel, view count, the time YouTube shows and is_backfill for related Shorts YouTube adds when matches run short. About 50 per page and the count varies; pass next_page_token back as page_token for more.
keywordRequired- Search words, up to 200 characters. Searches Shorts across the whole site, not one channel.
date_rangeOptional- Upload time:
last_hour,today,this_week,this_monthorthis_year; leave it out for any time. A value that is not recognized returns 422 and is not charged.Allowed values:last_hourthis_monththis_weekthis_yeartoday page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 50 Shorts per page, and the count varies a lot between pages; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token. sortOptional- Order:
relevance(default),newest,most_viewedortop_rated. A value that is not recognized returns 422 and is not charged.Allowed values:most_viewednewestrelevancetop_rated
What do the YouTube user_search parameters mean?
Find YouTube channels by name or keyword. Each channel has channel ID, name, handle, link, bio, subscriber and video counts, verification flag and avatar. 20 per page; pass next_page_token back as page_token for more. The channel_id works in resolve_channel, community_posts and search_in_channel.
keywordRequired- Search words, up to 200 characters. Matches channels by name.
page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. 20 channels per page; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube search_suggest parameters mean?
Get the suggestions YouTube's search box shows for what you type, about 14 in one call, in order. Set language and country to see another market's suggestions.
keywordRequired- What you type into the search box, such as
minecraft, up to 200 characters. countryOptional- Market of the suggestions, as a two-letter country code such as
USorJP;USwhen left out. A value that is not recognized returns 422 and is not charged. languageOptional- Language of the suggestions, as a language code such as
en,jaorzh-CN;enwhen left out. A value that is not recognized returns 422 and is not charged. limitOptional- Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without
limit, whatever the value.
What do the YouTube video_formats parameters mean?
List the formats a YouTube video has, from its link: quality, codec, bitrate, size, frame rate and audio quality for each format, with no playback URLs. Use media_links or stream_url for the URLs.
urlRequired- A YouTube video link (watch?v=, youtu.be, shorts and live links work). Returns the formats only, with no playback URLs.
What do the YouTube media_links parameters mean?
Get every format of a YouTube video with its playback URL, from the video link. Each format has itag, quality, codec, bitrate and size; the URLs expire about 6 hours after you fetch them (expires_at), so fetch again after that.
urlRequired- A YouTube video link (watch?v=, youtu.be, shorts and live links work). The URLs expire about 6 hours after the call.
What do the YouTube stream_url parameters mean?
Get the playback URL of one format of a YouTube video, from the video link and the format's itag (taken from video_formats or media_links). Returns the URL, MIME type, quality and size, and when the URL expires. A video without that format returns an empty result.
urlRequired- A YouTube video link (watch?v=, youtu.be, shorts and live links work).
itagRequired- Which format: YouTube's format number, an integer from 1 to 9999, taken from the
itagofvideo_formatsormedia_links(140 is m4a audio). A video without that format returns an empty result. A value that is not recognized returns 422 and is not charged.
What do the YouTube channel_lives parameters mean?
List the entries on a YouTube channel's Live tab from channel_id: streams that are live now, past streams and upcoming ones. sort is newest (default), popular or oldest. Each row has title, link, view count, duration, is_live and is_upcoming. About 30 per page and the count varies; pass next_page_token back as page_token for more. When nothing could be read this time, the call returns 503 and is not charged.
channel_idRequired- The channel for
channel_livesandchannel_playlists: a channel ID starting with UC, a channel link (https://www.youtube.com/@NASA) or an @handle. A value that is not recognized returns 422 and is not charged. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 30 per page, and the count varies; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token. sortOptional- Order:
newest(default),popularoroldest, like the buttons on the channel page. When you page, keep it the same as on the first page.Allowed values:newestoldestpopular
What do the YouTube channel_playlists parameters mean?
List the playlists on a YouTube channel's Playlists tab from channel_id. Each row has title, link, thumbnail, playlist_id, video_count and is_course. About 30 per page; pass next_page_token back as page_token for more, and pass a row's playlist_id to playlist_videos to list its videos. When nothing could be read this time, the call returns 503 and is not charged.
channel_idRequired- The channel for
channel_livesandchannel_playlists: a channel ID starting with UC, a channel link (https://www.youtube.com/@NASA) or an @handle. A value that is not recognized returns 422 and is not charged. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 30 playlists per page, and the count varies; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube playlist_videos parameters mean?
List the videos of a YouTube playlist in the playlist's order from playlist_id (an ID starting with PL, UU or OLAK5uy_, or a link with list=). Each row has title, channel, view count, duration and playlist_index, the position in the playlist. About 100 per page; pass next_page_token back as page_token for more. Mixes that YouTube generates itself (IDs starting with RD) are rejected before you are charged. When nothing could be read this time, the call returns 503 and is not charged.
playlist_idRequired- The playlist for
playlist_videos: an ID starting with PL, UU or OLAK5uy_, or a YouTube link withlist=. Mixes that YouTube generates itself (IDs starting with RD) are rejected with 422 before you are charged. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 100 per page, and the count varies; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube video_search parameters mean?
Search YouTube for videos only by keyword, with an optional upload-time filter in sort: hour, today, week, month (the default) or year. Each row has title, channel, view count, duration and the time YouTube shows. About 20 per page; pass next_page_token back as page_token for more, with sort the same as on the first page. When nothing could be read this time, the call returns 503 and is not charged.
keywordRequired- The search term; only videos are searched.
page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 20 per page, and the count varies; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token. sortOptional- Filter by upload time:
hour,today,week,monthoryear;monthwhen left out. When you page, keep it the same as on the first page.Allowed values:hourmonthtodayweekyear
What do the YouTube hashtag parameters mean?
List the videos and Shorts on a YouTube hashtag page, in the order YouTube shows them, from the hashtag name or its link, with optional language and country. Each row has title, channel, view count, duration and the time YouTube shows; first-page rows also carry the hashtag's approximate video and channel counts. Up to 36 per page; most hashtags end on the first page.
hashtagRequired- The hashtag for
hashtag: its name with or without#(cooking,#cooking) or a hashtag page link such ashttps://www.youtube.com/hashtag/cooking; case does not matter. Letters, digits and underscores in any script, no spaces, at most 100 characters. A value that is not recognized returns 422 and is not charged; a hashtag with nothing to watch returns an empty result and is not charged. countryOptional- Country, as a two-letter code such as
USorJP;USwhen left out. It changes which videos YouTube shows. A value that is not recognized returns 422 and is not charged. languageOptional- Interface language, as a language code such as
en,jaorzh-CN;enwhen left out. It changes howpublished_textis written and which title shows when a creator set titles in several languages; content is not translated. A value that is not recognized returns 422 and is not charged. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged,languageandcountryincluded. About 6 to 36 per page depending on the hashtag, and most hashtags end on the first page; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the YouTube recommended_shorts parameters mean?
Read a page of YouTube's Shorts recommendation feed, with no parameters. It is not a trending chart: the feed is not ranked by popularity and changes from call to call. Every row has the Short's ID, link and cover; title, channel and duration come only when YouTube sends them. About 40 per page, with no repeats along one chain of pages.
Full API reference: parameters, code samples, response example and healthpage_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received. About 40 Shorts per page, sometimes a few more or fewer, and pages in one chain do not repeat a Short; each page is one call andlimithas no effect. Tokens last 24 hours.
How to use the YouTube API
- 01Choose a platform action from the public catalog.
- 02Send the platform, action, and required parameters to POST /api/v1/social.
- 03Read the result from the response. For an asynchronous action, poll the returned job ID.
- 04Store the response fields that your application needs.
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"youtube","action":"search","params":{"keyword":"<keyword>"}}'
YouTube guides
Worked examples and methods built on these actions. Check the current actions, parameters and fields on this page first; an article's examples and limits do not replace the live catalog.
YouTube Comments API Missing Replies: Two-Tier Pagination and Completeness Checks
YouTube comments API missing replies? We tested 4 videos in 3 rounds: most threads stop at 10 replies, and popular sort keeps 55% of threads in 15 min.
Read the articleCreator due diligence with real data: why follower counts are not audience proof
Six TikTok creators with 3M to 18M followers: median views were 0.13% to 11.4% of followers. How to vet in layers, check disclosure and cost it.
Read the articleUnified Data API Getting Started: From Capability Catalog to First Available Result
Access multi-platform data using platform, action, and params: read the capability catalog, complete minimal requests, handle asynchronous tasks, partial results, and billing, and establish traceable data records.
Read the articleYouTube API questions
What can I retrieve with the YouTube API?
Set platform to youtube. The current catalog lists search, channel details, posts by user, video details, comments, and more. These action names identify different YouTube objects or views; they are not interchangeable search modes.
Which input starts the YouTube search request?
The search query term for the YouTube search action. If passed to compatibility inputs for the shorts action, this parameter acts as a channel name rather than initiating a site-wide Shorts search. Send it as keyword inside params.
Which fields can YouTube search return?
Its declared schema includes title, text, author_name, and author_username. A declared field can still be absent from an individual record, and every other action has its own field list.
Does every YouTube action return immediately?
Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.
Related articles
- Apify YouTube Scraper Alternative: Measured Price per 1,000 Rows
- Gemini Deep Research API with a remote MCP server: social data you can check
- Apify n8n alternative: one workflow, two bills
- TikHub YouTube API in Python: official quota, TikHub and EveryInfra compared on search, comments and transcripts
- Claude Meetings: Follow Up on Rivals with a Meeting Notes Connector