# Translate YouTube transcripts into Spanish, segment by segment

**Use case:** 

Two YouTube videos (Me at the zoo and a Veritasium video) with their English transcript and a Spanish machine translation next to it: the same number of segments with the same timing, also as SRT, labelled `machine (OpenAI gpt-6-luna)` — not YouTube's own translation, which it does not serve logged out. Charged per started 1,000 characters of the original, only when every segment came back.

## Input

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://www.youtube.com/watch?v=ONAuUyml0yI"
  ],
  "channels": [],
  "playlists": [],
  "searchQueries": [],
  "maxVideosPerSource": 50,
  "channelContent": "all",
  "dateFrom": "",
  "dateTo": "",
  "minDurationSeconds": 0,
  "maxDurationSeconds": 0,
  "languages": [],
  "trackKind": "manual_first",
  "allTracks": false,
  "outputFormats": [
    "srt"
  ],
  "chunkSize": 1000,
  "includeSegments": true,
  "saveFiles": false,
  "translateTo": "es",
  "transcribeMissing": false,
  "maxComments": 0,
  "maxItems": 0,
  "onlyNew": false,
  "stateStoreName": ""
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  },
  "video_id": {
    "label": "Video id",
    "format": "string"
  },
  "video_url": {
    "label": "Video URL",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channel_name": {
    "label": "Channel",
    "format": "string"
  },
  "channel_id": {
    "label": "Channel id",
    "format": "string"
  },
  "channel_url": {
    "label": "Channel URL",
    "format": "string"
  },
  "channel_handle": {
    "label": "Channel handle",
    "format": "string"
  },
  "channel_subscribers": {
    "label": "Subscribers",
    "format": "string"
  },
  "publish_date": {
    "label": "Published",
    "format": "string"
  },
  "published_at": {
    "label": "Published at",
    "format": "string"
  },
  "duration_s": {
    "label": "Duration (s)",
    "format": "integer"
  },
  "view_count": {
    "label": "Views",
    "format": "integer"
  },
  "like_count": {
    "label": "Likes",
    "format": "integer"
  },
  "category": {
    "label": "Category",
    "format": "string"
  },
  "keywords": {
    "label": "Keywords",
    "format": "array"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "thumbnail_url": {
    "label": "Thumbnail",
    "format": "string"
  },
  "is_live_content": {
    "label": "Live content",
    "format": "boolean"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "language_name": {
    "label": "Language name",
    "format": "string"
  },
  "requested_language": {
    "label": "Requested language",
    "format": "string"
  },
  "language_note": {
    "label": "Language note",
    "format": "string"
  },
  "track_kind": {
    "label": "Track kind",
    "format": "string"
  },
  "is_auto_generated": {
    "label": "Auto-generated",
    "format": "boolean"
  },
  "transcript_source": {
    "label": "Transcript source",
    "format": "string"
  },
  "segment_count": {
    "label": "Segments",
    "format": "integer"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "word_count": {
    "label": "Words",
    "format": "integer"
  },
  "char_count": {
    "label": "Characters",
    "format": "integer"
  },
  "segments": {
    "label": "Segments (timed)",
    "format": "array"
  },
  "srt": {
    "label": "SRT",
    "format": "string"
  },
  "vtt": {
    "label": "WebVTT",
    "format": "string"
  },
  "paragraphs": {
    "label": "Paragraphs",
    "format": "array"
  },
  "chunks": {
    "label": "Chunks",
    "format": "array"
  },
  "markdown": {
    "label": "Markdown",
    "format": "string"
  },
  "chapters": {
    "label": "Chapters",
    "format": "array"
  },
  "tracks": {
    "label": "Tracks",
    "format": "array"
  },
  "translation_languages": {
    "label": "YouTube translation languages",
    "format": "array"
  },
  "other_tracks": {
    "label": "Other tracks",
    "format": "array"
  },
  "translation": {
    "label": "Translation",
    "format": "object"
  },
  "speech_to_text_seconds": {
    "label": "Speech-to-text seconds",
    "format": "number"
  },
  "comments": {
    "label": "Comments",
    "format": "array"
  },
  "files": {
    "label": "Files",
    "format": "object"
  },
  "notes": {
    "label": "Notes",
    "format": "array"
  },
  "source_type": {
    "label": "Source type",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "source_position": {
    "label": "Position",
    "format": "integer"
  },
  "scraped_at": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## About this Actor

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