YouTube Data API
Video's, kanalen, playlists, reacties en zoekresultaten van YouTube.
Overzicht van de YouTube Data API
Haal video's, kanalen, playlists, reacties en zoekresultaten op uit YouTube als gestructureerde JSON. Kies hieronder een endpoint, bekijk de parameters en voer het uit in de playground van het dashboard.
/v1/youtube/… Playground openenBelangrijkste functies
Gestructureerde JSON
Schone, genormaliseerde records voor video's, kanalen, playlists, reacties en zoekresultaten. Geen HTML-parsing aan jouw kant.
38 endpoints
Verdeeld over 9 categorieën, allemaal onder één basispad.
Anti-bot afgehandeld
Rate limit achter de schermen voor je afgehandeld.
Live data bij elke run
Elk verzoek scrapet de bron live, dus de resultaten zijn altijd actueel.
Regio's en talen
Richt je op specifieke markten en talen met deze parameters:
glstandaard UShlstandaard enlangstandaard enPaginering
Blader door resultaten met continuation.
Snelstart
Gebruik je eigen Data API-sleutel. Volg de methode en parameters van dit endpoint.
# 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())Prijzen per run
mislukte verzoeken zijn gratis| Endpoint | Categorie | Prijs / 1k resultaten |
|---|---|---|
/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}/transcriptBinnenkort beschikbaarTranscript | Videos | 1 credit / run |
/v1/data/youtube/video/{video_id}Video | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/captionsBinnenkort beschikbaarCaptions | 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}/streamsBinnenkort beschikbaarStreams | Videos | 1 credit / run |
/v1/data/youtube/videos/{video_id}/transcriptBinnenkort beschikbaarTranscript | 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/homeBinnenkort beschikbaarHome | Feeds | 1 credit / run |
/v1/data/youtube/trendingBinnenkort beschikbaarTrending | Feeds | 1 credit / run |
/v1/data/youtube/trending/shortsBinnenkort beschikbaarTrending 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 |