# Video Transcript Extractor (YouTube + TikTok, PL/CEE languages) (`murloc/transkryptor`) Actor

Clean, LLM-ready video transcripts with timestamps: YouTube + TikTok, manual captions preferred, CEE language support (PL/CZ/SK/UA/RO/DE...), markdown or JSON output.

- **URL**: https://apify.com/murloc/transkryptor.md
- **Developed by:** [Patryk Patryk](https://apify.com/murloc) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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

## Transkryptor — clean video transcripts (YouTube), built for AI pipelines

**One run → markdown transcripts with timestamps, language-aware, LLM-ready.**
No browser, no cookies, no proxies → fast, cheap, dependable.

### Why this one

Most transcript tools dump raw caption JSON. Transkryptor delivers what AI
workflows actually consume:

- **LLM-ready Markdown** — title, channel, language + one flowing text with
  `[mm:ss]` markers you can keep or drop (`includeTimestamps`).
- **Language priority** — set e.g. `["pl","en"]`: creator captions win over
  auto-generated; if your preferred languages are missing it falls back to the
  creator's original and says so (`isAutoGenerated`).
- **CEE languages first-class** — Polish/Czech/Slovak/Ukrainian/Romanian/German
  content is this tool's home turf; few competitors handle it well.
- **Honest error records** — videos without captions return a cheap, clearly
  flagged `error-report` instead of silent failure; unsupported URLs are free.
- **Metadata without the player** — title/channel via YouTube oEmbed, immune to
  player-side blocking that breaks naive scrapers.

### Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=eiwqTqBRPeQ",
    "https://youtu.be/dQw4w9WgXcQ"
  ],
  "languages": ["pl", "en"],
  "allowAutoSubtitles": true,
  "includeTimestamps": true
}
```

### Output (one record per video)

```json
{
  "source": "youtube",
  "videoId": "eiwqTqBRPeQ",
  "url": "https://www.youtube.com/watch?v=eiwqTqBRPeQ",
  "title": "POMPA CIEPŁA PRZY -27°C… PRAWDZIWE RACHUNKI",
  "channel": "Kukeszko",
  "language": "pl",
  "isAutoGenerated": true,
  "segmentCount": 343,
  "segments": [{ "start": 0.0, "end": 2.9, "text": "35 cm śniegu i długotrwałe mrozy..." }],
  "markdown": "# POMPA CIEPŁA...\n\n> Channel: Kukeszko · Language: pl (auto-generated)...",
  "fetchedAt": "2026-11-13T09:00:00+00:00"
}
```

### Pricing (pay-per-event)

| Event | Price | What you pay for |
|---|---|---|
| **transcript** (primary) | $2.00 / 1,000 | one delivered transcript (record in dataset) |
| lookup, no captions | $0.10 / 1,000 | checked, flagged `error-report`, no fake results |
| Actor start | $0.05 / 1,000 runs | platform standard |

No per-minute surprises: capped by `maxTotalChargeUsd`, `maxUrls` per run.

### Reliability (YouTube rate-limits)

YouTube sometimes rate-limits datacenter IPs. The Actor:

1. runs proxyless first (fast, $0 transport),
2. retries with exponential backoff,
3. on a persistent block falls back to Apify RESIDENTIAL proxy automatically
   (`autoProxyFallback: true`, opt-out) — proxy cost is billed by **Apify to your
   usage credits** (typ. $0.001–0.008 per rescued video), never by this Actor.
   Rescued records carry `viaProxy: true` for full transparency.

### TikTok (experimental)

TikTok URLs are accepted; creator-published captions are delivered when they
exist (most TikToks have burned-in text only → `error-report: no_captions`).
Auto-caption support for TikTok is on the roadmap.

### FAQ

**Does it need API keys?** No. Public caption endpoints + oEmbed only.
**Do you store anything?** Runs write to your own Apify dataset; the Actor
stores nothing else.
**Robots/terms?** Publicly served caption data, no login, no personal data.
You are responsible for your use of the content you extract.

# Actor input Schema

## `urls` (type: `array`):

YouTube (watch / shorts / youtu.be / live) or TikTok video URLs.

## `languages` (type: `array`):

Priority order of ISO language codes, e.g. \["pl","en"]. If none match, the creator's original language is used.

## `allowAutoSubtitles` (type: `boolean`):

If the creator published no captions, use YouTube auto-captions (flagged as isAutoGenerated in output).

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

Add \[mm:ss] markers in markdown and start/end in the segments array.

## `maxUrls` (type: `integer`):

Safety cap: URLs beyond this count are skipped.

## `proxyConfiguration` (type: `object`):

The Actor works proxyless by default (cheap, fast). Only if you hit YouTube rate-limits, enable Apify Proxy — the RESIDENTIAL group reliably unblocks transcripts. Proxy usage is billed to your Apify account, not by this Actor.

## `autoProxyFallback` (type: `boolean`):

If direct fetches get rate-limited, retry via Apify RESIDENTIAL proxy (billed by Apify to your usage credits, typically $0.001-0.008 per rescued video; records using it are flagged viaProxy). Turn off for strictly proxyless runs.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=eiwqTqBRPeQ",
    "https://youtu.be/dQw4w9WgXcQ"
  ],
  "languages": [
    "pl",
    "en"
  ],
  "allowAutoSubtitles": true,
  "includeTimestamps": true,
  "maxUrls": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "autoProxyFallback": true
}
```

# Actor output Schema

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

Dataset items: source, videoId, url, title, channel, language, isAutoGenerated, segmentCount, segments\[], markdown, fetchedAt; error records contain url + error code.

# 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 = {
    "urls": [
        "https://www.youtube.com/watch?v=eiwqTqBRPeQ",
        "https://youtu.be/dQw4w9WgXcQ"
    ],
    "languages": [
        "pl",
        "en"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("murloc/transkryptor").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 = {
    "urls": [
        "https://www.youtube.com/watch?v=eiwqTqBRPeQ",
        "https://youtu.be/dQw4w9WgXcQ",
    ],
    "languages": [
        "pl",
        "en",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("murloc/transkryptor").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 '{
  "urls": [
    "https://www.youtube.com/watch?v=eiwqTqBRPeQ",
    "https://youtu.be/dQw4w9WgXcQ"
  ],
  "languages": [
    "pl",
    "en"
  ]
}' |
apify call murloc/transkryptor --silent --output-dataset

```

## MCP server setup

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

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/u6HOlAMSTQRyIOw5R/builds/5b0IsYb1kXtzHIOn1/openapi.json
