# Importly Transcript (`importly/importly-transcript`) Actor

Get the transcript of any video or audio link with timestamped segments: YouTube, TikTok, X, Instagram, podcasts and 1,000+ other sites. Uses captions when there are any and speech-to-text when there are none. Free to try, no card required.

- **URL**: https://apify.com/importly/importly-transcript.md
- **Developed by:** [Importly](https://apify.com/importly) (community)
- **Categories:** Videos, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Importly Transcript

Get the transcript of any video or audio link: the full text plus timestamped segments, from YouTube, TikTok, X, Instagram, podcasts and 1,000+ other sites. When a video has captions you get those; when it has none, it's transcribed with speech-to-text, so every link comes back with a transcript.

### Why use it

Transcript scrapers break in two ways. Many videos have no captions at all (most TikToks, Instagram reels and podcast episodes), so a captions-only tool returns nothing. And sites block caption and media requests from cloud servers, so the scraper that worked last week fails on Apify or in production. Importly Transcript handles both: send links, get transcripts.

[Importly](https://www.importly.io) is free to try, no card required. [Get your API key](https://www.importly.io/?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors), paste it into the input, and run.

### What you can do with it

- Feed YouTube or podcast transcripts into an LLM, a RAG index or a vector database
- Build searchable archives of a channel's videos, with timestamps that link back to the moment
- Turn TikTok and Instagram videos without captions into text for research or content analysis
- Summarize, translate or clip long videos from their timestamped segments

### Input

| Field | What it does |
| --- | --- |
| **Links** | One or more video or audio page links |
| **Importly API key** | Your key from [importly.io](https://www.importly.io/?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors). Stored as a secret |
| **Transcript source** | `auto` (default): captions, or speech-to-text when there are none. `captions`: captions only. `ai`: always speech-to-text |
| **Language** | Two-letter code such as `en`, `es` or `de`. English when empty |
| **Include timestamped segments** | Adds `segments` (start, end, text) to each item. On by default |
| **Max cost per link** | Optional cap in dollars for speech-to-text. A link that would cost more fails instead of running |
| **Timeout per link**, **Links at once** | Run settings |

Example input:

```json
{
	"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
	"apiKey": "imp_live_...",
	"mode": "auto",
	"language": "en"
}
```

### Output

One dataset item per link:

```json
{
	"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
	"status": "completed",
	"jobId": "95be812f-4a2c-410a-9fcb-3ca5b445cc44",
	"text": "All right, so here we are, in front of the elephants\nthe cool thing about these guys is that they have really...\n...",
	"language": "en",
	"duration": 19,
	"source": "captions",
	"captionKind": "manual",
	"segments": [
		{ "start": 1.2, "end": 3.36, "text": "All right, so here we are, in front of the elephants" },
		{ "start": 5.318, "end": 7.974, "text": "the cool thing about these guys is that they have really..." }
	],
	"costInDollars": 0.003
}
```

`source` is `captions` or `speech-to-text`; `captionKind` says whether the captions were uploaded with the video (`manual`) or generated by the platform (`auto`). A link that fails (removed, private, no captions with **Captions only**) gets an item with `"status": "failed"`, an `errorCode`, a plain-English `error` and a `documentationUrl`; the other links still run. A wrong API key or an empty balance stops the run with a message saying what to fix. Run it without a key and you get one item with `"status": "api_key_required"` and a link to get one.

### Pricing

The Actor is free. Transcripts are billed to your Importly credits: $0.003 per video from captions, $0.01 per minute of media with speech-to-text. Failed transcripts are refunded. Apify bills only the small platform usage of the run. See [Importly pricing](https://www.importly.io/pricing?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors).

### Building an app?

The same API key works with the [Importly REST API](https://www.importly.io/docs?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors), so your backend can get transcripts directly, with webhooks when each one is ready. The other Importly Actors: [Importly Download](https://apify.com/importly/importly-download) and [Importly Metadata](https://apify.com/importly/importly-metadata).

Source: [github.com/importly-io/importly-integrations](https://github.com/importly-io/importly-integrations/tree/main/apify). Questions: support@importly.io.

# Actor input Schema

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

Video or audio page links, one per line: YouTube, TikTok, X, Instagram, podcast episodes and 1,000+ other sites. You get one dataset item per link with the transcript text and timestamped segments.

## `apiKey` (type: `string`):

Your Importly API key (starts with imp_live\_), needed to run. No key yet? <a href="https://www.importly.io/?utm_source=apify&utm_medium=store&utm_campaign=apify-actors" target="_blank">Sign up at importly.io</a>, free to try with no card required, then copy the key from <a href="https://www.importly.io/dashboard/api-key" target="_blank">the API key page</a>. Usage is billed to your Importly credits.

## `mode` (type: `string`):

Captions cost $0.003 per video. Speech-to-text, for videos and podcasts without captions, costs $0.01 per minute of media.

## `language` (type: `string`):

Two-letter language code, e.g. en, es or de. Picks the caption track and the speech-to-text language. English when empty.

## `includeSegments` (type: `boolean`):

Add segments (start, end, text) to each item, besides the full text.

## `maxCostDollars` (type: `string`):

Optional cap in dollars for each link, e.g. 0.50. A link whose speech-to-text would cost more fails with MAX_COST_EXCEEDED instead of running.

## `timeoutSecs` (type: `integer`):

How long to wait for each link. A job that runs longer keeps going on Importly; the item gets its jobId so you can read the result later.

## `maxConcurrency` (type: `integer`):

How many links to process in parallel.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "mode": "auto",
  "includeSegments": true,
  "timeoutSecs": 900,
  "maxConcurrency": 3
}
```

# Actor output Schema

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

One item per link, in the order they finished.

# 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=jNQXAC9IVRw"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("importly/importly-transcript").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=jNQXAC9IVRw"] }

# Run the Actor and wait for it to finish
run = client.actor("importly/importly-transcript").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=jNQXAC9IVRw"
  ]
}' |
apify call importly/importly-transcript --silent --output-dataset

```

## MCP server setup

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

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/ZegrSwhyztYnFawSH/builds/M4nY7sfFrwSOwoXxZ/openapi.json
