# YouTube API on SandBase

> Read public YouTube surfaces for video research and content analysis: video metadata, search results, channels, playlists, comments, transcripts, engagement metrics, and creator context.

Source: https://www.sandbase.ai/apis/youtube

- Endpoints: 54
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Guides

- [Best YouTube API in 2026: Pricing Compared](https://blog.sandbase.ai/best-youtube-api-2026/)

## Endpoints

- [YouTube Channel](https://www.sandbase.ai/apis/youtube/channel.md): From $0.00045 per call
  Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
- [YouTube Channel Community Posts](https://www.sandbase.ai/apis/youtube/web-v2/channel-community-posts.md): $0.001 per call
  Returns community posts from a specific YouTube channel, including text content, polls, votes, and comment counts. Supports pagination via a continuation token.
- [YouTube Channel Community Posts](https://www.sandbase.ai/apis/youtube/channel-community-posts.md): From $0.0012 per call
  List a YouTube channel's community posts by handle or channel ID with cursor pagination (text, likes, image, publish time).
- [YouTube Channel Description](https://www.sandbase.ai/apis/youtube/web-v2/channel-description.md): $0.001 per call
  Returns YouTube channel details including subscriber counts, video totals, view counts, joined date, and social links. Filter by country and language.
- [YouTube Channel ID from URL](https://www.sandbase.ai/apis/youtube/web-v2/channel-id.md): $0.001 per call
  Resolves a YouTube channel URL to its canonical channel ID. Accepts various channel URL structures including handle, channel, custom, and user formats.
- [YouTube Channel ID from URL (V2)](https://www.sandbase.ai/apis/youtube/web/channel-id-v2.md): $0.001 per call
  Resolves a YouTube channel URL into its unique channel ID and standardized channel URL. Accepts various URL formats including handles, custom URLs, and user links.
- [YouTube Channel ID Lookup](https://www.sandbase.ai/apis/youtube/web/channel-id.md): $0.001 per call
  Retrieves the unique YouTube channel ID associated with a specific channel name. Provide the target channel name to receive the matching channel identifier.
- [YouTube Channel Information](https://www.sandbase.ai/apis/youtube/web/channel-info.md): $0.001 per call
  Returns profile details and external links for a specified YouTube channel. Look up channel data using a channel identifier.
- [YouTube Channel Live Streams](https://www.sandbase.ai/apis/youtube/channel-lives.md): From $0.0012 per call
  List a YouTube channel's live and past-live streams by handle or channel ID with cursor pagination (title, views, length, publish time).
- [YouTube Channel Playlists](https://www.sandbase.ai/apis/youtube/channel-playlists.md): From $0.0012 per call
  List a YouTube channel's playlists by handle or channel ID with cursor pagination (title, video count, thumbnail).
- [YouTube Channel Search](https://www.sandbase.ai/apis/youtube/web-v2/search-channels.md): $0.001 per call
  Searches YouTube channels by query terms and returns channel listings. Supports paginated results using continuation tokens and optional data formatting.
- [YouTube Channel Short Videos](https://www.sandbase.ai/apis/youtube/web/channel-short-videos.md): $0.001 per call
  Returns a list of YouTube Shorts from a specified channel. Supports pagination through an optional continuation token to browse additional short videos.
- [YouTube Channel Shorts](https://www.sandbase.ai/apis/youtube/web-v2/channel-shorts.md): $0.001 per call
  Returns a list of YouTube Shorts from a specified channel. Supports lookups by channel identifier or URL, optional response formatting, and pagination tokens for next-page results.
- [YouTube Channel Shorts](https://www.sandbase.ai/apis/youtube/channel-shorts.md): $0.014286 per call
  Get public Shorts from a YouTube channel ID with optional continuation-token pagination. Use it to browse a channel's short-form videos and continue through additional result pages.
- [YouTube Channel URL by ID](https://www.sandbase.ai/apis/youtube/web-v2/channel-url.md): $0.001 per call
  Returns standard and vanity channel URLs for a specified YouTube channel. Takes a unique channel ID to look up the corresponding handle and profile links.
- [YouTube Channel URL Lookup](https://www.sandbase.ai/apis/youtube/web/channel-url.md): $0.001 per call
  Returns the standard channel URL and vanity handle URL for a specified YouTube channel. Takes a unique channel ID as input to resolve public web addresses.
- [YouTube Channel Video Search](https://www.sandbase.ai/apis/youtube/web/search-channel.md): $0.001 per call
  Searches videos within a specific YouTube channel using a keyword query. Returns matching video details including title, view count, post date, and video ID.
- [YouTube Channel Videos](https://www.sandbase.ai/apis/youtube/web-v2/channel-videos.md): $0.001 per call
  Returns a list of videos for a specified YouTube channel, including title, duration, URLs, and view counts. Supports pagination and region or language filters.
- [YouTube Channel Videos](https://www.sandbase.ai/apis/youtube/channel-videos.md): $0.014286 per call
  Get public videos from a YouTube channel, with optional cursor-based pagination. Use it to browse a channel's uploads and continue through additional result pages.
- [YouTube Comment Replies](https://www.sandbase.ai/apis/youtube/comment-replies.md): From $0.0012 per call
  List replies to a YouTube comment using a continuation token with cursor pagination (text, author, likes, publish time).
- [YouTube Community Post](https://www.sandbase.ai/apis/youtube/community-post.md): From $0.0012 per call
  Fetch a single YouTube community post by URL (text, images, channel, publish time).
- [YouTube Community Post Comments](https://www.sandbase.ai/apis/youtube/web-v2/post-comments.md): $0.001 per call
  Returns comments from a YouTube community post with support for pagination, formatted output, and regional localization settings.
- [YouTube Community Post Details](https://www.sandbase.ai/apis/youtube/web-v2/post-detail.md): $0.001 per call
  Returns detailed information for a YouTube community post, including post text, media attachments, and engagement metrics. Filter results by post ID, language, and country.
- [YouTube General search (raw data, recommend V2)](https://www.sandbase.ai/apis/youtube/web-v2/general-search.md): $0.001 per call
  YouTube comprehensive search with multiple filter options for precise result filtering.
- [YouTube General Search (Web V2, V2)](https://www.sandbase.ai/apis/youtube/web-v2/general-search-v2.md): $0.002 per call
  Returns YouTube search results matching a query keyword. Supports filtering by content type, upload date, duration, features, and sorting options, with pagination via tokens.
- [YouTube Hashtag Search](https://www.sandbase.ai/apis/youtube/search-hashtag.md): From $0.0012 per call
  Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time).
- [YouTube Playlist](https://www.sandbase.ai/apis/youtube/playlist.md): From $0.0012 per call
  List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals).
- [YouTube Post Comment Replies](https://www.sandbase.ai/apis/youtube/web-v2/post-comment-replies.md): $0.001 per call
  Returns second-level comment replies for a YouTube post. Supports pagination using continuation tokens, along with optional country and language localization settings.
- [YouTube Related Videos (Web V2)](https://www.sandbase.ai/apis/youtube/web-v2/related-videos.md): $0.001 per call
  Returns a list of related videos for a given YouTube video by ID or URL. Includes an option to format the returned output structure.
- [YouTube Related Videos (Web)](https://www.sandbase.ai/apis/youtube/web/relate-video.md): $0.001 per call
  Returns a list of related videos for a given YouTube video ID. Supports pagination using a continuation token to retrieve additional recommendations.
- [YouTube Search](https://www.sandbase.ai/apis/youtube/search.md): From $0.0005 per call
  Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
- [YouTube Search Suggestions](https://www.sandbase.ai/apis/youtube/web-v2/search-suggestions.md): $0.001 per call
  Returns YouTube autocomplete search suggestions for a given keyword query. Supports optional geographic region and language filtering.
- [YouTube Shorts Search](https://www.sandbase.ai/apis/youtube/search-shorts.md): From $0.0012 per call
  Search YouTube Shorts by keyword and get matching Shorts (title, views, URL) with cursor pagination as normalized JSON.
- [YouTube Shorts search (raw data, recommend V2)](https://www.sandbase.ai/apis/youtube/web-v2/shorts-search.md): $0.001 per call
  YouTube Shorts specialized search using native YouTube API.
- [YouTube Shorts Search (V2)](https://www.sandbase.ai/apis/youtube/web-v2/shorts-search-v2.md): $0.002 per call
  Searches for YouTube Shorts matching a query keyword. Results can be filtered by upload date and sorted by relevance, upload date, view count, or rating.
- [YouTube Signed Video Stream URL](https://www.sandbase.ai/apis/youtube/web-v2/signed-stream-url.md): $0.001 per call
  Returns a signed playback stream URL for a specific YouTube video format. Requires a format itag identifier alongside either a video ID or full video link.
- [YouTube Trending Shorts](https://www.sandbase.ai/apis/youtube/trending-shorts.md): From $0.0012 per call
  List currently trending YouTube Shorts (title, channel, views, likes, duration).
- [YouTube Video](https://www.sandbase.ai/apis/youtube/video.md): From $0.0008 per call
  Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
- [YouTube Video Captions](https://www.sandbase.ai/apis/youtube/web-v2/video-captions.md): $0.008 per call
  Returns available video caption tracks or transcripts in multiple formats, filtered by video identifier and language code.
- [YouTube Video Captions](https://www.sandbase.ai/apis/youtube/video-captions.md): $0.014286 per call
  Get available caption tracks for a YouTube video or request captions in SRT, XML, JSON3, or plain-text format. Use it to support transcription, accessibility, localization, or text analysis.
- [YouTube Video Captions Job Result](https://www.sandbase.ai/apis/youtube/web-v2/video-captions-result.md): $0.0015 per call
  Returns the status and finished captions for an asynchronous video caption request by job ID. Supports output formats including SRT, XML, JSON3, and TXT once completed.
- [YouTube Video Comment List](https://www.sandbase.ai/apis/youtube/video-comment.md): $0.014286 per call
  Get first-level comments for a YouTube video with sorting, locale options, and cursor pagination. Use it to review audience discussion or continue through additional comment pages.
- [YouTube Video Comment Replies](https://www.sandbase.ai/apis/youtube/web-v2/video-comment-replies.md): $0.001 per call
  Returns second-level replies for a YouTube video comment using a continuation token, with optional filters for region, language, and formatted output.
- [YouTube Video Comments](https://www.sandbase.ai/apis/youtube/web-v2/video-comments.md): $0.001 per call
  Retrieves top-level comments for a YouTube video specified by video ID. Supports sorting by top or newest, regional localization, and pagination.
- [YouTube Video Comments](https://www.sandbase.ai/apis/youtube/video-comments.md): From $0.0008 per call
  List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
- [YouTube Video Details](https://www.sandbase.ai/apis/youtube/video-detail.md): $0.014286 per call
  Get public details for a YouTube video identified by video ID. Use it to inspect a known video before further content or comment analysis.
- [YouTube Video Information](https://www.sandbase.ai/apis/youtube/web-v2/video-info.md): $0.001 per call
  Returns detailed video information and caption tracks for a specified YouTube video ID. Supports optional parameters to format output data and set language preferences.
- [YouTube Video Information (V2)](https://www.sandbase.ai/apis/youtube/web-v2/video-info-v2.md): $0.001 per call
  Returns comprehensive details for a YouTube video identified by its ID or direct URL, with an option to retrieve a cleaned payload format.
- [YouTube Video Search](https://www.sandbase.ai/apis/youtube/web/search-video.md): $0.001 per call
  Search YouTube videos by keyword and get video ID, title, channel, views, length and publish time, with country, language and upload-date filters and continuation-token pagination.
- [YouTube Video Sponsors](https://www.sandbase.ai/apis/youtube/video-sponsors.md): From $0.0012 per call
  Detect suspected sponsors and paid promotions in a YouTube video by URL (sponsor names, websites, confidence).
- [YouTube Video Streams](https://www.sandbase.ai/apis/youtube/web-v2/video-streams.md): $0.001 per call
  Returns stream details and media information for a specified YouTube video. Queries accept either a direct video identifier or a full video URL.
- [YouTube Video Streams (V2)](https://www.sandbase.ai/apis/youtube/web-v2/video-streams-v2.md): $0.004 per call
  Retrieves stream information and playback details for a YouTube video. Queries data using either a video ID or a full video URL.
- [YouTube Video Transcript](https://www.sandbase.ai/apis/youtube/video-transcript.md): From $0.0009 per call
  Fetch the transcript/captions of a YouTube video or Short by URL or ID.
- [YouTube Video Transcript (Provenance)](https://www.sandbase.ai/apis/youtube/video-transcript-full.md): From $0.002 per call
  Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
