{
"ok": true,
"data": {
"id": "_T8cn2J13-4",
"url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
"title": "How We Are Going to the Moon - 4K",
"description": "While Apollo placed the first steps on the Moon, Artemis opens the door for humanity to sustainably work and live on another world...",
"publishedAt": "2019-12-19T17:43:14.000Z",
"durationSeconds": 331,
"duration": "00:05:31",
"viewCount": 11863645,
"likeCount": 480000,
"commentCount": 43988,
"commentsTurnedOff": false,
"tags": [
"NASA",
"Moon",
"Artemis"
],
"hashtags": [],
"category": "Science & Technology",
"thumbnail": "https://i.ytimg.com/vi/_T8cn2J13-4/maxresdefault.jpg",
"videoType": "video",
"isShort": false,
"isLive": false,
"liveStatus": "none",
"isMembersOnly": false,
"isAgeRestricted": false,
"isUnlisted": false,
"isFamilySafe": true,
"hasPaidPromotion": false,
"descriptionLinks": [],
"chapters": [],
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelSubscriberCount": 15100000,
"channelIsVerified": true,
"scrapedAt": "2026-11-15T04:30:12.512Z"
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39188/get+video+details?url=https://www.youtube.com/watch?v=_T8cn2J13-4' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"videoId": "_T8cn2J13-4",
"url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
"title": "How We Are Going to the Moon - 4K",
"channelName": "NASA",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelUrl": "https://www.youtube.com/@NASA",
"publishedAt": "2019-12-19T17:43:14.000Z",
"durationSeconds": 331,
"viewCount": 11863645,
"category": "Science & Technology",
"language": "en",
"languageName": "English",
"isAutoGenerated": false,
"wordCount": 873,
"availableLanguages": [
{
"language": "en",
"languageName": "English",
"isAutoGenerated": false
},
{
"language": "en",
"languageName": "English",
"isAutoGenerated": true
}
],
"thumbnailUrl": "https://i.ytimg.com/vi/_T8cn2J13-4/maxresdefault.jpg",
"keywords": [
"NASA",
"Moon",
"Artemis"
],
"description": "While Apollo placed the first steps on the Moon, Artemis opens the door...",
"fullText": "Between 1968 and 1972, America launched 9 human missions to the Moon, 6 of which successfully touched down...",
"segments": [
{
"start": 1.31,
"duration": 7.39,
"text": "Between 1968 and 1972, America launched 9 human missions to the Moon, 6 of which successfully"
},
{
"start": 8.7,
"duration": 4.2,
"text": "touched down",
"allowing 12 men to walk on the lunar surface.": null
}
],
"scrapedAt": "2026-11-15T04:30:13.101Z"
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39189/get+video+transcript?url=https://www.youtube.com/watch?v=_T8cn2J13-4&lang=en&format=text' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"query": "nasa artemis",
"estimatedResults": 3510030,
"items": [
{
"type": "video",
"id": "_T8cn2J13-4",
"url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
"title": "How We Are Going to the Moon - 4K",
"description": "While Apollo placed the first steps on the Moon, Artemis opens the door for humanity...",
"durationSeconds": 331,
"duration": "00:05:31",
"viewCount": 11863614,
"publishedTimeText": "6 years ago",
"publishedAt": "2020-11-15T00:00:00.000Z",
"thumbnail": "https://i.ytimg.com/vi/_T8cn2J13-4/hq720.jpg",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelIsVerified": true,
"isLive": false,
"isUpcoming": false,
"badges": [
"4K",
"CC"
],
"position": 1
}
]
},
"next_cursor": "eyJrIjoic2VhcmNoIiwicSI6Im5hc2EgYXJ0ZW1pcyIsImMiOiJFdU1DRWd4dVlYTmhJR0Z5ZEdWdGFYTWEw..."
}
curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39190/search+youtube?q=drone footage&type=all&upload_date=any&duration=any&sort=relevance&features=hd,subtitles' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"id": "UCLA_DiR1FfKNvjuUpBHmylQ",
"url": "https://www.youtube.com/@NASA",
"name": "NASA",
"handle": "@NASA",
"description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research...",
"subscriberCount": 15100000,
"videoCount": 6202,
"viewCount": 1135840911,
"joinedAt": "2008-06-03",
"country": null,
"links": [
{
"title": "Website",
"url": "https://www.nasa.gov/"
}
],
"keywords": [
"NASA",
"space",
"astronomy"
],
"avatar": "https://yt3.googleusercontent.com/nasa-avatar=s900",
"banner": "https://yt3.googleusercontent.com/nasa-banner=w2560",
"isVerified": true,
"isFamilySafe": true,
"scrapedAt": "2026-11-15T04:30:14.227Z"
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39191/get+channel+details?handle_or_url=@NASA' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"tab": "videos",
"sort": "popular",
"items": [
{
"type": "video",
"id": "EJxwWpaGoJs",
"url": "https://www.youtube.com/watch?v=EJxwWpaGoJs",
"title": "The Year of Pluto - New Horizons Documentary Brings Humanity Closer to the Edge of the Solar System",
"description": null,
"durationSeconds": 3514,
"duration": "00:58:34",
"viewCount": 21000000,
"publishedTimeText": "11 years ago",
"publishedAt": "2015-11-15T00:00:00.000Z",
"thumbnail": "https://i.ytimg.com/vi/EJxwWpaGoJs/hq720.jpg",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelIsVerified": null,
"isLive": false,
"isUpcoming": false,
"badges": [],
"position": 1
}
]
},
"next_cursor": "eyJrIjoiY2hhbm5lbC12aWRlb3MiLCJjaCI6IlVDTEFfRGlSMUZmS052anVVcEJIbXlsUSIs..."
}
curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39192/get+channel+videos?handle_or_url=@NASA&tab=videos&sort=newest' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"videoId": "_T8cn2J13-4",
"commentCount": 43988,
"commentsTurnedOff": false,
"sort": "top",
"items": [
{
"id": "UgzExampleComment0AaABAg",
"text": "Can't wait to see people walk on the Moon again!",
"author": "@spacefan",
"authorChannelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
"authorChannelUrl": "https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxxxxxxxx",
"authorIsChannelOwner": false,
"authorIsVerified": false,
"likeCount": 1200,
"replyCount": 14,
"publishedAt": "2020-11-15T00:00:00.000Z",
"publishedTimeText": "6 years ago",
"isEdited": false,
"isPinned": false,
"hasCreatorHeart": false
}
]
},
"next_cursor": "eyJrIjoiY29tbWVudHMiLCJpZCI6Il9UOGNuMkoxMy00IiwicyI6InRvcCIsImMiOiJFZzBTQzE5VU9HTnVN..."
}
curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39193/get+video+comments?url=_T8cn2J13-4&sort=top' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"playlistId": "PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
"url": "https://www.youtube.com/playlist?list=PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
"title": "Artemis II Mission Coverage",
"description": null,
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"videoCount": 23,
"viewCount": 1049387,
"isUnlisted": false,
"items": [
{
"type": "video",
"id": "DYY4nnfxKbU",
"url": "https://www.youtube.com/watch?v=DYY4nnfxKbU",
"title": "NASA's Artemis II Crew Return to Houston",
"description": null,
"durationSeconds": 4860,
"duration": "01:21:00",
"viewCount": 1700000,
"publishedTimeText": "Streamed 7 months ago",
"publishedAt": "2026-04-15T00:00:00.000Z",
"thumbnail": "https://i.ytimg.com/vi/DYY4nnfxKbU/hqdefault.jpg",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelIsVerified": null,
"isLive": false,
"isUpcoming": false,
"badges": [],
"position": 1
}
]
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39194/get+playlist+videos?url=https://www.youtube.com/playlist?list=PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv' --header 'Authorization: Bearer YOUR_API_KEY'
Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el YouTube en Tiempo Real API simplemente incluye tu token de portador en el encabezado de Autorización.
| Encabezado | Descripción |
|---|---|
Autorización
|
Requerido
Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.
|
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento.
Datos de YouTube en tiempo real como JSON: detalles del video, transcripciones en cualquier idioma de subtítulos, resultados de búsqueda, canales, subidas de canales y Shorts, comentarios y listas de reproducción
Cualquier idioma de subtítulos que tenga el video, incluidos los subtítulos generados automáticamente. Pide un código de idioma o obtén la pista predeterminada
Los puntos finales de la lista devuelven next_cursor Pásalo de nuevo como el parámetro cursor para obtener la siguiente página hasta que next_cursor sea nulo
Un enlace de video o ID para videos y transcripciones un enlace de canal un identificador o ID para canales un enlace de lista de reproducción o ID para listas de reproducción y texto libre para la búsqueda
El endpoint de la transcripción responde con un código de error que dice que no hay transcripción disponible en lugar de datos
Cada punto final devuelve datos específicos de YouTube en formato JSON Por ejemplo el punto final "Obtener detalles del video" proporciona metadatos del video mientras que "Obtener transcripción del video" devuelve subtítulos Otros puntos finales como "Buscar en YouTube" devuelven resultados de búsqueda y "Obtener detalles del canal" proporciona información sobre los canales
Los campos clave varían según el punto final. Para "Obtener detalles del video", los campos importantes incluyen título, conteo de vistas y duración. En "Obtener detalles del canal", campos como conteo de suscriptores y descripción son cruciales. La documentación de cada punto final describe sus campos específicos
Los parámetros varían según el punto final. Para "Buscar en YouTube" puedes filtrar por tipo de resultado, fecha de carga y duración. El punto final "Obtener transcripción de video" acepta un código de idioma. Consulta la documentación de cada punto final para obtener una lista completa de los parámetros aceptados
Los datos de respuesta están estructurados en un formato JSON con un estado "ok" y un objeto "data" El objeto "data" contiene campos relevantes específicos del endpoint como detalles del video o resultados de búsqueda lo que facilita su análisis y utilización
Cada punto final proporciona información distinta: "Obtener detalles del video" ofrece metadatos sobre videos, "Obtener comentarios del video" enumera comentarios de usuarios, y "Obtener videos de la lista de reproducción" detalla videos dentro de una lista de reproducción. Esta variedad permite una recuperación de datos integral
Los usuarios pueden personalizar solicitudes utilizando parámetros específicos Por ejemplo en "Obtener videos de canal" puedes ordenar por popularidad o antigüedad En "Buscar en YouTube" puedes especificar filtros como duración y fecha de carga para refinar resultados
Los casos de uso típicos incluyen analizar el rendimiento de videos recuperar transcripciones para accesibilidad y agregar comentarios para análisis de sentimientos Los desarrolladores pueden usar estos datos para aplicaciones como la curación de contenido o herramientas educativas
La precisión de los datos se mantiene a través del acceso directo a la API de YouTube que proporciona actualizaciones en tiempo real La API refleja la información más reciente disponible en YouTube asegurando que los usuarios reciban datos actuales y confiables