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"}

Real responses for the same video from several endpoints, captured November 21, 2026 (UTC). Each box links to its endpoint page.

Platform availability

24h health
100%
Healthy

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.

  • 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

  • Search YouTube Shorts across the whole site by keyword, with optional sort and date_range.

    shorts_search$0.79 per 1,000 calls

  • Find YouTube channels by name or keyword.

    user_search$0.56 per 1,000 calls

  • Search inside one YouTube channel by keyword, from the channel link or @handle.

    search_in_channel$0.56 per 1,000 calls

  • 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

  • Search YouTube for videos only by keyword, with an optional upload-time filter in sort: hour, today, week, month (the default) or year.

    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 language and country.

    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

  • 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

  • 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

  • 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

  • List the videos, Shorts and playlists YouTube recommends next to one video, from the video link.

    related_posts$0.56 per 1,000 calls

  • 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=).

    playlist_videos$0.56 per 1,000 calls

  • 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

  • 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).

    comment_replies$0.79 per 1,000 calls

Channel posts

  • 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

  • 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

  • Read the comments on one YouTube channel post from its link.

    community_post_comments$0.56 per 1,000 calls

Formats and playback addresses

  • 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

  • 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).

    stream_url$0.56 per 1,000 calls

YouTube API pricing

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

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.

ComparedYouTube Data APIEveryInfra
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.

ActionRequiredOptionalLimitPer 1,000Blank rows: $0.56Response fields
search

Search

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.

keywordsortCatalog 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 callid · 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
profile

Channel 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_posts

Posts 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 since for a start date and sort for newest, oldest or popular. One batch may not cover the whole channel archive.

urlsince, sortCatalog 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 callid · 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
video

Video 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, comments and transcript.

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
comments

Comments

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.

urlpage_token, since, sortCatalog 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 callid · text · author_name · like_count · like_count_estimated · reply_count · reply_count_estimated · posted_at · published_text · is_reply · reply_to_id · platform
followers

Followers

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.

usernamechannel—id · username · url · follower_count · following_count · post_count · like_count · connection_count · precision · platform · channel_id · display_name · follower_count_estimated
transcript

Transcript

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.

urllanguage—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
shorts

Shorts

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.

usernamechannel, since, sortCatalog 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 callid · 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_replies

Comment replies

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.

url, comment_idpage_tokenEach 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 requestsid · 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_posts

Related posts

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.

urlpage_tokenEach 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_channel

Channel 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 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).

channel——channel_id · username · name · url · channel_url · matched_by · platform
community_posts

Community 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 next_page_token back as page_token for more.

urlpage_tokenEach 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_post

Channel 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_comments

Channel 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 next_page_token back as page_token for more. A post with comments turned off returns an empty list.

urlpage_tokenEach 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_channel

Search in channel

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.

url, keywordpage_tokenEach 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_search

Shorts search

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.

keyworddate_range, page_token, sortEach 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 requeststype · 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_search

Account 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 next_page_token back as page_token for more. The channel_id works in resolve_channel, community_posts and search_in_channel.

keywordpage_tokenEach 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_suggest

Search suggestions

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.

keywordcountry, language, limit—rank · keyword · platform
video_formats

Video 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 media_links or stream_url for the URLs.

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_links

Media download links

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.

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_url

Format stream URL

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.

url, itag——id · itag · url · mime_type · quality_label · content_length · expires_at · expires_in_seconds · platform
channel_lives

Channel live streams

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_idpage_token, sortEach 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_playlists

Channel playlists

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_idpage_tokenEach 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_videos

Playlist videos

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_idpage_tokenEach 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_search

Video search

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.

keywordpage_token, sortEach 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
hashtag

Hashtag

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.

hashtagcountry, language, page_tokenEach 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 requeststype · 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_shorts

Recommended 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_tokenEach 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 requeststype · 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.

Full API reference: parameters, code samples, response example and health
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_viewed or top_rated. With newest, the videos returned are ordered by posted_at, newest first, and videos without posted_at come 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 health
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 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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health
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's next_page_token exactly as received, with the other parameters unchanged. Each page holds at least limit top-level comments (default 20, when that many remain) with their replies, as whole pages, so often more. since can't be combined with page_token. Each page counts as one call. Tokens last 24 hours, and the last page has no next_page_token. A request without page_token works as before, returning at most 100 comments; it sometimes includes a next_page_token that can be followed the same way. To paginate, start from page_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.

Full API reference: parameters, code samples, response example and health
usernameRequired
The channel handle (optional leading @) required by the followers and shorts actions; followers also 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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health
usernameRequired
The channel handle (optional leading @) required by the followers and shorts actions; followers also 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.

Full API reference: parameters, code samples, response example and health
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 id of a comments or community_post_comments row. 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_token exactly 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 and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health

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).

Full API reference: parameters, code samples, response example and health
channelRequired
The channel to look up, in any of four forms: a channel link (https://www.youtube.com/@NASA or https://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_by tells 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.

Full API reference: parameters, code samples, response example and health
urlRequired
A YouTube channel link (https://www.youtube.com/@NASA or https://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_token exactly as received, with the other parameters unchanged. 10 posts per page; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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 health
urlRequired
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.

Full API reference: parameters, code samples, response example and health
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_token exactly as received, with the other parameters unchanged. 20 comments per page; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
urlRequired
A YouTube channel link (https://www.youtube.com/@NASA or https://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_token exactly as received, with the other parameters unchanged. About 30 rows per page, as YouTube sends them; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
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_month or this_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_token exactly 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 and limit has no effect. Tokens last 24 hours, and the last page has no next_page_token.
sortOptional
Order: relevance (default), newest, most_viewed or top_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.

Full API reference: parameters, code samples, response example and health
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_token exactly as received, with the other parameters unchanged. 20 channels per page; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
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 US or JP; US when 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, ja or zh-CN; en when 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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health

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.

Full API reference: parameters, code samples, response example and health
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 itag of video_formats or media_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.

Full API reference: parameters, code samples, response example and health
channel_idRequired
The channel for channel_lives and channel_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_token exactly as received, with the other parameters unchanged. About 30 per page, and the count varies; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_page_token.
sortOptional
Order: newest (default), popular or oldest, 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.

Full API reference: parameters, code samples, response example and health
channel_idRequired
The channel for channel_lives and channel_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_token exactly as received, with the other parameters unchanged. About 30 playlists per page, and the count varies; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
playlist_idRequired
The playlist for playlist_videos: an ID starting with PL, UU or OLAK5uy_, or a YouTube link with list=. 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_token exactly as received, with the other parameters unchanged. About 100 per page, and the count varies; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
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_token exactly as received, with the other parameters unchanged. About 20 per page, and the count varies; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_page_token.
sortOptional
Filter by upload time: hour, today, week, month or year; month when 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.

Full API reference: parameters, code samples, response example and health
hashtagRequired
The hashtag for hashtag: its name with or without # (cooking, #cooking) or a hashtag page link such as https://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 US or JP; US when 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, ja or zh-CN; en when left out. It changes how published_text is 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_token exactly as received, with the other parameters unchanged, language and country included. About 6 to 36 per page depending on the hashtag, and most hashtags end on the first page; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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 health

How to use the YouTube API

  1. 01Choose a platform action from the public catalog.
  2. 02Send the platform, action, and required parameters to POST /api/v1/social.
  3. 03Read the result from the response. For an asynchronous action, poll the returned job ID.
  4. 04Store the response fields that your application needs.
youtube_search.sh
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.

Blog

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 article
Blog

Creator 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 article
Build

Unified 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 article

YouTube 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.

Google Analytics needs consent. Privacy