모든 사이트
YouTube Data API 개요
YouTube에서 동영상, 채널, 재생목록, 댓글, 검색을(를) 구조화된 JSON으로 추출하세요. 아래에서 엔드포인트를 선택하고 매개변수를 확인한 다음 대시보드 플레이그라운드에서 실행하세요.
/v1/youtube/… 플레이그라운드 열기주요 기능
구조화된 JSON
동영상, 채널, 재생목록, 댓글, 검색에 대한 깔끔하고 정규화된 레코드. 직접 HTML을 파싱할 필요가 없습니다.
엔드포인트 38개
9개 카테고리에 걸쳐 있으며, 모두 하나의 기본 경로 아래에 있습니다.
안티봇 자동 처리
속도 제한을(를) 백그라운드에서 자동으로 처리합니다.
매 실행마다 실시간 데이터
모든 요청이 소스에서 실시간으로 수집하므로 결과가 항상 최신입니다.
지역 및 언어
다음 매개변수로 특정 시장과 언어를 타기팅하세요:
gl기본값 UShl기본값 enlang기본값 en페이지네이션
continuation로 결과를 페이지별로 탐색하세요.
빠른 시작
전용 Data API 키를 사용하세요. 이 엔드포인트의 메서드와 매개변수를 따르세요.
# 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())실행당 요금
실패한 요청은 무료| 엔드포인트 | 카테고리 | 가격 / 결과 1천 개 |
|---|---|---|
/v1/data/youtube/autocompleteAutocomplete | Search | 1크레딧 / 실행 |
/v1/data/youtube/searchSearch | Search | 1크레딧 / 실행 |
/v1/data/youtube/categoriesCategories | Reference | 1크레딧 / 실행 |
/v1/data/youtube/languagesLanguages | Reference | 1크레딧 / 실행 |
/v1/data/youtube/marketsMarkets | Reference | 1크레딧 / 실행 |
/v1/data/youtube/oembedoEmbed | Reference | 1크레딧 / 실행 |
/v1/data/youtube/regionsRegions | Reference | 1크레딧 / 실행 |
/v1/data/youtube/channels/{channel_id}/communityChannel Community | Channels | 1크레딧 / 실행 |
/v1/data/youtube/channels/{channel_id}Channel Detail | Channels | 1크레딧 / 실행 |
/v1/data/youtube/channels/{channel_id}/playlistsChannel Playlists | Channels | 1크레딧 / 실행 |
/v1/data/youtube/channels/resolveResolve Channel | Channels | 1크레딧 / 실행 |
/v1/data/youtube/channels/{channel_id}/searchChannel Search | Channels | 1크레딧 / 실행 |
/v1/data/youtube/channels/{channel_id}/shortsChannel Shorts | Channels | 1크레딧 / 실행 |
/v1/data/youtube/channels/{channel_id}/streamsChannel Streams | Channels | 1크레딧 / 실행 |
/v1/data/youtube/channels/{channel_id}/videosChannel Videos | Channels | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}/comments/{comment_id}/repliesComment Replies | Videos | 1크레딧 / 실행 |
/v1/data/youtube/video/{video_id}/transcript곧 출시 예정Transcript | Videos | 1크레딧 / 실행 |
/v1/data/youtube/video/{video_id}Video | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}/captions곧 출시 예정Captions | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}/commentsVideo Comments | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}Video Detail | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}/live_chatLive Chat | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}/relatedRelated Videos | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}/streams곧 출시 예정Streams | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/{video_id}/transcript곧 출시 예정Transcript | Videos | 1크레딧 / 실행 |
/v1/data/youtube/videos/batchVideos Batch | Videos | 1크레딧 / 실행 |
/v1/data/youtube/hashtags/{tag}Hashtag Videos | Feeds | 1크레딧 / 실행 |
/v1/data/youtube/home곧 출시 예정Home | Feeds | 1크레딧 / 실행 |
/v1/data/youtube/trending곧 출시 예정Trending | Feeds | 1크레딧 / 실행 |
/v1/data/youtube/trending/shorts곧 출시 예정Trending Shorts | Feeds | 1크레딧 / 실행 |
/v1/data/youtube/mixes/{mix_id}Mix | Playlists | 1크레딧 / 실행 |
/v1/data/youtube/playlists/{playlist_id}Playlist Detail | Playlists | 1크레딧 / 실행 |
/v1/data/youtube/playlists/{playlist_id}/itemsPlaylist Items | Playlists | 1크레딧 / 실행 |
/v1/data/youtube/music/searchMusic Search | Music | 1크레딧 / 실행 |
/v1/data/youtube/posts/{post_id}/commentsPost Comments | Posts | 1크레딧 / 실행 |
/v1/data/youtube/posts/{post_id}Community Post | Posts | 1크레딧 / 실행 |
/v1/data/youtube/shorts/by_sound/{sound_id}Shorts by Sound | Shorts | 1크레딧 / 실행 |
/v1/data/youtube/shorts/{video_id}Shorts Detail | Shorts | 1크레딧 / 실행 |