Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

YouTube Channel ID from URL (V2)

API dokümanları
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.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 0 isteğe bağlı

Oynatma Alanı

Girdi
Channel URL.
ÇıktıÖrnek
Yanıtoutputs · 159 B · 8 satır
[
  {
    "data": {
      "channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
      "channel_url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg"
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON

Kılavuzlar:Best YouTube API in 2026: Pricing Compared

Sorular

SSS

YouTube Channel ID from URL (V2) API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/youtube/web/channel-id-v2 adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

YouTube Channel ID from URL (V2) API'sinin fiyatı nedir?

çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

YouTube Channel ID from URL (V2) API'si hangi parametreleri kabul eder?

Gerekli: channel_url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

YouTube Channel ID from URL (V2) API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir YouTube geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. YouTube Channel ID from URL (V2), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. YouTube API erişimi için ayrıca başvuru yapmanız gerekmez.