# Get a YouTube transcript in Spanish

**Use case:** 

Pulls the Spanish captions of a YouTube video instead of the default language, with timestamps. Set any language code to get transcripts for translation work, language learning or multilingual datasets.

## Input

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=iG9CE55wbtY"
  ],
  "language": "es",
  "maxItems": 10
}
```

## Output

```json
{
  "videoId": {
    "label": "Video Id"
  },
  "title": {
    "label": "Title"
  },
  "channelName": {
    "label": "Channel Name"
  },
  "language": {
    "label": "Language"
  },
  "isAutoGenerated": {
    "label": "Is Auto Generated"
  },
  "wordCount": {
    "label": "Word Count"
  },
  "text": {
    "label": "Text"
  }
}
```

## How it works

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

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

### 2. Start the "Get a YouTube transcript in Spanish" task

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

### 3. Receive the "Get a YouTube transcript in Spanish" 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 video id, title, channel name, 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 a YouTube transcript in Spanish" task via API](https://apify.com/piotrv1001/youtube-transcript-scraper.md).

## FAQ

### What does the Spanish YouTube transcript task do?

The Spanish YouTube transcript task fetches the Spanish captions of a YouTube video instead of the original language and saves the full text, timestamped segments, word count and video details.

### How do I get a YouTube transcript in French, German or another language?

The Spanish YouTube transcript task uses the language code "es". Change it to fr, de, pt-BR or any code the video offers; the list of available languages in the output shows which captions exist.

### What if the video has no Spanish captions?

The Spanish YouTube transcript task then returns the original-language transcript. A requested-language-found flag in each result tells you whether the Spanish version was really available.

### Can I build a bilingual dataset for language learning?

The Spanish YouTube transcript task can be paired with a second run that leaves the language empty: you get the Spanish and original transcripts of the same video, each with its own timestamps.

### How is the Spanish YouTube transcript task billed?

The Spanish YouTube transcript task is billed per transcript saved, plus a tiny start fee per run. Lower maxItems to cap cost when you add more video links; current rates are on the Actor's Pricing tab.

### Can I get Spanish transcripts for many videos at once?

The Spanish YouTube transcript task accepts a list of YouTube links or video IDs, so you can paste many videos into one run; each gets its Spanish captions when the video has them.

## About this Actor

This example demonstrates how to use [YouTube Transcript Scraper](https://apify.com/piotrv1001/youtube-transcript-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/piotrv1001/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/piotrv1001/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`).
