{"repo":"ScrapingBee/youtube-scraper-api","free":true,"listed":false,"github":"https://github.com/ScrapingBee/youtube-scraper-api","clone":"git clone https://github.com/ScrapingBee/youtube-scraper-api.git","description":"YouTube Scraper API for scraping YouTube videos, channels, playlists, comments, transcripts, and search results.","language":null,"stars":186,"topics":["anti-bot","proxy-scraper","web-scraping","web-scraping-api","web-scraping-python","youtube-api","youtube-data-api","youtube-data-scraper","youtube-scraper","youtube-scraping"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"youtube-scraper-api Scrape YouTube search results, video metadata, and subtitles as JSON with the ScrapingBee YouTube scraping API. This is a developer cookbook. Each section is one task with copy-paste code, and ScrapingBee runs the proxies, the headless browser, and the parsing for you. If you want a YouTube scraper that returns clean data instead of a JavaScript shell, the recipes below cover it. Setup Grab a free key (1,000 credits, no card) at scrapingbee.com. Every request authenticates with a Bearer token: Three endpoints, all returning JSON: Task Endpoint Credits --- --- --- Search videos, channels, playlists /api/v1/youtube/search 5 Full metadata for one video /api/v1/youtube/metadata see request builder Timestamped captions /api/v1/youtube/subtitles see request builder Full reference: YouTube API documentation. Recipe 1: Search videos The search endpoint is the core of any YouTube video scraper . Pass a query, get back results with titles, channels, view counts, durations, and thumbnails. cURL: Python: Node.js: Narrow the results Add filters to focus the search. type is one of video , channel , playlist , movie . duration is one of 20 . sort by is one of rating , relevance , view count , upload date . Recipe 2: Get video metadata Fetch full details for a single video by its id. This is how you turn a list of video ids into a structured YouTube data scraper dataset with view counts, durations, and descriptions. The response includes duration, view count, like count, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ScrapingBee","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ScrapingBee/youtube-scraper-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}