# YouTube Transcript & Translate (`refulgent_enchantment_ghr/youtube-transcript-translate`) Actor

Get YouTube transcripts in the original language or translated into any language. Paste links or video IDs — get clean text, optional timestamps. Videos without captions are free.

- **URL**: https://apify.com/refulgent_enchantment_ghr/youtube-transcript-translate.md
- **Developed by:** [Paul Gallicin](https://apify.com/refulgent_enchantment_ghr) (community)
- **Categories:** Videos, Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 transcripts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## YouTube Transcript & Translate

Paste YouTube links. Get clean transcripts, subtitles and captions — in the original language or translated into yours.

**You pay only for videos that have a transcript.** No captions, private, deleted, duplicate or broken link — $0.

### Made for

- **AI and LLM workflows** — feed video content to summaries, RAG, chatbots and agents.
- **Research and content** — quotes, notes, translations and SEO from any video.
- **Localization** — read foreign-language videos in your own language.

### How it works

1. Add videos: any YouTube link (`watch`, `youtu.be`, `shorts`, `live`, `embed`) or an 11-character video ID.
2. Optional: pick a language to translate to — `en`, `es`, `de`, `uk`, `fr`, `pl`, `ja`…
3. Run. Each video becomes one clean row in your dataset.

### Input

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=8LYLhMJ4A7E",
    "https://youtu.be/BDqeVnxFoa8"
  ],
  "targetLanguage": "en",
  "includeTimestamps": false
}
```

### Output

```json
{
  "videoId": "8LYLhMJ4A7E",
  "title": "…",
  "channel": "…",
  "lengthSec": 358,
  "status": "OK",
  "lang": "de",
  "isGenerated": true,
  "text": "Und wir haben folgende Eilmeldung für Sie …",
  "translation": {
    "lang": "en",
    "source": "youtube",
    "text": "And we have the following breaking news for you …"
  },
  "chargedUsd": 0.01
}
```

- `lang` — the language actually spoken in the video. Auto-dubbed audio tracks are ignored, so you get the original speech.
- `translation.source` — `youtube` when YouTube already has a track in your language, `ai` when we translate it.
- `status` — `OK`, `NO_CAPTIONS`, `UNAVAILABLE`, `BAD_INPUT` or `ERROR`. Only `OK` is charged.
- `includeTimestamps: true` adds `segments` with `start`, `dur` and `text`.

### Pricing

Like a taxi meter — short videos cost little, long ones a bit more.

| What | Price |
|---|---|
| Transcript of one video (up to 10 hours) | $0.005 |
| Each extra started 10 hours of the same video | $0.005 |
| Translation, per started 10 minutes of video | $0.005 |
| Video without a transcript | free |

Examples: a 10-minute video — $0.005, with translation — $0.010. A 1-hour lecture translated — $0.035.

Set **Max cost per run** and the Actor stops before going over it — no translation is started that you would not pay for.

### Good to know

- Works with auto-generated and manual captions, regular videos and Shorts.
- Translation keeps the meaning and only fixes obvious speech-recognition errors.
- Results are a dataset: download as JSON, CSV, Excel, or use the API and integrations.
- Something wrong? Open an issue — we read every one.

# Actor input Schema

## `videos` (type: `array`):

Video links (watch, youtu.be, shorts, live, embed) or 11-character video IDs. You get one row per video.

## `targetLanguage` (type: `string`):

Language code, e.g. en, es, de, fr, pt, uk, pl, ja. Leave empty to get only the original transcript. YouTube's own track is used when it exists, otherwise AI translation ($0.005 per started 10 minutes of video).

## `includeTimestamps` (type: `boolean`):

Also return segments with start time, duration and text for the original transcript.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=FkZOwLPEw64"
  ],
  "includeTimestamps": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per video: original transcript, optional translation and the amount charged.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videos": [
        "https://www.youtube.com/watch?v=FkZOwLPEw64"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("refulgent_enchantment_ghr/youtube-transcript-translate").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "videos": ["https://www.youtube.com/watch?v=FkZOwLPEw64"] }

# Run the Actor and wait for it to finish
run = client.actor("refulgent_enchantment_ghr/youtube-transcript-translate").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videos": [
    "https://www.youtube.com/watch?v=FkZOwLPEw64"
  ]
}' |
apify call refulgent_enchantment_ghr/youtube-transcript-translate --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,refulgent_enchantment_ghr/youtube-transcript-translate"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZZ2iSmdOTsfylTJ8H/builds/gLPtmYfFPHjC9915L/openapi.json
