All sites
Data API
YouTube Data API
Videos, channels, playlists, comments and search from YouTube.
38endpointsRate Limit handled for you
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 playgroundKey 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 UShldefault enlangdefault enPagination
Page through results with continuation.
Quick Start
Use your dedicated Data API key. Follow this endpoint's method and parameters.
# 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| Endpoint | Category | Price / 1k results |
|---|---|---|
/v1/data/youtube/autocompleteAutocomplete | Search | 1 credit / run |
/v1/data/youtube/searchSearch | Search | 1 credit / run |
/v1/data/youtube/categoriesCategories | Reference | 1 credit / run |
/v1/data/youtube/languagesLanguages | Reference | 1 credit / run |
/v1/data/youtube/marketsMarkets | Reference | 1 credit / run |
/v1/data/youtube/oembedoEmbed | Reference | 1 credit / run |
/v1/data/youtube/regionsRegions | Reference | 1 credit / run |
/v1/data/youtube/channels/{channel_id}/communityChannel Community | Channels | 1 credit / run |
/v1/data/youtube/channels/{channel_id}Channel Detail | Channels | 1 credit / run |
/v1/data/youtube/channels/{channel_id}/playlistsChannel Playlists | Channels | 1 credit / run |
/v1/data/youtube/channels/resolveResolve Channel | Channels | 1 credit / run |
/v1/data/youtube/channels/{channel_id}/searchChannel Search | Channels | 1 credit / run |
/v1/data/youtube/channels/{channel_id}/shortsChannel Shorts | Channels | 1 credit / run |
/v1/data/youtube/channels/{channel_id}/streamsChannel Streams | Channels | 1 credit / run |
/v1/data/youtube/channels/{channel_id}/videosChannel Videos | Channels | 1 credit / run |
/v1/data/youtube/videos/{video_id}/comments/{comment_id}/repliesComment Replies | Videos | 1 credit / run |
/v1/data/youtube/video/{video_id}/transcriptComing soonTranscript | Videos | 1 credit / run |
/v1/data/youtube/video/{video_id}Video | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/captionsComing soonCaptions | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/commentsVideo Comments | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}Video Detail | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/live_chatLive Chat | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/relatedRelated Videos | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/streamsComing soonStreams | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/transcriptTranscript | Videos | 1 credit / run |
/v1/data/youtube/videos/batchVideos Batch | Videos | 1 credit / run |
/v1/data/youtube/hashtags/{tag}Hashtag Videos | Feeds | 1 credit / run |
/v1/data/youtube/homeComing soonHome | Feeds | 1 credit / run |
/v1/data/youtube/trendingComing soonTrending | Feeds | 1 credit / run |
/v1/data/youtube/trending/shortsComing soonTrending Shorts | Feeds | 1 credit / run |
/v1/data/youtube/mixes/{mix_id}Mix | Playlists | 1 credit / run |
/v1/data/youtube/playlists/{playlist_id}Playlist Detail | Playlists | 1 credit / run |
/v1/data/youtube/playlists/{playlist_id}/itemsPlaylist Items | Playlists | 1 credit / run |
/v1/data/youtube/music/searchMusic Search | Music | 1 credit / run |
/v1/data/youtube/posts/{post_id}/commentsPost Comments | Posts | 1 credit / run |
/v1/data/youtube/posts/{post_id}Community Post | Posts | 1 credit / run |
/v1/data/youtube/shorts/by_sound/{sound_id}Shorts by Sound | Shorts | 1 credit / run |
/v1/data/youtube/shorts/{video_id}Shorts Detail | Shorts | 1 credit / run |