API YouTube

YouTube Transcription complète de la vidéo API

Récupérez la transcription d’une vidéo ou d’un Short YouTube avec ses segments horodatés et sa provenance : mots issus de sous-titres écrits par le créateur ou de reconnaissance vocale automatique.

2,00 $US/1k req, paiement à la requête, sans abonnement.

YouTube
youtube.com/watch?v=nS3oOb6VwJq
YouTube
Sign in
Subscribe

Transcript

0:00welcome back to the channel today we're going to talk about
0:04how sourdough starters actually work at a chemistry level
0:09first let's talk about the flour you use because that changes
0:15everything about fermentation speed
Ce que l’API a renvoyésegments[0]
{
"text": "welcome back to the channel today we're going to talk about",
"startSeconds": 0,
"endSeconds": 4.2
}
Disponibilité
99,97%
30d · 19 855 appels
Requêtes
19 930
30 j · par semaine, 12 dernières sem.
Réponse
5,1s
médiane · 30d

Tarifs et fournisseurs

Tarifs de l’API YouTube Transcription complète de la vidéo : une API, 2 fournisseurs interchangeables

Le fournisseur le moins cher répond en premier. S’il échoue, le suivant prend le relais dans le même appel.

Vous payez
20,00 $US
2,00 $US/1k req, seulement pour ce que vous utilisez. Aucun forfait mensuel.
Vos 50 premières requêtes sont gratuites avec le solde de départ de 0,10 $US.

Essayer

Obtenez YouTube Transcription complète de la vidéo en une requête

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `likes`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Ouvrir dans
Obtenir une clé gratuite
Exemple de réponse
Les exécutions gratuites ne renvoient que les 3 premiers résultats. Alimentez une clé pour obtenir la réponse complète.

Cet exemple affiche 24 champs sur 25. Voir tous les champs

{
  "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"
  }
}

Référence complète des paramètres et de la réponse : chaque champ, type et exemple de cet endpoint.

Référence

Une requête, une seule forme de réponse.

Chaque champ que vous envoyez et chaque champ que vous recevez, avec un vrai exemple.

Dernière vérification : 2026-11-21 · disponibilité et latence mesurées sur 30d

Corps de la requête

JSON, envoyé à cet endpoint.

  • urlstring

    https://www.youtube.com/watch?v=nS3oOb6VwJq

    URL d’une vidéo ou d’un Short YouTube (p. ex. « https://www.youtube.com/watch?v=dQw4w9WgXcQ » ou « https://www.youtube.com/shorts/Fir1x9cw2vg »).

  • captionKindenum

    Quelle piste de sous-titres accepter : « manual » uniquement les sous-titres écrits par le créateur, « automatic » uniquement la reconnaissance vocale de YouTube, « any » celle qui existe.

  • languagestring

    Code de langue préféré des sous-titres (p. ex. « en », « es »). Anglais par défaut. Si la vidéo n’a pas de sous-titres dans cette langue, vous obtenez la transcription dans une autre langue disponible ; le champ `language` du résultat indique laquelle. Avec `captionKind` défini sur « manual » ou « automatic », aucune autre langue n’est renvoyée.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `likes`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

Vous envoyez. Un petit corps JSON. Les valeurs affichées sont des exemples à remplacer par les vôtres.

Réponse

JSON, une valeur d’exemple par champ.

datadata
  • authorIdstring

    UC5sTr3u6vBzPq8fWdZgX9Lm

    YouTube channel ID of the publishing channel.

  • authorUrlstring

    https://www.youtube.com/@kitchenchemistrywithowen

    Canonical URL of the publishing channel, tracking query parameters stripped.

  • categorystringpeut exiger

    Education

    YouTube category the video is filed under, for example "Music".

  • channelstring

    Kitchen Chemistry with Owen

    Channel name that published the video.

  • createdUtcnumberpeut exiger

    1757462400

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • descriptionstring

    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.

  • imagestring

    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[]

    Keywords the uploader tagged the video with.

  • languagestring

    en

    Caption language code (e.g. "en"). Populated whenever the provider has data for the entity.

  • likesintegerpeut exiger

    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.

  • viewsinteger

    341000

    Number of views.

each segmentdata.segments[]

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.

top level
  • 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.

Vous recevez. Des champs nommés et typés, dans la même forme quelle que soit la source qui répond.

FAQ

À propos de l’API YouTube Transcription complète de la vidéo

L’API YouTube Transcription complète de la vidéo d’AnyAPI renvoie des données YouTube en JSON normalisé à partir d’un appel POST à /v1/run/youtube.video_transcript_full. Récupérez la transcription d’une vidéo ou d’un Short YouTube avec ses segments horodatés et sa provenance : mots issus de sous-titres écrits par le créateur ou de reconnaissance vocale automatique. AnyAPI route chaque requête sur 2 sources et bascule automatiquement quand l’une échoue. Elle coûte à partir de 2 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 100,0% des appels YouTube Transcription complète de la vidéo passés par AnyAPI ont réussi, avec un temps de réponse médian de 5,1 secondes, sur 19 855 appels mesurés.

Elle coûte à partir de 2 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Vous alimentez un portefeuille en USD et chaque appel le débite. Certaines requêtes échouées financées par le portefeuille entraînent des frais de traitement que nous répercutons au prix coûtant, sans marge ; la réponse d’erreur indique le montant facturé.

Récupérez la transcription d’une vidéo ou d’un Short YouTube avec ses segments horodatés et sa provenance : mots issus de sous-titres écrits par le créateur ou de reconnaissance vocale automatique. La réponse est du JSON normalisé avec la même enveloppe que celle de tous les endpoints AnyAPI, donc analyser un second endpoint revient à changer l’URL et rien d’autre.

Ces 30 derniers jours, 100,0% des appels YouTube Transcription complète de la vidéo passés par AnyAPI ont réussi, avec un temps de réponse médian de 5,1 secondes, sur 19 855 appels mesurés. Ce sont les propres mesures d’AnyAPI du trafic passant par la passerelle, recalculées en continu, et non un objectif de niveau de service publié.

Oui. Un nouveau compte AnyAPI démarre avec 0,10 $US de solde gratuit, sans carte, ce qui couvre 50 appels YouTube Transcription complète de la vidéo à 0,002 $US chacun.

AnyAPI interroge la suivante de ses 2 sources dans la même requête, la moins chère d’abord, donc la panne d’une source ne fait pas échouer votre appel.

Envoyez une requête POST à https://api.getanyapi.com/v1/run/youtube.video_transcript_full avec votre clé AnyAPI dans un en-tête « Authorization: Bearer » et l’entrée en corps JSON. La même clé et le même portefeuille fonctionnent sur tous les endpoints AnyAPI.

Non. Vous ajoutez des dollars US à un solde AnyAPI prépayé unique et chaque requête le débite. Il n’y a ni forfait mensuel ni minimum, et le même solde paie tous les endpoints AnyAPI.

Oui. Installez @getanyapi/sdk depuis npm pour TypeScript ou getanyapi depuis pip pour Python. Les deux appellent chaque endpoint AnyAPI avec la même clé, et n’importe quel client HTTP fonctionne aussi.

Oui. Un agent peut se connecter au serveur MCP d’AnyAPI à https://api.getanyapi.com/mcp, ou créer sa propre clé d’essai gratuit avec un seul POST non authentifié vers https://api.getanyapi.com/agent/signup et appeler cet endpoint en HTTP.