LurkAPI
Docs · Video details

Video details

A video's or Short's title, description, exact views and likes, publish date, length, tags, chapters and channel.

1 credit per callFresh within 1 hourMCP tool: youtube_video
GEThttps://api.lurkapi.com/v1/youtube/video

Example responseView as markdown

When to use this

Use it to track how a video performs or to pull its metadata: exact view and like counts, the full description and its links, tags, category, chapters, the "Most replayed" graph and the videos YouTube recommends next. Works for Shorts too (type: "short").

The comment count is rounded the way YouTube shows it; video comments returns the exact total. For what's said in the video, use video transcript.

Once in a while YouTube's player refuses us: then type, durationMs, durationFormatted, keywords, genre, publishDate, uploadDate, isFamilySafe and isUnlisted are null and everything else is still filled in.

Private, removed and unknown videos return 404 not_found.

Parameters

All parameters go in the query string.

ParameterDescription
url
stringrequired
The video's URL (watch, youtu.be, /shorts/, /live/ or /embed/ links all work) or its 11-character id, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ.
Example
https://www.youtube.com/watch?v=dQw4w9WgXcQ

Example request

Replace YOUR_API_KEY with your key, or set LURKAPI_KEY for the code. Get a free key.

Language

Example response

A real response from this endpoint, captured from the live API and trimmed to a couple of items. Strings over 96 characters (mostly signed media URLs) are cut short and end in ….

Show the example response (5 KB)
{
  "success": true,
  "credits_remaining": 999986,
  "credits_charged": 1,
  "id": "dQw4w9WgXcQ",
  "type": "video",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever…",
  "descriptionLinks": [
    {
      "text": "https://linktr.ee/rickastleynever",
      "url": "https://linktr.ee/rickastleynever"
    },
    {
      "text": "https://RickAstley.lnk.to/YTSubID",
      "url": "https://RickAstley.lnk.to/YTSubID"
    },
    {
      "text": "https://RickAstley.lnk.to/FBFollowID",
      "url": "https://RickAstley.lnk.to/FBFollowID"
    },
    {
      "text": "https://RickAstley.lnk.to/TwitterID",
      "url": "https://RickAstley.lnk.to/TwitterID"
    },
    {
      "text": "https://RickAstley.lnk.to/InstagramID",
      "url": "https://RickAstley.lnk.to/InstagramID"
    },
    {
      "text": "https://RickAstley.lnk.to/storeID",
      "url": "https://RickAstley.lnk.to/storeID"
    },
    {
      "text": "https://RickAstley.lnk.to/TikTokID",
      "url": "https://RickAstley.lnk.to/TikTokID"
    },
    {
      "text": "https://RickAstley.lnk.to/SpotifyID",
      "url": "https://RickAstley.lnk.to/SpotifyID"
    },
    {
      "text": "https://RickAstley.lnk.to/AppleMusicID",
      "url": "https://RickAstley.lnk.to/AppleMusicID"
    },
    {
      "text": "https://RickAstley.lnk.to/AmazonMusicID",
      "url": "https://RickAstley.lnk.to/AmazonMusicID"
    },
    {
      "text": "https://RickAstley.lnk.to/DeezerID",
      "url": "https://RickAstley.lnk.to/DeezerID"
    }
  ],
  "thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",
  "viewCountText": "1,821,634,661 views",
  "viewCountInt": 1821634661,
  "likeCountText": "19M",
  "likeCountInt": 19439173,
  "commentCountText": "2.4M",
  "commentCountInt": 2400000,
  "publishDate": "2009-10-24T23:57:33-07:00",
  "uploadDate": "2009-10-24T23:57:33-07:00",
  "publishDateText": "Oct 24, 2009",
  "channel": {
    "id": "UCuAXFkgsw1L7xaCfnd5JJOw",
    "url": "https://www.youtube.com/@RickAstleyYT",
    "handle": "RickAstleyYT",
    "title": "Rick Astley",
    "subscriberCountText": "4.55M subscribers",
    "subscriberCount": 4550000,
    "isVerified": true,
    "avatar": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm…"
  },
  "chapters": [],
  "keywords": [
    "rick astley",
    "Never Gonna Give You Up",
    "nggyu",
    "never gonna give you up lyrics",
    "rick rolled",
    "Rick Roll",
    "rick astley official",
    "rickrolled",
    "Fortnite song",
    "Fortnite event",
    "Fortnite dance",
    "fortnite never gonna give you up",
    "rick roll",
    "rickrolling",
    "rick rolling",
    "never gonna give you up",
    "80s music",
    "rick astley new",
    "animated video",
    "rickroll",
    "meme songs",
    "never gonna give u up lyrics",
    "Rick Astley 2022",
    "never gonna let you down",
    "animated",
    "rick rolls 2022",
    "never gonna give you up karaoke"
  ],
  "genre": "Music",
  "durationMs": 213000,
  "durationFormatted": "00:03:33",
  "isFamilySafe": true,
  "isUnlisted": false,
  "most_replayed": {
    "markers": [
      {
        "startMillis": 0,
        "durationMillis": 2140,
        "intensityScoreNormalized": 1
      },
      {
        "startMillis": 2140,
        "durationMillis": 2140,
        "intensityScoreNormalized": 0.4217676376522385
      }
    ],
    "ranges": [
      {
        "visibleTimeRangeStartMillis": 0,
        "visibleTimeRangeEndMillis": 6420,
        "decorationTimeMillis": 2140,
        "label": "Most replayed"
      }
    ]
  },
  "watchNextVideos": [
    {
      "id": "NWItxGY5NNk",
      "title": "80'S MUSIC ON THE ROAD | 2 Hours of Classic '80s Hits",
      "thumbnail": "https://i.ytimg.com/vi/NWItxGY5NNk/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFX…",
      "channel": {
        "id": "UCkUSPjRL8md2hlE8bNXAT-A",
        "url": "https://www.youtube.com/@everysongisascar",
        "handle": "everysongisascar",
        "title": "every song is a scar"
      },
      "publishedTimeText": "3 months ago",
      "viewCountText": "3.9M",
      "viewCountInt": 3900000,
      "lengthText": "2:16:49",
      "lengthInSeconds": 8209,
      "videoUrl": "https://www.youtube.com/watch?v=NWItxGY5NNk"
    },
    {
      "id": "yPYZpwSpKmA",
      "title": "Rick Astley - Together Forever (Official Video) [4K Remaster]",
      "thumbnail": "https://i.ytimg.com/vi/yPYZpwSpKmA/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFX…",
      "channel": {
        "id": "UCuAXFkgsw1L7xaCfnd5JJOw",
        "url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
        "handle": null,
        "title": "Rick Astley"
      },
      "publishedTimeText": "16 years ago",
      "viewCountText": "206M",
      "viewCountInt": 206000000,
      "lengthText": "3:24",
      "lengthInSeconds": 204,
      "videoUrl": "https://www.youtube.com/watch?v=yPYZpwSpKmA"
    }
  ]
}

