Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

YouTube Channel ID from URL

API-Dokumentation
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-id

Resolves a YouTube channel URL to its canonical channel ID. Accepts various channel URL structures including handle, channel, custom, and user formats.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
Channel URL.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

YouTube Channel ID from URL API

This API takes a YouTube channel URL and returns the channel's canonical ID and the canonical /channel/ URL. It needs one input, channel_url.

Use cases

  • Turn a handle URL such as https://www.youtube.com/@CozyCraftYT into a stable channel ID to store in a database.
  • Normalize a list of mixed channel URLs into one ID format before you remove duplicates.
  • Get the channel ID you need to call channel-level APIs that ask for an ID instead of a URL.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-id" \
  -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 canonical YouTube channel ID. It starts with UC.
channel_urlThe canonical channel URL built from the ID, in the form https://www.youtube.com/channel/<channel_id>.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
YouTube$0.001 pro AufrufJSON
YouTube$0.001 pro AufrufJSON
YouTube$0.001 pro AufrufJSON
YouTube$0.001 pro AufrufJSON
YouTube$0.001 pro AufrufJSON
YouTube$0.001 pro AufrufJSON

Anleitungen:Best YouTube API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die YouTube Channel ID from URL API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/youtube/web-v2/channel-id mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die YouTube Channel ID from URL API?

$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die YouTube Channel ID from URL API?

Erforderlich: channel_url (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die YouTube Channel ID from URL API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein YouTube-Entwicklerkonto oder einen API-Schlüssel?

Nein. YouTube Channel ID from URL läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für YouTube API beantragen.