YouTube Data API
Videos, Kanäle, Playlists, Kommentare und Suche von YouTube.
YouTube Data API: Übersicht
Extrahiere Videos, Kanäle, Playlists, Kommentare und Suche von YouTube als strukturiertes JSON. Wähle unten einen Endpunkt, prüfe seine Parameter und führe ihn im Playground des Dashboards aus.
/v1/youtube/… Playground öffnenWichtigste Funktionen
Strukturiertes JSON
Saubere, normalisierte Datensätze für Videos, Kanäle, Playlists, Kommentare und Suche. Kein HTML-Parsing auf deiner Seite.
38 Endpunkte
In 9 Kategorien, alle unter einem Basispfad.
Anti-Bot erledigt
Ratenlimit räumen wir im Hintergrund für dich aus dem Weg.
Live-Daten bei jedem Lauf
Jede Anfrage scrapt die Quelle live, daher sind die Ergebnisse immer aktuell.
Regionen & Sprachen
Ziele mit diesen Parametern auf bestimmte Märkte und Sprachen:
glStandard UShlStandard enlangStandard enPaginierung
Blättere mit continuation durch die Ergebnisse.
Schnellstart
Verwende deinen eigenen Data API-Schlüssel. Halte dich an die Methode und die Parameter dieses Endpunkts.
# 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())Preise pro Lauf
fehlgeschlagene Anfragen sind kostenlos| Endpunkt | Kategorie | Preis / 1k Ergebnisse |
|---|---|---|
/v1/data/youtube/autocompleteAutocomplete | Search | 1 Credit / Lauf |
/v1/data/youtube/searchSearch | Search | 1 Credit / Lauf |
/v1/data/youtube/categoriesCategories | Reference | 1 Credit / Lauf |
/v1/data/youtube/languagesLanguages | Reference | 1 Credit / Lauf |
/v1/data/youtube/marketsMarkets | Reference | 1 Credit / Lauf |
/v1/data/youtube/oembedoEmbed | Reference | 1 Credit / Lauf |
/v1/data/youtube/regionsRegions | Reference | 1 Credit / Lauf |
/v1/data/youtube/channels/{channel_id}/communityChannel Community | Channels | 1 Credit / Lauf |
/v1/data/youtube/channels/{channel_id}Channel Detail | Channels | 1 Credit / Lauf |
/v1/data/youtube/channels/{channel_id}/playlistsChannel Playlists | Channels | 1 Credit / Lauf |
/v1/data/youtube/channels/resolveResolve Channel | Channels | 1 Credit / Lauf |
/v1/data/youtube/channels/{channel_id}/searchChannel Search | Channels | 1 Credit / Lauf |
/v1/data/youtube/channels/{channel_id}/shortsChannel Shorts | Channels | 1 Credit / Lauf |
/v1/data/youtube/channels/{channel_id}/streamsChannel Streams | Channels | 1 Credit / Lauf |
/v1/data/youtube/channels/{channel_id}/videosChannel Videos | Channels | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}/comments/{comment_id}/repliesComment Replies | Videos | 1 Credit / Lauf |
/v1/data/youtube/video/{video_id}/transcriptDemnächstTranscript | Videos | 1 Credit / Lauf |
/v1/data/youtube/video/{video_id}Video | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}/captionsDemnächstCaptions | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}/commentsVideo Comments | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}Video Detail | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}/live_chatLive Chat | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}/relatedRelated Videos | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}/streamsDemnächstStreams | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/{video_id}/transcriptDemnächstTranscript | Videos | 1 Credit / Lauf |
/v1/data/youtube/videos/batchVideos Batch | Videos | 1 Credit / Lauf |
/v1/data/youtube/hashtags/{tag}Hashtag Videos | Feeds | 1 Credit / Lauf |
/v1/data/youtube/homeDemnächstHome | Feeds | 1 Credit / Lauf |
/v1/data/youtube/trendingDemnächstTrending | Feeds | 1 Credit / Lauf |
/v1/data/youtube/trending/shortsDemnächstTrending Shorts | Feeds | 1 Credit / Lauf |
/v1/data/youtube/mixes/{mix_id}Mix | Playlists | 1 Credit / Lauf |
/v1/data/youtube/playlists/{playlist_id}Playlist Detail | Playlists | 1 Credit / Lauf |
/v1/data/youtube/playlists/{playlist_id}/itemsPlaylist Items | Playlists | 1 Credit / Lauf |
/v1/data/youtube/music/searchMusic Search | Music | 1 Credit / Lauf |
/v1/data/youtube/posts/{post_id}/commentsPost Comments | Posts | 1 Credit / Lauf |
/v1/data/youtube/posts/{post_id}Community Post | Posts | 1 Credit / Lauf |
/v1/data/youtube/shorts/by_sound/{sound_id}Shorts by Sound | Shorts | 1 Credit / Lauf |
/v1/data/youtube/shorts/{video_id}Shorts Detail | Shorts | 1 Credit / Lauf |