Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

YouTube Channel ID from URL (V2)

API दस्तावेज़
https://api.sandbase.ai/v1/api/youtube/web/channel-id-v2

Resolves a YouTube channel URL into its unique channel ID and standardized channel URL. Accepts various URL formats including handles, custom URLs, and user links.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Channel URL.
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 159 B · 8 पंक्तियाँ
[
  {
    "data": {
      "channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
      "channel_url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg"
    }
  }
]

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

YouTube Channel ID from URL (V2) API

Takes a YouTube channel URL and returns the channel's unique ID and its standard channel URL. The input is channel_url, which can be a handle, custom URL, user link, or channel link.

Use cases

  • Convert a creator's @handle link into a UC... channel ID before you call other channel APIs.
  • Clean up channel links that users paste in different formats and store one standard URL per channel.
  • Check that a submitted channel link points to a real channel.
  • Build a lookup table that maps handles from a spreadsheet to channel IDs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web/channel-id-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_url": "https://www.youtube.com/@CozyCraftYT"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
channel_urlstringYesChannel URL.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
  "channel_url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg"
}

Response fields

FieldMeaning
channel_idThe unique YouTube channel ID. It starts with UC, for example UCeu6U67OzJhV1KwBansH3Dg.
channel_urlThe standard channel URL built from the ID, in the form https://www.youtube.com/channel/<channel_id>.

Notes

  • Pass the full URL in channel_url. The example uses a handle URL: https://www.youtube.com/@CozyCraftYT.
  • The response gives the same ID in channel_id and inside channel_url, so you can use either one.
  • To go the other way and get a URL from an ID, use YouTube Channel URL by ID.
  • For profile details of the channel, call YouTube Channel Information next.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
YouTube$0.001 प्रति कॉलJSON
YouTube$0.001 प्रति कॉलJSON
YouTube$0.001 प्रति कॉलJSON
YouTube$0.001 प्रति कॉलJSON
YouTube$0.001 प्रति कॉलJSON
YouTube$0.001 प्रति कॉलJSON

गाइड्स:Best YouTube API in 2026: Pricing Compared

प्रश्न

FAQ

YouTube Channel ID from URL (V2) API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/youtube/web/channel-id-v2 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

YouTube Channel ID from URL (V2) API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

YouTube Channel ID from URL (V2) API कौन-से parameters स्वीकार करती है?

आवश्यक: channel_url (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

YouTube Channel ID from URL (V2) API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक YouTube developer account या API key चाहिए?

नहीं। YouTube Channel ID from URL (V2) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से YouTube API access के लिए आवेदन करने की आवश्यकता नहीं है।