# Get YouTube transcripts in Spanish, Hindi, Arabic and more

**Use case:** 

Get transcripts in each video's own language, not an English machine translation. The task picks the caption track that matches the spoken language and prefers human-made captions. The example covers Spanish, French, German, Hindi, Japanese and Arabic videos, with right-to-left text kept correct for Arabic.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=yZzrfQzjY10",
    "https://www.youtube.com/watch?v=-nKmsJJrsps",
    "https://www.youtube.com/watch?v=0TAQwTWcW_Q",
    "https://www.youtube.com/watch?v=Ry3Zz3RnD88",
    "https://www.youtube.com/watch?v=naqvV_6F0ZM",
    "https://www.youtube.com/watch?v=20bDykvKsLg"
  ],
  "playlistUrls": [],
  "channelUrls": [],
  "maxVideos": 50,
  "channelMode": "latest",
  "publishedAfter": "",
  "publishedBefore": "",
  "language": "",
  "preferManualCaptions": true,
  "fixUrduScript": true,
  "removeNonSpeechTags": false,
  "includeSegments": true,
  "includeMetadata": true,
  "includeSrt": false,
  "includeVtt": false,
  "includeMarkdown": false,
  "includeChunks": false,
  "chunkSizeWords": 300,
  "chunkOverlapWords": 30,
  "maxConcurrency": 10,
  "maxRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "position": {
    "label": "Source order",
    "format": "integer"
  },
  "videoId": {
    "label": "Video ID",
    "format": "string"
  },
  "title": {
    "label": "Video title",
    "format": "string"
  },
  "language": {
    "label": "Spoken language",
    "format": "string"
  },
  "transcript": {
    "label": "Transcript",
    "format": "string"
  },
  "transcriptCaption": {
    "label": "YouTube caption text",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "string"
  },
  "dedupeKey": {
    "label": "Stable dedupe key",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Transcript API & Scraper Actor is ready to run with the inputs already set for "Get YouTube transcripts in Spanish, Hindi, Arabic and more". [Sign up or log in](https://console.apify.com/create-task-from-example/n9grazzHfr4VO9tG2) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get YouTube transcripts in Spanish, Hindi, Arabic and more" task

The YouTube Transcript API & Scraper Actor will start running based on the input automatically. You can also change all the input fields, like youtube video or shorts urls, youtube playlist urls, and more, to match your specific use case.

### 3. Receive the "Get YouTube transcripts in Spanish, Hindi, Arabic and more" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as source order, video id, video title, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get YouTube transcripts in Spanish, Hindi, Arabic and more" task via API](https://apify.com/panix/youtube-transcript-scraper.md).

## FAQ

### How does the multilingual transcripts task choose the language?

The multilingual transcripts task compares the caption tracks with the language actually spoken in the video and returns the matching track, preferring human-made captions. It never swaps in an automatic English translation.

### Can I ask for one specific language?

Set Caption language to a code such as es, hi or ar. The multilingual transcripts task then returns that caption track when the video has it.

### Which languages were tested?

The multilingual transcripts task was tested on 20 languages, including Spanish, Hindi, Arabic, Urdu, Japanese, Bengali, Tamil and Ukrainian, and every transcript came back in the language actually spoken.

### How much does the multilingual transcripts task cost?

The multilingual transcripts task costs $0.003 per transcript on the Apify Free plan and $0.00275 on Starter, less on bigger plans, plus $0.003 per run, in any language. Videos without captions are free.

## About this Actor

This example demonstrates how to use [YouTube Transcript API & Scraper](https://apify.com/panix/youtube-transcript-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/panix/youtube-transcript-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/panix/youtube-transcript-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
