Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

YouTube Channel ID Lookup

Dokumentasi 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.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

Input
Channel name.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
YouTube$0.001 per panggilanJSON
YouTube$0.001 per panggilanJSON
YouTube$0.001 per panggilanJSON
YouTube$0.001 per panggilanJSON
YouTube$0.001 per panggilanJSON
YouTube$0.001 per panggilanJSON

Panduan:Best YouTube API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API YouTube Channel ID Lookup?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/youtube/web/channel-id dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API YouTube Channel ID Lookup?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API YouTube Channel ID Lookup?

Wajib: channel_name (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API YouTube Channel ID Lookup?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API YouTube?

Tidak. YouTube Channel ID Lookup berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API YouTube secara terpisah.