YouTube video, transcript and comments API
Video details, timed transcripts, comments, search and Shorts as JSON. Send a video ID or URL, get the data back. No quota, no OAuth.
Video
Endpoint
curl "https://api.toolzerhub.com/v2/youtube/video?video_references=dQw4w9WgXcQ" \
-H "x-api-key: $TOOLZERHUB_API_KEY"{
"data": {
"id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"channelTitle": "Rick Astley",
"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
"lengthSeconds": "213",
"viewCount": "1826515913",
"likeCount": "19489045",
"publishDate": "2009-10-24T23:57:33-07:00",
"category": "Music",
"hasCaption": true,
"description": "The official video for “Never Gonna Give You Up” by Rick Astley. Never: The Autobiography 📚 OUT NOW! Follow this link to get your copy and l…"
}
}- 122K+
- 95.8%
- 0.1 s
- 29
Endpoints
What you can get
One request each, 1 credit per call. Open one to see its parameters and a real response.
- Video details
/v2/youtube/video95.8% · 0.11 s1 creditVideo details reference (opens in new tab) - Transcript
/v2/youtube/transcript100% · 0.99 s1 creditTranscript reference (opens in new tab) - Comments
/v2/youtube/comments100%1 creditComments reference (opens in new tab) - Search
/v2/youtube/search100%1 creditSearch reference (opens in new tab) - Subtitles
/v2/youtube/subtitles100%1 creditSubtitles reference (opens in new tab) - Shorts details
/v2/youtube/shorts92.5% · 0.4 s1 creditShorts details reference (opens in new tab)
Response
What comes back
Field names and types read off the real responses in the demo above.
- Video details
/v2/youtube/video11 fields- idstring"dQw4w9WgXcQ"
- titlestring"Rick Astley - Never Gon…"
- channelTitlestring"Rick Astley"
- channelIdstring"UCuAXFkgsw1L7xaCfnd5JJOw"
- lengthSecondsstring"213"
- viewCountstring"1826515913"
- likeCountstring"19489045"
- publishDatestring"2009-10-24T23:57:33-07:…"
- categorystring"Music"
- Transcript
/v2/youtube/transcript2 fields- startTimestring"0:00"
- textstring"[Music]"
- Comments
/v2/youtube/comments4 fields- textDisplaystring"Let’s put the meme asid…"
- publishDatestring"2020-10-14"
- likesCountstring"219K"
- replyCountstring"593"
Use cases
What people build with it
- 01Feed transcripts to an LLMTranscriptVideo details
- 02Subtitle and translate videosSubtitlesTranscript
- 03Mine comments for feedbackCommentsVideo details
- 04Find videos for a topicSearchVideo details
- 05Check Shorts performanceShorts detailsVideo details
How it works
From key to JSON
- 01x-api-key••••••••••Get a key
- 02GET/v2/youtube/videoSend a request
- 03{ data, status }200Get JSON
Pricing
What it costs
Every endpoint on this page costs 1 credit per call. Failed calls cost nothing.
- Free$0
- 10K pack$19
- Starter$29
Per 1,000 credits
Compare
Why not build it yourself
Three ways to get YouTube data into your app.
| Compare | Toolzer Hub | YouTube Data API | Your own scraper |
|---|---|---|---|
| Setup | One API key | Google Cloud project, OAuth for captions | Proxies, sessions, retries |
| When YouTube changes | We fix it | Google keeps it working | You fix the parser |
| Cost to start | 100 free credits a month | Free within 10,000 units a day | Proxies and your time |
FAQ
Questions
- Is this the official YouTube API?
- What does the official YouTube API allow?
- What data does it return?
- What does it cost?
Guides
YouTube guides
Tested walkthroughs with real requests and output.
- How to check if a YouTube channel is live with an API
- YouTube API: get a channel's Shorts
- YouTube API: get related videos
- YouTube autocomplete API: search suggestions as JSON
- YouTube API: get a channel's community posts
- YouTube comments API: get all comments from a video
- YouTube API: get all videos from a channel
- YouTube search API quota: 100 search calls a day, and more
Try the YouTube API free
Every new workspace gets 100 credits a month. Buy credits only when you need more.
More APIs on the same key
- Meta Ad Library
- Threads
- TikTok
- X (Twitter)
- Yandex
- TikTok Ads
- 2GIS
- Ozon
- Airbnb
- Skyscanner
- Telegram
- Capterra
- Shopify
- Google Maps
- Zillow
- Seek
- Indeed
- Naukri
- StepStone
- Internshala
- Upwork
- Hiring.cafe
- Bayt
- Naver Shopping
- Wellfound
- RedNote
- Google Finance
- Google Flights
- SofaScore
- Google Play
- Douyin
- Taobao
- Google Hotels
- Amazon
- Cricbuzz
- Redfin
- Tripadvisor
- Semrush
- Yelp