{
"videoId":"dQw4w9WgXcQ",
"views":1580000000,
"likes":15400000,
"comments":1120000,
"engagementRate":0.011,
"channelMedianViews":420000,
"isAboveMedian":true,
"aiRecommendations":"• Use a more curiosity-driven title…"
}
{"error":"Video not found","code":404}
Svarkoder
Code
Description
200 Success
Request processed OK.
400 Bad Request
Input validation failed.
401 Unauthorized
Missing / wrong API key.
403 Forbidden
Key inactive or not allowed.
429 Rate Limit
Too many requests.
500 Server Error
Unexpected failure.
AI Audit
youtube/video/audit0.0200 credits
Parameters
API Key
body · string
· required
Video
body · string
· required
Sample size
body · string
Code Samples
Response
Status:—
Headers
Body
YouTube Video API — Practical Guide
A hands-on guide to the YouTube Video API actions you’ll actually use: what each endpoint does,
the problems it solves, the few parameters that matter, and how to read responses to build
smarter UIs (mix builders, QA tools, SEO audits, and moderation dashboards).
Last updated: 21 nov. 2025, 20:25
API Version: v1
Burst: 20 req/s
Latency: 59 msCost: 0.009 credits/req
The youtube/video module turns a single YouTube video ID (or URL) into the practical signals you need:
core metadata, engagement metrics, restrictions & status, comments,
SEO surfaces (tags, hashtags, links), playlists featuring the video, and AI-powered audits.
Use results to choose thumbnails/titles, estimate watch-time, detect country blocks, or group videos into mixes.
Watch-time fields. Added perViewSec and watchHours to watchtime for easier planning.
2025-11-21
Engagement wrapper. Standardized engagement{ ... } payload in engagement-rate.
2025-11-21
Trending check. Response now includes categoryName (derived from categoryId).
2025-11-14
Comments API. Optional repliesOn flag now returns structured replies (replies{ cnt, items[] }).
2025-11-07
AI Audit. Baseline sampling (sample 10–100) and channel median comparison added; clearer aiRecommendations.
2025-10-31
Unified responses. Normalized keys across actions (e.g., thumbnails{}, statistics{}, restrictions{}).
Use the API Playgrounds below each section in this page to test requests with your own video IDs.
Ofte stillede spørgsmål
You can fetch titles, descriptions, tags, thumbnails, comments (with replies), statistics (views, likes, comments), audience engagement, video chapters, playlists containing a video, and even request an AI-powered content audit.
Both are supported! You can pass a YouTube video ID (e.g., dQw4w9WgXcQ) or a full YouTube video URL.
The API returns a clear error message and HTTP status code (e.g., 404 for not found, 403 for restricted/private videos).
Op til 20 forespørgsler / sekund pr. nøgle. Ingen daglige eller månedlige begrænsninger – du betaler kun for det, du bruger.
Vi bruger et kreditsystem. Køb én gang – kreditter udløber aldrig, og der er ingen abonnementer.
Hvert HTTP-kald er én forespørgsel; hver forespørgsel bruger et antal kreditter afhængigt af endpointet.
Ja, de udløber aldrig, før du bruger dem (men de kan ikke refunderes).
Kreditter er ikke-refunderbare. Køb kun det, du har brug for – du kan altid tanke op.
Priser fastsættes i kreditter, ikke dollars. Hvert endpoint viser sin egen pris – se mærket “Kreditter / forespørgsel” ovenfor.