YouTube: Get a video
One YouTube video whole: its title, description and links, views, likes, comments count, dates, channel, chapters, the moments viewers replay most, its storyboards, captions, audio tracks and renditions.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "youtube", "operation": "videos/get", "options": { "video": "https://youtu.be/k7Rt2mVxQ4s" } }'
An example answer. Run it on your own input.
{ "object": "run", "id": "run_pyhdsdfohqezildvkig3xzwznm", "livemode": true, "source": "youtube", "operation": "videos/get", "version": "1.0.0", "schema_url": "https://api.lobstr.io/v2/catalog/youtube/videos/get", "options": { "video": "https://youtu.be/k7Rt2mVxQ4s" }, "fields": null, "status": "succeeded", "count": 1, "has_more": false, "next": null, "cost": { "credits": 1 }, "results": [ { "object": "video", "id": "k7Rt2mVxQ4s", "ids": { "video_id": "k7Rt2mVxQ4s", "channel_id": "UCa1B2c3D4e5F6g7H8i9J0kL" }, "url": "https://www.youtube.com/watch?v=k7Rt2mVxQ4s", "title": "Sourdough for Beginners, Step by Step", "description": "Everything you need for your first loaf.\n0:00 Intro\n2:15 The starter\nGet the recipe: https://acmekitchen.com/sourdough", "description_links": [ { "type": "timestamp", "text": "0:00", "url": "https://www.youtube.com/watch?v=k7Rt2mVxQ4s", "seconds": 0 }, { "type": "timestamp", "text": "2:15", "url": "https://www.youtube.com/watch?v=k7Rt2mVxQ4s&t=135s", "seconds": 135 }, { "type": "link", "text": "https://acmekitchen.com/sourdough", "url": "https://acmekitchen.com/sourdough", "seconds": null } ], "hashtags": [ "#sourdough" ], "keywords": [ "sourdough", "bread", "baking" ], "category": "Howto & Style", "duration_seconds": 754, "views": 184213, "likes": 6120, "comments_count": 412, "comments_turned_off": false, "published_at": "2025-10-14T15:00:06Z", "uploaded_at": "2025-10-14T15:00:06Z", "date_text": "Oct 14, 2025", "is_short": false, "is_live_content": false, "live": null, "is_unlisted": false, "is_family_safe": true, "is_private": false, "is_embeddable": true, "allow_ratings": true, "is_crawlable": true, "has_paid_promotion": false, "playability": { "status": "OK", "reason": null }, "available_countries": [ "US", "CA", "GB" ], "channel": { "id": "UCa1B2c3D4e5F6g7H8i9J0kL", "title": "Acme Kitchen", "handle": "@acmekitchen", "url": "https://www.youtube.com/@acmekitchen", "subscribers": 248000, "subscribers_text": "248K subscribers", "is_verified": true, "is_artist": false, "thumbnails": [ { "url": "https://yt3.ggpht.com/acme-kitchen=s48-c-k-c0x00ffffff-no-rj", "width": 48, "height": 48 } ] }, "collaborators": [], "thumbnails": [ { "url": "https://i.ytimg.com/vi/k7Rt2mVxQ4s/maxresdefault.jpg", "width": 1920, "height": 1080 } ], "chapters": [ { "title": "Intro", "start_seconds": 0, "time_text": "0:00", "thumbnails": [] }, { "title": "The starter", "start_seconds": 135, "time_text": "2:15", "thumbnails": [] } ], "chapters_auto_generated": false, "ai_summary": null, "how_this_was_made": [], "music": [], "products": [], "cards": [], "endscreen": [ { "type": "video", "title": "Focaccia in One Bowl", "subtitle": "92K views", "url": "https://www.youtube.com/watch?v=Fq3nB8pLz1A", "video_id": "Fq3nB8pLz1A", "playlist_id": null, "channel_id": null, "is_subscribe": false, "start_ms": 734000, "end_ms": 754000, "thumbnails": [] } ], "most_replayed": [ { "start_ms": 0, "duration_ms": 7540, "intensity": 1 }, { "start_ms": 7540, "duration_ms": 7540, "intensity": 0.42 } ], "most_replayed_peaks": [ { "at_ms": 135000, "start_ms": 120000, "end_ms": 150000, "label": "Most replayed" } ], "storyboards": [ { "level": 1, "width": 80, "height": 45, "frame_count": 76, "columns": 10, "rows": 10, "interval_ms": 10000, "sheets": [ "https://i.ytimg.com/sb/k7Rt2mVxQ4s/storyboard3_L1/M0.jpg?sqp=example&sigh=example" ] } ], "has_transcript": true, "captions": [ { "language": "en", "name": "English (auto-generated)", "is_auto_generated": true, "is_translatable": true } ], "audio_tracks": [], "formats": [ { "itag": 137, "mime_type": "video/mp4", "codecs": "avc1.640028", "has_video": true, "has_audio": false, "width": 1920, "height": 1080, "fps": 30, "quality": "hd1080", "quality_label": "1080p", "bitrate": 2549290, "average_bitrate": 1498885, "size_bytes": 141273820, "duration_ms": 754020, "projection": "RECTANGULAR", "color": null, "audio_quality": null, "audio_sample_rate": null, "audio_channels": null, "loudness_db": null, "audio_track_id": null, "is_drc": false } ], "loudness_db": -3.5, "perceptual_loudness_db": -17.5, "source_url": "https://www.youtube.com/watch?v=k7Rt2mVxQ4s", "observed_at": "2026-12-03T12:00:00Z" } ] }
56 fields per video
Every call returns them for each record, in the results of its JSON answer.
Get a video
56 fields- object
- text
- video
- id
- id
- The video's id on YouTube, 11 characters, as in its address.
k7Rt2mVxQ4s- ids.video_id
- id
k7Rt2mVxQ4s- ids.channel_id
- id
- Its channel's id (UC...).
UCa1B2c3D4e5F6g7H8i9J0kL
What it costs
Billed by the call: 1 credit. Pick how many calls a month.
1 credit a call
Calls a month
100
Built to run
Every call counts; a day is green at 95% successful.
- Successful calls
- 100.00%
- Median call
- 2.2 s
A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.
Frequently asked questions
What people ask before calling youtube/videos/get.
Get a video
When do I use it?
You need everything YouTube's page says of a video, from its id or any of its links: its title, full description and the links in it, tags and hashtags, category, duration, exact views, likes, the number of comments, when it was published, its channel and subscribers (and every channel of a collaboration), its chapters, YouTube's AI summary, the music it uses, the products and cards it shows, its end screen. For looking at the video without its stream: the moments viewers replay most (YouTube's "Most replayed" heat map, a hundred slices with their intensity), its storyboards (the frames the player shows when you hover the timeline, every few seconds), its loudness, the captions and audio tracks it has, and the renditions YouTube encoded (resolution, codec, bitrate, size), never the stream. For its transcript, use youtube/transcripts/get; its comments, youtube/comments/list; for videos by words, youtube/videos/search; a channel's videos, youtube/videos/list.
What do I give it?
video(required): The video: its id (11 letters, digits, - or _) or any of its links (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/..., /embed/..., m.youtube.com, music.youtube.com).
What does it return?
One YouTube video whole: its title, description and links, views, likes, comments count, dates, channel, chapters, the moments viewers replay most, its storyboards, captions, audio tracks and renditions. Every record has the same fields, empty ones included: they are all listed above.
Can I run it on a list?
Yes: call it once per item, or run it as a batch, on a list and every day if you like, from the button at the top of this page.
Pricing
What does a call cost?
1 credit a call, one video whole. A link costs no more than an id. A video that does not exist and a failed call are free.
When is a call free?
- a call that fails
Errors
What can go wrong?
ip_blocked(503, retry): YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free.invalid_video(422):videois a YouTube video: its id (dQw4w9WgXcQ) or one of its links (https://www.youtube.com/watch?v=dQw4w9WgXcQ, https://youtu.be/dQw4w9WgXcQ, a /shorts/ link).video_unavailable(404): YouTube has no such video (removed, private, or never one). Not charged.site_unavailable(503, retry): YouTube did not answer properly; retry later (not charged).unexpected_answer(424): YouTube answered in a shape we do not read yet; we are told and fix it (not charged).
How long can a call take?
30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.
API and agents
Can my AI agent run it?
Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs youtube/videos/get. Its page for agents, in Markdown: youtube/videos/get.md.
Where is its full description?
The contract, as JSON: https://api.lobstr.io/v2/catalog/youtube/videos/get: every option, every field, the price and the errors. This page is drawn from it.
Ready to call it?
An API key in a minute, then the call above, from your code or your agent.