Home / Use cases / Get a YouTube Transcript in French, Spanish or Any Language

Updated

Get a YouTube Transcript in French, Spanish or Any Language

Most transcript tools return English or whatever comes first. For French, Spanish or German videos, or for videos that offer several caption tracks, you need to choose the language and know which one you got.

Try it now on Apify YouTube Transcript for AI: RAG Chunks, Chapters, SRT · $0.002 per one video whose transcript was returned · failed items are free

How to do it, step by step

  1. Set Preferred languages in order, for example fr then en.
  2. Keep Language fallback on to get another track rather than nothing.
  3. Turn on Prefer automatic captions only if you want the automatic track over a manual one.
  4. Check language, captionType and languageMatched on each item.

The exact input used for the example below:

{
  "searchQueries": [
    "recette pâte à crêpes"
  ],
  "maxVideosPerSource": 2,
  "preferredLanguages": [
    "fr"
  ],
  "includeChunks": false,
  "includeSegments": false
}

Real result

Run XWfNkWgMGAIERrf61 on 2026-12-05: status SUCCEEDED, 2 item(s), 5.0 s of run time. Output shortened for reading (long text cut with “…”).

Query “recette pâte à crêpes”, preferred language fr:

[
  {
    "videoId": "p-XOehv3j20",
    "title": "La recette des crêpes par un maître-crêpier - HD - Savoir Cuisiner",
    "language": "fr",
    "languageName": "French (auto-generated)",
    "captionType": "auto",
    "availableLanguages": [
      {
        "code": "fr",
        "name": "French (auto-generated)",
        "type": "auto"
      }
    ],
    "text": "bonjour je vais vous présenter aujourd'hui une recette de pâte à crêpes très très connu en bretagne très simple très facile à réaliser et c'est celle que nous utilisons ici et que nous présentons à nos stagiaires à l'éco…"
  },
  {
    "videoId": "LrRnrL8Nnhk",
    "title": "🥞 Ma pâte à crêpes",
    "language": "fr",
    "languageName": "French",
    "captionType": "manual",
    "availableLanguages": [
      {
        "code": "fr",
        "name": "French",
        "type": "manual"
      },
      {
        "code": "fr",
        "name": "French (auto-generated)",
        "type": "auto"
      }
    ],
    "text": "Salut à tous, aujourd'hui je vais vous apprendre à faire un appareil à crêpes. Et oui, les crêpes c'est toujours simple, facile à faire et ça fait toujours plaisir à partager avec les enfants l'après-midi. Moi en tout ca…"
  }
]

Try it now with your own input

FAQ

What if the language I want does not exist?

With fallback on, you get the best available track and languageMatched is false; with fallback off, the item is returned as language_unavailable and not charged.

Does it translate?

No. It returns caption tracks that exist on YouTube, including YouTube's automatic captions in the spoken language.

How do I know which languages a video has?

availableLanguages lists every track with its code and whether it is manual or automatic.

Related