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

YouTube Channel ID Lookup

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

Retrieves the unique YouTube channel ID associated with a specific channel name. Provide the target channel name to receive the matching channel identifier.

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

Playground

อินพุต
Channel name.
เอาต์พุตพร้อมใช้งาน

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

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

API README

YouTube Channel ID Lookup API

This API returns the YouTube channel ID that matches a channel name. It needs one input, channel_name, and returns the ID with the name it matched.

Use cases

  • Convert a creator's channel name into a channel ID before you store it in a database.
  • Get the channel ID you need to call other YouTube channel APIs.
  • Check that a channel name maps to the channel ID you expect.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web/channel-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_name": "LinusTechTips"}'

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

Parameters

NameTypeRequiredDescription
channel_namestringYesChannel name.

Example response

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

{
  "channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
  "channel_name": "LinusTechTips"
}

Response fields

FieldMeaning
channel_idThe YouTube channel ID for the matched channel. It starts with UC, as in UCXuqSBlHAE6Xw-yeJA0Tunw.
channel_nameThe channel name in the response. It matches the channel_name you sent in the example request.

Notes

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 ID Lookup API ได้อย่างไร?

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

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

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

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

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

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

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

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

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