Skip to content
All sites
Data API

YouTube Data API

Videos, channels, playlists, comments and search from YouTube.

38endpointsRate Limit handled for you
youtube.comGET/youtube/autoc…GET/youtube/searchGET/youtube/categ…{ } JSON

YouTube Data API overview

Extract videos, channels, playlists, comments and search from YouTube as structured JSON. Choose an endpoint below, check its parameters, and run it in the dashboard playground.

/v1/youtube/… Open playground

Key Features

Structured JSON

Clean, normalized records for videos, channels, playlists, comments and search. No HTML parsing on your side.

38 endpoints

Across 9 categories, all under one base path.

Anti-bot handled

Rate Limit cleared for you behind the scenes.

Fresh or cached

Serve instantly from the warm store, or force a live scrape per request.

Regions & Languages

Target specific markets and languages with these parameters:

gldefault US
hldefault en
langdefault en

Pagination

Page through results with continuation.

Quick Start

Use your dedicated Data API key. Follow this endpoint's method and parameters.

data_api.py
# Install: pip install requests
import json
import os
import requests

params = json.loads("{\"query\":\"lofi hip hop\",\"gl\":\"US\",\"hl\":\"en\"}")
response = requests.request(
    "GET", "https://api.capzy.ai/v1/youtube/search",
    headers={"X-API-Key": os.environ["CAPZY_DATA_API_KEY"]},
    params=params,
    timeout=120,
)
response.raise_for_status()
print(response.json())

Per-run pricing

failed requests are free
EndpointCategoryPrice / 1k results
/v1/data/youtube/autocompleteAutocompleteSearch1 credit / run
/v1/data/youtube/searchSearchSearch1 credit / run
/v1/data/youtube/categoriesCategoriesReference1 credit / run
/v1/data/youtube/languagesLanguagesReference1 credit / run
/v1/data/youtube/marketsMarketsReference1 credit / run
/v1/data/youtube/oembedoEmbedReference1 credit / run
/v1/data/youtube/regionsRegionsReference1 credit / run
/v1/data/youtube/channels/{channel_id}/communityChannel CommunityChannels1 credit / run
/v1/data/youtube/channels/{channel_id}Channel DetailChannels1 credit / run
/v1/data/youtube/channels/{channel_id}/playlistsChannel PlaylistsChannels1 credit / run
/v1/data/youtube/channels/resolveResolve ChannelChannels1 credit / run
/v1/data/youtube/channels/{channel_id}/searchChannel SearchChannels1 credit / run
/v1/data/youtube/channels/{channel_id}/shortsChannel ShortsChannels1 credit / run
/v1/data/youtube/channels/{channel_id}/streamsChannel StreamsChannels1 credit / run
/v1/data/youtube/channels/{channel_id}/videosChannel VideosChannels1 credit / run
/v1/data/youtube/videos/{video_id}/comments/{comment_id}/repliesComment RepliesVideos1 credit / run
/v1/data/youtube/video/{video_id}/transcriptComing soonTranscriptVideos1 credit / run
/v1/data/youtube/video/{video_id}VideoVideos1 credit / run
/v1/data/youtube/videos/{video_id}/captionsComing soonCaptionsVideos1 credit / run
/v1/data/youtube/videos/{video_id}/commentsVideo CommentsVideos1 credit / run
/v1/data/youtube/videos/{video_id}Video DetailVideos1 credit / run
/v1/data/youtube/videos/{video_id}/live_chatLive ChatVideos1 credit / run
/v1/data/youtube/videos/{video_id}/relatedRelated VideosVideos1 credit / run
/v1/data/youtube/videos/{video_id}/streamsComing soonStreamsVideos1 credit / run
/v1/data/youtube/videos/{video_id}/transcriptTranscriptVideos1 credit / run
/v1/data/youtube/videos/batchVideos BatchVideos1 credit / run
/v1/data/youtube/hashtags/{tag}Hashtag VideosFeeds1 credit / run
/v1/data/youtube/homeComing soonHomeFeeds1 credit / run
/v1/data/youtube/trendingComing soonTrendingFeeds1 credit / run
/v1/data/youtube/trending/shortsComing soonTrending ShortsFeeds1 credit / run
/v1/data/youtube/mixes/{mix_id}MixPlaylists1 credit / run
/v1/data/youtube/playlists/{playlist_id}Playlist DetailPlaylists1 credit / run
/v1/data/youtube/playlists/{playlist_id}/itemsPlaylist ItemsPlaylists1 credit / run
/v1/data/youtube/music/searchMusic SearchMusic1 credit / run
/v1/data/youtube/posts/{post_id}/commentsPost CommentsPosts1 credit / run
/v1/data/youtube/posts/{post_id}Community PostPosts1 credit / run
/v1/data/youtube/shorts/by_sound/{sound_id}Shorts by SoundShorts1 credit / run
/v1/data/youtube/shorts/{video_id}Shorts DetailShorts1 credit / run