YT Toolkit API
A small set of read-only endpoints that return public YouTube data as JSON. Free to use within fair rate limits. No key required today; be a good neighbor.
Base URL and response shape
All endpoints are under https://yttoolkit.com/api and respond with JSON in a consistent envelope:
// success
{ "success": true, "data": { ... }, "meta": {} }
// error
{ "success": false, "error": { "code": "VIDEO_NOT_FOUND", "message": "..." } }Rate limits
Requests are limited per IP address to keep the service fair and to stay within YouTube API quota. Standard read endpoints allow roughly 60 requests per minute. Exceeding the limit returns HTTP 429 with a Retry-After header. Do not build production workloads on top of these endpoints — they are intended for light, interactive use.
Endpoints
GET /api/youtube/thumbnail
Returns thumbnail URLs in every available quality for a video.
curl "https://yttoolkit.com/api/youtube/thumbnail?v=VIDEO_ID"
GET /api/youtube/video-stats
Public statistics for a video: views, likes, comments, duration, publish date.
curl "https://yttoolkit.com/api/youtube/video-stats?v=VIDEO_ID"
GET /api/youtube/channel-stats
Public channel statistics: subscribers, total views, video count, recent uploads.
curl "https://yttoolkit.com/api/youtube/channel-stats?c=UC_CHANNEL_ID"
GET /api/youtube/playlist
Total duration, video count, and average length for a playlist.
curl "https://yttoolkit.com/api/youtube/playlist?list=PLAYLIST_ID"
Examples
JavaScript (fetch)
const res = await fetch( "https://yttoolkit.com/api/youtube/video-stats?v=VIDEO_ID" ); const json = await res.json(); if (json.success) console.log(json.data);
Python (requests)
import requests
r = requests.get(
"https://yttoolkit.com/api/youtube/video-stats",
params={"v": "VIDEO_ID"},
)
data = r.json()
if data["success"]:
print(data["data"])Terms of use
These endpoints return only public YouTube data and are provided as-is, without warranty, for light interactive use. Respect the rate limits, do not scrape at scale, and cache responses on your side where possible. See our Terms for details. YT Toolkit is independent and not affiliated with YouTube or Google.
Prefer the tools?
Most people do not need the API. Use the Video Statistics, Channel Statistics, or Thumbnail Downloader tools directly.