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

Extract videos, channels, playlists, comments and search from YouTube as structured JSON. One POST per query, anti-bot handled, billed only on success.

POST /v1/data/youtube/{action}

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

Send your key and a few params. Failed requests are free.

data_api.py
import requests

resp = requests.post(
    "https://api.capzy.ai/v1/data/youtube/search",
    json={
  "clientKey": "capzy_your_key_here",
  "params": {
    "query": "lofi hip hop",
    "gl": "US",
    "hl": "en"
  }
},
)
print(resp.json()["result"])

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