Response fields

Every field of a successful response. [] marks a list: a[].b is the b of each item in a. nullable fields can be null; optional fields can be missing.

Show all 65 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
idstringVideo id, e.g. dQw4w9WgXcQ.
typestringnullableshort for YouTube Shorts, else video. null in the rare case the player details were unavailable (see durationMs).
urlstringCanonical link: /shorts/<id> for Shorts, /watch?v=<id> otherwise.
titlestringVideo title.
descriptionstringFull description, plain text.
descriptionLinksobject[]Outbound links in the description, in order.
descriptionLinks[].textstringThe link as it appears in the description.
descriptionLinks[].urlstringWhere it goes (YouTube's redirect wrapper removed).
thumbnailstringLargest thumbnail URL.
viewCountTextstringnullableViews as YouTube shows them, e.g. "1,821,613,271 views".
viewCountIntnumbernullableExact view count.
likeCountTextstringnullableLikes as YouTube shows them, e.g. "19M"; null when the creator hides likes.
likeCountIntnumbernullableExact like count. null when the creator hides likes.
commentCountTextstringnullableComments as YouTube shows them, e.g. "2.4M"; null when comments are off.
commentCountIntnumbernullableComment count from that text, so rounded above 1,000 (2.4M → 2400000). The comments endpoint returns the exact total.
publishDatestringnullablePublished at, ISO 8601 with YouTube's offset, e.g. 2009-10-24T23:57:33-07:00. null if unavailable.
uploadDatestringnullableUploaded at, ISO 8601 (differs from publishDate for scheduled videos and premieres). null if unavailable.
publishDateTextstringnullableThe date line under the video, e.g. "Oct 24, 2009" or "Premiered 3 hours ago".
channelobjectThe channel that posted it.
channel.idstringnullableChannel id, UC….
channel.urlstringnullableChannel page, e.g. https://www.youtube.com/@RickAstleyYT.
channel.handlestringnullableHandle without the @, e.g. RickAstleyYT; null if YouTube shows none.
channel.titlestringnullableChannel name.
channel.subscriberCountTextstringnullableSubscribers as YouTube shows them, e.g. "4.55M subscribers".
channel.subscriberCountnumbernullableSubscribers as a number, from that rounded text (4.55M → 4550000).
channel.isVerifiedbooleanHas a verified or official artist badge.
channel.avatarstringnullableChannel avatar URL.
chaptersobject[]Chapters from the description (or YouTube's automatic ones), in order. Empty if the video has none.
chapters[].titlestringChapter title.
chapters[].startMsnumberWhere the chapter starts, ms from the start of the video.
chapters[].thumbnailstringnullableChapter thumbnail URL.
keywordsstring[]nullableThe creator's tags. null if unavailable.
genrestringnullableYouTube category, e.g. "Music" or "Education". null if unavailable.
durationMsnumbernullableLength in ms. null if unavailable: this and the other fields marked "if unavailable" come from YouTube's player, which occasionally refuses us; the rest of the response is still complete.
durationFormattedstringnullableLength as HH:MM:SS, e.g. "00:03:33". null if unavailable.
isFamilySafebooleannullableYouTube considers it family safe. null if unavailable.
isUnlistedbooleannullableUnlisted (only people with the link can find it). null if unavailable.
most_replayedobjectnullableThe "Most replayed" graph. null when YouTube doesn't show one (newer or less-watched videos).
most_replayed.markersobject[]The replay graph over the timeline, usually 100 equal slices.
most_replayed.markers[].startMillisnumberStart of this slice of the video, ms.
most_replayed.markers[].durationMillisnumberLength of the slice, ms.
most_replayed.markers[].intensityScoreNormalizednumberHow often this slice is replayed, 0–1 (1 = the most replayed slice).
most_replayed.rangesobject[]Ranges YouTube highlights as most replayed.
most_replayed.ranges[].visibleTimeRangeStartMillisnumberStart of the highlighted range, ms.
most_replayed.ranges[].visibleTimeRangeEndMillisnumberEnd of the highlighted range, ms.
most_replayed.ranges[].decorationTimeMillisnumberThe peak YouTube points at, ms.
most_replayed.ranges[].labelstringnullableYouTube's label, e.g. "Most replayed".
watchNextVideosobject[]The "Up next" videos YouTube recommends beside this one (videos only, no mixes or playlists).
watchNextVideos[].idstringVideo id.
watchNextVideos[].titlestringnullableVideo title.
watchNextVideos[].thumbnailstringnullableThumbnail URL.
watchNextVideos[].channelobjectThe channel that posted it.
watchNextVideos[].channel.idstringnullableChannel id, UC….
watchNextVideos[].channel.urlstringnullableChannel page, e.g. https://www.youtube.com/@RickAstleyYT.
watchNextVideos[].channel.handlestringnullableHandle without the @, e.g. RickAstleyYT; null if YouTube shows none.
watchNextVideos[].channel.titlestringnullableChannel name.
watchNextVideos[].publishedTimeTextstringnullableWhen it was posted, relative, e.g. "3 months ago".
watchNextVideos[].viewCountTextstringnullableViews as YouTube shows them, e.g. "3.9M".
watchNextVideos[].viewCountIntnumbernullableViews from that rounded text (3.9M → 3900000).
watchNextVideos[].lengthTextstringnullableLength as shown on the thumbnail, e.g. "4:05".
watchNextVideos[].lengthInSecondsnumbernullableLength in seconds.
watchNextVideos[].videoUrlstringLink to the video.

Caching and freshness

Responses are cached for up to 1 hour, so a repeat call within that window can return the same data. It still costs 1 credit.

Errors

Errors return { success: false, error, code, docs } with the HTTP status below. Validation errors, 401/402/429 rejections and 5xx failures are free; not_found is charged (how charging works). All error codes.

StatusCodeMeaning
401missing_api_keyNo API key. Send it in the x-api-key header.
401invalid_api_keyThe key is unknown or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack or wait for tomorrow's top-up.
404not_foundThe endpoint, or the thing you asked for (ad, post, subreddit), doesn't exist. Charged when the platform was checked.
405method_not_allowedEndpoints take GET with query params.
429rate_limitedToo many calls at once. Wait for the retry-after seconds, then retry.
500internal_errorSomething broke on our side. Retry; 5xx errors are free.
502upstream_errorThe platform didn't give a usable answer. Retry; 5xx errors are free.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds; 5xx errors are free.
504upstream_timeoutThe platform took over 30 seconds to answer. Retry; timeouts are free.

Use it in Claude

Once LurkAPI is connected to Claude, this endpoint is the youtube_video tool. Ask in plain English, for example:

Ask Claude
Use LurkAPI's youtube_video with url "https://www.youtube.com/watch?v=dQw4w9WgXcQ" and summarize what you find.

Claude calls youtube_video with arguments like these, and each call costs 1 credit:

Tool arguments
{
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}

Tool results skip nulls and empty lists to save tokens.