Skip to content
OperationsYouTube

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.

youtube/videos/get1 credit a callv1.0.1

When to 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.

Try it

The options on the left write the call; the answer on the right is the contract's example. With your API key, the same call returns live data.

1Request
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).
1 credit a call
Code, from the fields above
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"
    }
  }'
2Response

An example answer. Run it on your own input.

{
  "object": "run",
  "id": "run_pyhdsdfohqezildvkig3xzwznm",
  "livemode": true,
  "source": "youtube",
  "operation": "videos/get",
  "version": "1.0.1",
  "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"
    }
  ]
}

Options

videostringrequired
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).

Record

Each record of results, in the envelope every call returns (Run an operation).

objectstring
idstring
The video's id on YouTube, 11 characters, as in its address.
ids.video_idstring
ids.channel_idstring
Its channel's id (UC...).
urlstring
The video's page, as YouTube names it.
titlestring
descriptionstring
The whole description, as its author wrote it, its lines apart.
description_linkslist
The links of the description, in order: a web page (link, its address itself, not YouTube's redirect), a moment of the video (timestamp, with its seconds), another video, a playlist, a hashtag or a channel (an @mention).
hashtagslist
The hashtags YouTube shows above the title (#n8n).
keywordslist
The video's tags, as its author set them (hidden on its page).
categorystring
YouTube's category (Science & Technology, Music...).
duration_secondsinteger
Its length; 0 for a live in progress.
viewsinteger
Its views, exact.
likesinteger
Its likes, exact; null when its author hides them.
comments_countinteger
Its comments, as the page counts them: exact below 1,000, rounded above (2.4M is 2400000); null when the page says none (comments turned off, a live recording).
comments_turned_offboolean
Its author turned its comments off (videos made for kids).
published_atdate
When it was published, UTC.
uploaded_atdate
When it was uploaded, UTC (before it was published, for a premiere).
date_textstring
Its date as the page shows it (Aug 31, 2025; Streamed live on...).
is_shortboolean
A YouTube Short.
is_live_contentboolean
A live stream, live now or recorded.
live.is_live_nowboolean
live.started_atdate
live.ended_atdate
is_unlistedboolean
Unlisted: only those with its link find it.
is_family_safeboolean
is_privateboolean
is_embeddableboolean
Other sites may embed it.
allow_ratingsboolean
Viewers may like it.
is_crawlableboolean
Search engines may index it.
has_paid_promotionboolean
Its author says it includes paid promotion.
playability.statusstring
playability.reasonstring
available_countrieslist
The countries where it plays, two letters each (249 when everywhere).
channelstring
The channel that published it, with its subscribers.
collaboratorslist
Every channel of a collaboration (the publisher among them), when YouTube says there are several; empty otherwise.
thumbnailslist
Its thumbnail in its sizes, the largest last.
chapterslist
Its chapters, from its description or made by YouTube's AI (chapters_auto_generated); empty without.
chapters_auto_generatedboolean
Chapters made by YouTube's AI, not by the author; null without chapters.
ai_summarystring
YouTube's own AI-generated summary of the video, as its description panel shows it (YouTube says its AI can be wrong); null when it shows none.
how_this_was_madelist
What the page says of how the video was made: altered or synthetic content, auto-dubbed audio, the camera that took it.
musiclist
The songs the video uses, as its description lists them.
productslist
The products the video shows ("View products", YouTube Shopping), as its page lists them.
cardslist
The cards the description lists (the "i" of the player): a web page or another video.
endscreenlist
What the last seconds of the video show to click: videos, playlists, the channel (to subscribe), a web page.
most_replayedlist
YouTube's "Most replayed" heat map, the curve above the player's timeline: the video cut in a hundred slices, each with how much its viewers replay it, from 0 to 1 (1, the most replayed); empty when YouTube shows none (a video with few views).
most_replayed_peakslist
The moments the timeline labels "Most replayed", each with the stretch around it.
storyboardslist
The video's storyboards, the frames the player shows when the timeline is hovered, by level of size: each sheet is an image of columns x rows frames of width x height, the frames in order, one every interval_ms (0: spread evenly over the video). Public images, as the player loads them.
has_transcriptboolean
The page offers its transcript (youtube/transcripts/get).
captionslist
The captions it has, by language: its own, or made by YouTube from its speech.
audio_trackslist
Its audio tracks when it has several: its own language and the dubbed ones; empty with one.
formatslist
The renditions YouTube encoded, as the player lists them: video alone, audio alone, or both; their resolution, codec, bitrate and size. Never their stream: no address to download is given.
loudness_dbfloat
How much louder than YouTube's target the video is, in dB (YouTube lowers it as much).
perceptual_loudness_dbfloat
Its loudness as heard, in dB.
source_urlstring
The video's page on youtube.com.
observed_atdate

Errors

Its own, besides those of every call (Errors). A failed call is free.

CodeStatusWhat it means
ip_blocked503YouTube slowed down the IPs the call tried (429), or asked them to sign in to prove they are not a bot. Retry in a minute; failed calls are free. Retryable.
invalid_video422video is 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_unavailable404YouTube has no such video (removed, private, or never one). Not charged.
site_unavailable503YouTube did not answer properly; retry later (not charged). Retryable.
unexpected_answer424YouTube answered in a shape we do not read yet; we are told and fix it (not charged).

Price

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. What a credit costs on each plan: Credits and pricing.

Changelog

1.0.12026-12-03
A call YouTube's player refused with its bot check ("Sign in to confirm you're not a bot", one IP's, not the video's) gave a record without its views, likes, duration and dates, and was charged: it now goes on from another IP, and fails free (ip_blocked) when none passes. An age-restricted video still gives its record.
1.0.02026-12-03
First version: a video by its id or any of its links, signed out, whole: title, description and its links, hashtags, tags, category, duration, exact views and likes, comments count, dates, live times, flags, channel and collaborators with their subscribers, chapters, YouTube's AI summary, how it was made, music, products, cards, end screen, the "Most replayed" heat map and its peaks, storyboards, captions, audio tracks, renditions and loudness.