API de YouTube: Transcripción del video (completo)
Obtén la transcripción de un video o Short de YouTube con segmentos con tiempos y su procedencia: si el texto viene de subtítulos escritos por el creador o del reconocimiento automático de voz.
US$2.00/1k solic., pagas por solicitud, sin suscripción.
Transcript
{"text": "welcome back to the channel today we're going to talk about","startSeconds": 0,"endSeconds": 4.2}
Precios y proveedores
Precios del endpoint Transcripción del video (completo) de la API de YouTube: una API, 2 proveedores intercambiables
El proveedor más barato responde primero. Si falla, el siguiente toma el relevo en la misma llamada.
Un proveedor marcado como Fuera de servicio dejó de responder de forma confiable y se sacó de la rotación, así que tus llamadas van a los demás. Vuelve a entrar por sí solo cuando responde de forma confiable otra vez.
Pruébalo
Obtén Transcripción del video (completo) de YouTube en una sola solicitud
Este ejemplo muestra 24 de 25 campos. Ver todos los campos
{
"found": true,
"data": {
"transcript": "welcome back to the channel today we're going to talk about how sourdough starters actually work at a chemistry level first let's talk about the flour you use because that changes everything about fermentation speed",
"language": "en",
"isAutoGenerated": false,
"isAiGenerated": null,
"title": "The Science of Sourdough, Explained Simply",
"channel": "Kitchen Chemistry with Owen",
"durationSeconds": 612,
"segments": [
{
"text": "welcome back to the channel today we're going to talk about",
"startSeconds": 0,
"endSeconds": 4.2
},
{
"text": "how sourdough starters actually work at a chemistry level",
"startSeconds": 4.2,
"endSeconds": 9.1
},
{
"text": "first let's talk about the flour you use because that changes",
"startSeconds": 9.1,
"endSeconds": 14.6
},
{
"text": "everything about fermentation speed",
"startSeconds": 14.6,
"endSeconds": 17.8
}
],
"videoId": "nS3oOb6VwJq",
"url": "https://www.youtube.com/watch?v=nS3oOb6VwJq",
"description": "A deep dive into the microbiology and chemistry behind a healthy sourdough starter, with tips for troubleshooting a sluggish rise.",
"views": 341000,
"likes": 18900,
"authorId": "UC5sTr3u6vBzPq8fWdZgX9Lm",
"authorUrl": "https://www.youtube.com/@kitchenchemistrywithowen",
"image": "https://i.ytimg.com/vi/nS3oOb6VwJq/hqdefault.jpg",
"createdUtc": 1757462400,
"keywords": [
"sourdough",
"baking science",
"fermentation"
],
"category": "Education"
}
}Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.
Referencia
Una solicitud, un formato de respuesta.
Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.
Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d
Cuerpo de la solicitud
JSON, enviado por POST a este endpoint.
- urlstring
https://www.youtube.com/watch?v=nS3oOb6VwJq
URL del video o Short de YouTube (p. ej., "https://www.youtube.com/watch?v=dQw4w9WgXcQ" o "https://www.youtube.com/shorts/Fir1x9cw2vg").
- captionKindenum
Qué pista de subtítulos aceptar: "manual" solo subtítulos escritos por el creador, "automatic" solo el reconocimiento de voz de YouTube, "any" la que exista.
- languagestring
Código del idioma de subtítulos preferido (p. ej., "en", "es"). Por defecto, inglés. Si el video no tiene subtítulos en ese idioma, recibes la transcripción en otro idioma que tenga el video; el campo `language` del resultado indica cuál. Con `captionKind` en "manual" o "automatic", no se devuelve otro idioma.
- requireFieldsarray
Opcional; si lo omites, el enrutamiento no cambia y atiende la fuente más barata. Indica los campos de salida que esta solicitud debe poder devolver, por ejemplo `views`, y solo la atenderá una fuente que los devuelva todos. Los campos que no indiques se siguen devolviendo siempre que la fuente que atiende los tenga. Esto puede subir tu precio: cuando la fuente más barata no puede devolver un campo indicado, atiende una fuente más cara, y se te cotiza y cobra su precio. Un campo indicado puede faltar igualmente en una transcripción que realmente no lo tenga. Indicar una combinación que ninguna fuente devuelve junta se rechaza como entrada no válida, sin cargo.
Respuesta
JSON, un valor de ejemplo por campo.
- authorIdstringse puede exigir
UC5sTr3u6vBzPq8fWdZgX9Lm
YouTube channel ID of the publishing channel.
- authorUrlstringse puede exigir
https://www.youtube.com/@kitchenchemistrywithowen
Canonical URL of the publishing channel, tracking query parameters stripped.
- categorystringse puede exigir
Education
YouTube category the video is filed under, for example "Music".
- channelstring
Kitchen Chemistry with Owen
Channel name that published the video.
- createdUtcnumberse puede exigir
1757462400
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- descriptionstringse puede exigir
A deep dive into the microbiology and chemistry behind a healthy sourdough starter, with tips for troubleshooting a sluggish rise.
Full video description text.
- durationSecondsnumber
612
Video duration in seconds.
- imagestringse puede exigir
https://i.ytimg.com/vi/nS3oOb6VwJq/hqdefault.jpg
URL of the video thumbnail image.
- isAiGeneratedboolean
null
True when the words were recognized from the audio by the serving lane rather than read from any YouTube caption track, or null when the serving source does not say.
- isAutoGeneratedboolean
false
True when YouTube generated the caption track by speech recognition rather than the creator supplying it. Automatic captions carry recognition errors, especially on names and jargon. Populated whenever the provider has data for the entity.
- keywordsstring[]se puede exigir
Keywords the uploader tagged the video with.
- languagestring
en
Caption language code (e.g. "en"). Populated whenever the provider has data for the entity.
- likesintegerse puede exigir
18900
Number of likes.
- titlestring
The Science of Sourdough, Explained Simply
Video title.
- transcriptstring
welcome back to the channel today we're going to talk about how sourdough starters actually work at a chemistry level first let's talk about the flour you use because that changes everything about fermentation speed
Full transcript text, segments joined in playback order. Populated whenever the provider has data for the entity.
- urlstring
https://www.youtube.com/watch?v=nS3oOb6VwJq
Watch URL of the video.
- videoIdstring
nS3oOb6VwJq
Unique identifier of the video.
- viewsintegerse puede exigir
341000
Number of views.
Timed transcript segments in playback order. Populated whenever the provider has data for the entity.
- endSecondsnumber
4.2
Segment end offset in seconds.
- startSecondsnumber
0
Segment start offset in seconds.
- textstring
welcome back to the channel today we're going to talk about
Text of this transcript segment.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
Preguntas frecuentes
Acerca del endpoint Transcripción del video (completo) de la API de YouTube
El endpoint Transcripción del video (completo) de AnyAPI para YouTube devuelve datos de YouTube como JSON normalizado con una sola llamada POST a /v1/run/youtube.video_transcript_full. Obtén la transcripción de un video o Short de YouTube con segmentos con tiempos y su procedencia: si el texto viene de subtítulos escritos por el creador o del reconocimiento automático de voz. AnyAPI enruta cada solicitud entre 2 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$2 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 100.0% de las llamadas al endpoint Transcripción del video (completo) de la API de YouTube a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 5.9 segundos en 16.030 llamadas medidas.