channel_idstringrequerido
Channel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-urlReturns standard and vanity channel URLs for a specified YouTube channel. Takes a unique channel ID to look up the corresponding handle and profile links.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Returns the standard channel URL and the vanity (handle) URL for a YouTube channel. It needs one input, the channel_id.
channel_id into the public @handle link for a creator profile page.channel_id maps to a real channel before you run other channel lookups.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.
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | Channel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg) |
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"
}
| Field | Meaning |
|---|---|
channel_id | The channel ID you sent in the request, returned unchanged. |
channel_url | The standard channel URL, built as https://www.youtube.com/channel/ followed by the channel ID. |
vanity_url | The handle-based URL for the channel, such as http://www.youtube.com/@CozyCraftYT. The part after @ is the channel handle. |
channel_id is a string that starts with UC, for example UCeu6U67OzJhV1KwBansH3Dg.vanity_url in the example uses http://, not https://. Normalize the scheme if you need secure links.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
channel_idstringrequeridoChannel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
YouTube Channel URL by IDEsta API YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/youtube/web-v2/channel-url con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: channel_id (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. YouTube Channel URL by ID funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de YouTube por separado.