Wszystkie strony
Data API
YouTube Data API
Filmy, kanały, playlisty, komentarze i wyszukiwanie z YouTube.
38 endpointówLimit żądań: obsługujemy to za Ciebie
Przegląd YouTube Data API
Pobieraj filmy, kanały, playlisty, komentarze i wyszukiwanie z YouTube jako uporządkowany JSON. Wybierz poniżej endpoint, sprawdź jego parametry i uruchom go w playgroundzie w panelu.
/v1/youtube/… Otwórz playgroundKluczowe funkcje
Uporządkowany JSON
Czyste, znormalizowane rekordy: filmy, kanały, playlisty, komentarze i wyszukiwanie. Bez parsowania HTML po Twojej stronie.
38 endpointów
W 9 kategoriach, wszystkie pod jedną ścieżką bazową.
Anty-bot obsłużony
Limit żądań: pokonujemy to za Ciebie w tle.
Dane na żywo przy każdym uruchomieniu
Każde żądanie pobiera dane ze źródła na żywo, więc wyniki są zawsze aktualne.
Regiony i języki
Targetuj konkretne rynki i języki za pomocą tych parametrów:
gldomyślnie UShldomyślnie enlangdomyślnie enPaginacja
Przechodź przez kolejne strony wyników za pomocą continuation.
Szybki start
Użyj dedykowanego klucza Data API. Stosuj metodę i parametry tego endpointu.
# 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())Cennik za uruchomienie
nieudane żądania są bezpłatne| Endpoint | Kategoria | Cena / 1 tys. wyników |
|---|---|---|
/v1/data/youtube/autocompleteAutocomplete | Search | 1 kredyt / uruchomienie |
/v1/data/youtube/searchSearch | Search | 1 kredyt / uruchomienie |
/v1/data/youtube/categoriesCategories | Reference | 1 kredyt / uruchomienie |
/v1/data/youtube/languagesLanguages | Reference | 1 kredyt / uruchomienie |
/v1/data/youtube/marketsMarkets | Reference | 1 kredyt / uruchomienie |
/v1/data/youtube/oembedoEmbed | Reference | 1 kredyt / uruchomienie |
/v1/data/youtube/regionsRegions | Reference | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/{channel_id}/communityChannel Community | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/{channel_id}Channel Detail | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/{channel_id}/playlistsChannel Playlists | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/resolveResolve Channel | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/{channel_id}/searchChannel Search | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/{channel_id}/shortsChannel Shorts | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/{channel_id}/streamsChannel Streams | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/channels/{channel_id}/videosChannel Videos | Channels | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}/comments/{comment_id}/repliesComment Replies | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/video/{video_id}/transcriptJuż wkrótceTranscript | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/video/{video_id}Video | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}/captionsJuż wkrótceCaptions | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}/commentsVideo Comments | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}Video Detail | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}/live_chatLive Chat | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}/relatedRelated Videos | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}/streamsJuż wkrótceStreams | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/{video_id}/transcriptJuż wkrótceTranscript | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/videos/batchVideos Batch | Videos | 1 kredyt / uruchomienie |
/v1/data/youtube/hashtags/{tag}Hashtag Videos | Feeds | 1 kredyt / uruchomienie |
/v1/data/youtube/homeJuż wkrótceHome | Feeds | 1 kredyt / uruchomienie |
/v1/data/youtube/trendingJuż wkrótceTrending | Feeds | 1 kredyt / uruchomienie |
/v1/data/youtube/trending/shortsJuż wkrótceTrending Shorts | Feeds | 1 kredyt / uruchomienie |
/v1/data/youtube/mixes/{mix_id}Mix | Playlists | 1 kredyt / uruchomienie |
/v1/data/youtube/playlists/{playlist_id}Playlist Detail | Playlists | 1 kredyt / uruchomienie |
/v1/data/youtube/playlists/{playlist_id}/itemsPlaylist Items | Playlists | 1 kredyt / uruchomienie |
/v1/data/youtube/music/searchMusic Search | Music | 1 kredyt / uruchomienie |
/v1/data/youtube/posts/{post_id}/commentsPost Comments | Posts | 1 kredyt / uruchomienie |
/v1/data/youtube/posts/{post_id}Community Post | Posts | 1 kredyt / uruchomienie |
/v1/data/youtube/shorts/by_sound/{sound_id}Shorts by Sound | Shorts | 1 kredyt / uruchomienie |
/v1/data/youtube/shorts/{video_id}Shorts Detail | Shorts | 1 kredyt / uruchomienie |