YouTube scraping tutorials
How to get YouTube data with code: 26 endpoints in Python, JavaScript, TypeScript, Go, PHP and cURL, each with a real sample response, parameters, pagination and pricing.
- YouTube video
A YouTube video or Short: details, exact views, likes and comments, channel, chapters, captions, paid-promotion flag, up next.
- YouTube bulk videos
Up to 50 YouTube videos by id in one call: details and exact counts.
- YouTube related videos
The videos YouTube shows beside a video (“up next”).
- YouTube transcript
A YouTube video’s transcript: timestamped segments and full text, in a chosen language.
- YouTube bulk transcripts
Transcripts of up to 10 YouTube videos in one call.
- YouTube subtitles download
A YouTube video’s captions as a subtitle file: srt, vtt, ttml, json3 or srv1.
- YouTube thumbnail
Every thumbnail size of a YouTube video.
- YouTube video sponsors
Sponsors of a YouTube video, inferred from the paid-promotion label, description and transcript.
- YouTube comments
Comments on a YouTube video, top or newest first, paginated.
- YouTube comment replies
Replies to a YouTube comment, paginated.
- YouTube channel
A YouTube channel: about, subscriber, video and view counts, country, links, join date.
- YouTube bulk channels
Up to 25 YouTube channels by id in one call.
- YouTube channel analytics
A YouTube channel with its latest uploads in full and metrics computed over them.
- YouTube channel videos
A YouTube channel’s videos, latest, popular or oldest first, paginated.
- YouTube channel Shorts
A YouTube channel’s Shorts, newest, popular or oldest first, paginated.
- YouTube channel live streams
A YouTube channel’s live streams and past broadcasts, paginated.
- YouTube channel playlists
A YouTube channel’s playlists, paginated.
- YouTube channel podcasts
A YouTube channel’s podcasts.
- YouTube community posts
A YouTube channel’s community posts, paginated.
- YouTube channel search
Search inside one YouTube channel’s videos.
- YouTube community post
One YouTube community post: text, images, poll, attached video, likes.
- YouTube playlist
A YouTube playlist and its videos, 100 a page.
- YouTube search
Search YouTube: videos, Shorts, channels or playlists, with sort, date, duration and feature filters.
- YouTube hashtag
Videos or Shorts tagged with a YouTube hashtag, paginated.
- YouTube trending Shorts
About 45 popular YouTube Shorts with full details, a fresh batch each call.
- YouTube trending videos
The videos on YouTube’s trending shelves for music, sports, news or gaming.
YouTube API: every endpoint and its price.