channel_idstringआवश्यक
Channel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-urlReturns standard and vanity channel URLs for a specified YouTube channel. Takes a unique channel ID to look up the corresponding handle and profile links.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the standard channel URL and the vanity (handle) URL for a YouTube channel. It needs one input, the channel_id.
channel_id into the public @handle link for a creator profile page.channel_id maps to a real channel before you run other channel lookups.curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel_id": "UCeu6U67OzJhV1KwBansH3Dg"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | Channel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg) |
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",
"vanity_url": "http://www.youtube.com/@CozyCraftYT"
}
| Field | Meaning |
|---|---|
channel_id | The channel ID you sent in the request, returned unchanged. |
channel_url | The standard channel URL, built as https://www.youtube.com/channel/ followed by the channel ID. |
vanity_url | The handle-based URL for the channel, such as http://www.youtube.com/@CozyCraftYT. The part after @ is the channel handle. |
channel_id is a string that starts with UC, for example UCeu6U67OzJhV1KwBansH3Dg.vanity_url in the example uses http://, not https://. Normalize the scheme if you need secure links.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
channel_idstringआवश्यकChannel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-url पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: channel_id (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। YouTube Channel URL by ID SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से YouTube API access के लिए आवेदन करने की आवश्यकता नहीं है।