Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

YouTube Channel URL by ID

เอกสาร API
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-url

Returns standard and vanity channel URLs for a specified YouTube channel. Takes a unique channel ID to look up the corresponding handle and profile links.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
Channel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

YouTube Channel URL by ID API

Returns the standard channel URL and the vanity (handle) URL for a YouTube channel. It needs one input, the channel_id.

Use cases

  • Turn a stored channel_id into the public @handle link for a creator profile page.
  • Build a clickable link to a channel when your database only holds the ID.
  • Find the handle of a channel so you can match it against handles found in social media bios.
  • Check that a channel_id maps to a real channel before you run other channel lookups.

Request

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.

Parameters

NameTypeRequiredDescription
channel_idstringYesChannel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)

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",
  "vanity_url": "http://www.youtube.com/@CozyCraftYT"
}

Response fields

FieldMeaning
channel_idThe channel ID you sent in the request, returned unchanged.
channel_urlThe standard channel URL, built as https://www.youtube.com/channel/ followed by the channel ID.
vanity_urlThe handle-based URL for the channel, such as http://www.youtube.com/@CozyCraftYT. The part after @ is the channel handle.

Notes

  • The channel_id is a string that starts with UC, for example UCeu6U67OzJhV1KwBansH3Dg.
  • The vanity_url in the example uses http://, not https://. Normalize the scheme if you need secure links.
  • If you only have a channel URL, call YouTube Channel ID from URL first to get the ID.
  • For subscriber counts, video totals and the joined date, call YouTube Channel Description 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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ YouTube Channel URL by ID API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/youtube/web-v2/channel-url โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

YouTube Channel URL by ID API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

YouTube Channel URL by ID API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: channel_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

YouTube Channel URL by ID API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ YouTube ไหม?

ไม่จำเป็น YouTube Channel URL by ID ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง YouTube API แยกต่างหาก