YouTube Data API
YouTube'dan videolar, kanallar, oynatma listeleri, yorumlar ve arama.
YouTube Data API genel bakış
YouTube üzerinden videolar, kanallar, oynatma listeleri, yorumlar ve arama verilerini yapılandırılmış JSON olarak çıkarın. Aşağıdan bir uç nokta seçin, parametrelerini kontrol edin ve panel test alanında çalıştırın.
/v1/youtube/… Test alanını açTemel Özellikler
Yapılandırılmış JSON
videolar, kanallar, oynatma listeleri, yorumlar ve arama için temiz, normalize edilmiş kayıtlar. Sizin tarafınızda HTML ayrıştırma yok.
38 uç nokta
9 kategoride, tümü tek bir temel yol altında.
Anti-bot halledilir
Hız Limiti arka planda sizin için aşılır.
Her çalıştırmada canlı veri
Her istek kaynağı canlı olarak tarar, bu yüzden sonuçlar her zaman günceldir.
Bölgeler ve Diller
Bu parametrelerle belirli pazarları ve dilleri hedefleyin:
glvarsayılan UShlvarsayılan enlangvarsayılan enSayfalama
Sonuçlar arasında continuation ile sayfa sayfa gezinin.
Hızlı Başlangıç
Size özel Data API anahtarınızı kullanın. Bu uç noktanın metodunu ve parametrelerini izleyin.
# 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())Çalıştırma başına fiyatlandırma
başarısız istekler ücretsizdir| Uç nokta | Kategori | Fiyat / 1k sonuç |
|---|---|---|
/v1/data/youtube/autocompleteAutocomplete | Search | 1 kredi / çalıştırma |
/v1/data/youtube/searchSearch | Search | 1 kredi / çalıştırma |
/v1/data/youtube/categoriesCategories | Reference | 1 kredi / çalıştırma |
/v1/data/youtube/languagesLanguages | Reference | 1 kredi / çalıştırma |
/v1/data/youtube/marketsMarkets | Reference | 1 kredi / çalıştırma |
/v1/data/youtube/oembedoEmbed | Reference | 1 kredi / çalıştırma |
/v1/data/youtube/regionsRegions | Reference | 1 kredi / çalıştırma |
/v1/data/youtube/channels/{channel_id}/communityChannel Community | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/channels/{channel_id}Channel Detail | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/channels/{channel_id}/playlistsChannel Playlists | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/channels/resolveResolve Channel | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/channels/{channel_id}/searchChannel Search | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/channels/{channel_id}/shortsChannel Shorts | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/channels/{channel_id}/streamsChannel Streams | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/channels/{channel_id}/videosChannel Videos | Channels | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}/comments/{comment_id}/repliesComment Replies | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/video/{video_id}/transcriptÇok yakındaTranscript | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/video/{video_id}Video | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}/captionsÇok yakındaCaptions | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}/commentsVideo Comments | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}Video Detail | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}/live_chatLive Chat | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}/relatedRelated Videos | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}/streamsÇok yakındaStreams | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/{video_id}/transcriptÇok yakındaTranscript | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/videos/batchVideos Batch | Videos | 1 kredi / çalıştırma |
/v1/data/youtube/hashtags/{tag}Hashtag Videos | Feeds | 1 kredi / çalıştırma |
/v1/data/youtube/homeÇok yakındaHome | Feeds | 1 kredi / çalıştırma |
/v1/data/youtube/trendingÇok yakındaTrending | Feeds | 1 kredi / çalıştırma |
/v1/data/youtube/trending/shortsÇok yakındaTrending Shorts | Feeds | 1 kredi / çalıştırma |
/v1/data/youtube/mixes/{mix_id}Mix | Playlists | 1 kredi / çalıştırma |
/v1/data/youtube/playlists/{playlist_id}Playlist Detail | Playlists | 1 kredi / çalıştırma |
/v1/data/youtube/playlists/{playlist_id}/itemsPlaylist Items | Playlists | 1 kredi / çalıştırma |
/v1/data/youtube/music/searchMusic Search | Music | 1 kredi / çalıştırma |
/v1/data/youtube/posts/{post_id}/commentsPost Comments | Posts | 1 kredi / çalıştırma |
/v1/data/youtube/posts/{post_id}Community Post | Posts | 1 kredi / çalıştırma |
/v1/data/youtube/shorts/by_sound/{sound_id}Shorts by Sound | Shorts | 1 kredi / çalıştırma |
/v1/data/youtube/shorts/{video_id}Shorts Detail | Shorts | 1 kredi / çalıştırma |