LurkAPI
Docs · Channel details

Channel details

A channel's subscribers, total views, video count, join date, country, links and description.

1 credit per callFresh within 6 hoursMCP tool: youtube_channel
GEThttps://api.lurkapi.com/v1/youtube/channel

Example response

When to use this

Use it to size up a creator: subscribers, lifetime views, number of videos, when they joined, where they're based and the links on their profile. Pass channelId, handle or a channel url (/@handle, /channel/UC…, /c/… and /user/… links all work).

YouTube rounds subscriber counts (519M), so subscriberCount is rounded too; viewCount and videoCount are exact from the about panel. If that panel is unavailable, videoCount comes rounded from the channel header, and views, join date, country and links can be missing. email is always null: YouTube only shows business emails to signed-in viewers.

Unknown and terminated channels return 404 not_found.

Example request

Copy one and replace YOUR_API_KEY with your API key (get one free). The code versions read the key from the LURKAPI_API_KEY environment variable instead.

Language

Parameters

Add them to the URL after a ?, as in ?handle=MrBeast. Join several with &.

ParameterDescription
channelId
stringoptional
Channel id, e.g. UCX6OQ3DkcsbYNE6H8uQQuVA. Pass this or handle.
handle
stringoptional
Channel handle, with or without the @, e.g. MrBeast. Pass this or channelId.
Example
MrBeast
url
stringoptional
Channel URL, e.g. https://www.youtube.com/@MrBeast. Instead of channelId or handle.

Example response

A real response, captured from the live API. Lists are trimmed to a couple of items, and long text such as media links is cut short with ….

Show the example response (2 KB)
{
  "success": true,
  "credits_remaining": 999995,
  "credits_charged": 1,
  "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
  "channel": "https://www.youtube.com/@MrBeast",
  "handle": "MrBeast",
  "name": "MrBeast",
  "description": "SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single…",
  "avatar": {
    "image": {
      "sources": [
        {
          "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe…",
          "width": 72,
          "height": 72
        },
        {
          "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe…",
          "width": 120,
          "height": 120
        },
        {
          "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe…",
          "width": 160,
          "height": 160
        },
        {
          "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe…",
          "width": 900,
          "height": 900
        }
      ]
    }
  },
  "avatarUrl": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe…",
  "banner": "https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biq…",
  "isVerified": true,
  "isFamilySafe": true,
  "subscriberCount": 519000000,
  "subscriberCountText": "519M subscribers",
  "videoCount": 1004,
  "videoCountText": "1,004 videos",
  "viewCount": 141227305543,
  "viewCountText": "141,227,305,543 views",
  "joinedDate": "2012-02-19",
  "joinedDateText": "Joined Feb 19, 2012",
  "country": "United States",
  "email": null,
  "links": [
    "https://www.themostdangerousgames.com/",
    "https://www.instagram.com/mrbeast/",
    "https://twitter.com/MrBeast",
    "https://facebook.com/mrbeast/"
  ],
  "twitter": "https://twitter.com/MrBeast",
  "instagram": "https://www.instagram.com/mrbeast/",
  "tags": "mrbeast6000, beast, mrbeast, Mr.Beast, mr",
  "keywords": [
    "mrbeast6000",
    "beast",
    "mrbeast",
    "Mr.Beast",
    "mr"
  ]
}

Response fields

Every field in a successful response, and what it means. A name with [] belongs to each item of a list: avatar.image.sources[].url is the url of every item in avatar.image.sources. null means there's no value.

Show all 33 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).
channelIdstringChannel id, UC….
channelstringChannel page, e.g. https://www.youtube.com/@MrBeast (or /channel/UC… without a handle).
handlestringcan be nullHandle without the @, e.g. MrBeast; null if the channel has none.
namestringChannel name.
descriptionstringThe full channel description.
avatarobjectcan be nullChannel picture in several sizes (YouTube's own shape). avatarUrl is the largest.
avatar.imageobjectThe picture.
avatar.image.sourcesobject[]The same picture in several sizes, smallest first.
avatar.image.sources[].urlstringImage URL.
avatar.image.sources[].widthnumberWidth in pixels.
avatar.image.sources[].heightnumberHeight in pixels.
avatarUrlstringcan be nullLargest channel picture URL (900 px).
bannerstringcan be nullLargest banner image URL; null without a banner.
isVerifiedbooleanHas YouTube's verified or official artist badge.
isFamilySafebooleanYouTube marks the channel family safe.
subscriberCountnumbercan be nullSubscribers, rounded as YouTube shows them (519M → 519000000). null when hidden.
subscriberCountTextstringcan be nullSubscribers as YouTube shows them, e.g. "519M subscribers".
videoCountnumbercan be nullPublic videos, Shorts and past streams. Exact from the about panel; rounded as videoCountText if that panel is unavailable.
videoCountTextstringcan be nullVideo count as YouTube shows it, e.g. "1,004 videos".
viewCountnumbercan be nullLifetime views across the channel, exact; null if the about panel is unavailable.
viewCountTextstringcan be nullLifetime views as YouTube shows them, e.g. "141,227,305,543 views".
joinedDatestringcan be nullWhen the channel was created, YYYY-MM-DD.
joinedDateTextstringcan be nullJoin date as YouTube shows it, e.g. "Joined Feb 19, 2012".
countrystringcan be nullCountry the channel lists, e.g. "United States"; null if it lists none.
emailnullAlways null: YouTube only shows a channel's business email to signed-in viewers.
linksstring[]The links on the channel's profile (website, socials, store), in the channel's order.
twitterstringcan be nullThe X / Twitter link from links, if any.
instagramstringcan be nullThe Instagram link from links, if any.
tagsstringcan be nullThe channel's keywords, comma-separated, e.g. "mrbeast6000, beast, mrbeast"; null if none.
keywordsstring[]The same keywords as a list.

Cost and freshness

Each call costs 1 credit. Calls turned away before they reach the platform (invalid parameters, a key or balance problem, a rate limit) are free, and so are 5xx errors. A not_found is charged, since the platform was checked. How charging works.

Answers are cached for up to 6 hours. A repeat call within that time can return the same data, and costs the same.

Errors

A failed call returns success: false, an error message, a code your program can check, and a docs link. These are the errors this endpoint can return. All error codes.

StatusCodeMeaning
401missing_api_keyNo API key was sent. Put it in the x-api-key header.
401invalid_api_keyThis key doesn't exist or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack, or wait for tomorrow's free top-up.
402over_max_creditsThis call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged.
403account_suspendedThis account is suspended. Email support@lurkapi.com. Not charged.
404not_foundWhat you asked for (a post, an ad, a subreddit) doesn't exist, or there's no endpoint at that path. Charged if the platform was checked.
405method_not_allowedEndpoints only take GET, with parameters in the URL.
429rate_limitedToo many calls in a short time. Wait as many seconds as the retry-after header says, then retry.
500internal_errorSomething broke on our side. Retry. Not charged.
502upstream_errorThe platform didn't send a usable answer. Retry. Not charged.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds. Not charged.
504upstream_timeoutThe platform took over 30 seconds to answer (90 for web pages). Retry. Not charged.

Use it in Claude

Connect LurkAPI to Claude and ask in plain English. This endpoint is the youtube_channel tool. For example:

Ask Claude
Use LurkAPI's youtube_channel tool with handle "MrBeast", then summarize what you find.

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

Tool arguments
{"handle": "MrBeast"}

To save tokens, tool results leave out empty fields, keep one URL per image or video, and give transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts. Its _note gives the offset for the next part, and later parts are free for 15 minutes. Pass trim=false for the full response.

From the blog

All posts