# TikTok AI Transcript Extractor (`dev00/tiktok-transcript-api`) Actor

Extract structured timestamped transcripts from TikTok URLs using AI speech-to-text.

- **URL**: https://apify.com/dev00/tiktok-transcript-api.md
- **Developed by:** [dev00](https://apify.com/dev00) (community)
- **Categories:** Social media, Videos
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 successful ai transcriptions

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## TikTok AI Transcript Extractor (Speech-to-Text & Timestamps)

Extract complete, structured transcripts from TikTok video URLs using high-performance AI speech-to-text. This Actor reverse-engineers advanced Automated Speech Recognition (ASR) pipelines to process video audio tracks, returning clean sentence-level paragraphs with exact millisecond timestamps.

Perfect for content repurposing, video summarization, automatic captioning/subtitles, social media monitoring, SEO search indexing, and LLM-ready text processing.

---

### ⚡ Key Features

1. **High-Fidelity AI Transcription:**
   Decodes audio tracks and converts spoken words into highly accurate text. Automatically detects spoken languages (English, Spanish, French, German, etc.).
   
2. **Sentence-Level Timestamps:**
   Splits transcripts into natural sentences with exact start times (`start_time_ms`), end times (`end_time_ms`), and calculated durations (`duration_seconds`) so you can align captions instantly.
   
3. **Enterprise Reliability:**
   Bypasses TikTok WAF challenge screens, stream restrictions, and network blocks.
   
4. **Clean JSON Format:**
   Filters out large, redundant trace files to present a structured payload containing only the metadata, title, duration, and transcript arrays.

---

### 📥 Input Parameter Schema
*   `url` (string, required): The target TikTok video URL to transcribe (e.g. `https://www.tiktok.com/@thrivetide/video/7281577182491725057`).

---

### 📤 Output Dataset Example (JSON)
When execution completes, each record is saved to the default Apify Dataset in the following format:

```json
{
  "status": "success",
  "video_title": "Do you have a gun? #podcast #podcastclips #women #donaldtrump #gunper...",
  "duration": 21,
  "language": "en",
  "transcription": {
    "full_text": "But do you have a gun? I have the license to have a gun. Yes, I do. Do you own one? Yes, I do. Do you use it? Gun range? It's none of your business. It's really none of your business. I have a license to have a gun. Gun control. What is, what are you talking about? Stronger background. Stronger background checks. Yes, I have a gun. And yes, I have a permit to have a gun.",
    "sentences": [
      {
        "text": "But do you have a gun?",
        "start_time_ms": 0,
        "end_time_ms": 1380,
        "duration_ms": 1380,
        "duration_seconds": 1.38
      },
      {
        "text": "I have the license to have a gun.",
        "start_time_ms": 1380,
        "end_time_ms": 3560,
        "duration_ms": 2180,
        "duration_seconds": 2.18
      },
      {
        "text": "Yes, I do.",
        "start_time_ms": 3560,
        "end_time_ms": 4160,
        "duration_ms": 600,
        "duration_seconds": 0.6
      },
      {
        "text": "Do you own one?",
        "start_time_ms": 4160,
        "end_time_ms": 5060,
        "duration_ms": 900,
        "duration_seconds": 0.9
      },
      {
        "text": "Yes, I do.",
        "start_time_ms": 5060,
        "end_time_ms": 6000,
        "duration_ms": 940,
        "duration_seconds": 0.94
      },
      {
        "text": "Do you use it?",
        "start_time_ms": 6000,
        "end_time_ms": 7280,
        "duration_ms": 1280,
        "duration_seconds": 1.28
      },
      {
        "text": "Gun range?",
        "start_time_ms": 7280,
        "end_time_ms": 8380,
        "duration_ms": 1100,
        "duration_seconds": 1.1
      },
      {
        "text": "It's none of your business.",
        "start_time_ms": 8380,
        "end_time_ms": 9500,
        "duration_ms": 1120,
        "duration_seconds": 1.12
      },
      {
        "text": "It's really none of your business.",
        "start_time_ms": 9500,
        "end_time_ms": 11160,
        "duration_ms": 1660,
        "duration_seconds": 1.66
      },
      {
        "text": "I have a license to have a gun.",
        "start_time_ms": 11160,
        "end_time_ms": 12920,
        "duration_ms": 1760,
        "duration_seconds": 1.76
      },
      {
        "text": "Gun control.",
        "start_time_ms": 12920,
        "end_time_ms": 13820,
        "duration_ms": 900,
        "duration_seconds": 0.9
      },
      {
        "text": "What is, what are you talking about?",
        "start_time_ms": 13820,
        "end_time_ms": 16059,
        "duration_ms": 2239,
        "duration_seconds": 2.24
      },
      {
        "text": "Stronger background.",
        "start_time_ms": 16059,
        "end_time_ms": 17240,
        "duration_ms": 1181,
        "duration_seconds": 1.18
      },
      {
        "text": "Stronger background checks.",
        "start_time_ms": 17240,
        "end_time_ms": 18620,
        "duration_ms": 1380,
        "duration_seconds": 1.38
      },
      {
        "text": "Yes, I have a gun.",
        "start_time_ms": 18620,
        "end_time_ms": 20000,
        "duration_ms": 1380,
        "duration_seconds": 1.38
      },
      {
        "text": "And yes, I have a permit to have a gun.",
        "start_time_ms": 20000,
        "end_time_ms": 21880,
        "duration_ms": 1880,
        "duration_seconds": 1.88
      }
    ]
  }
}
````

***

### ❓ Frequently Asked Questions (FAQ)

**Q1: How long does the transcription process take?**
A1: The extraction and AI speech-to-text transcription process typically takes between 30 to 90 seconds, depending on the video's length and current server load.

**Q2: How does the API prevent connection timeouts?**
A2: We use an HTTP connection keep-alive streaming system. The API immediately returns a 200 OK status and streams space characters (` `) every 3 seconds to keep the socket alive. Once transcription finishes, the clean JSON payload is outputted at the end of the stream. Standard JSON parsers automatically ignore leading whitespace.

**Q3: Does the API support multiple languages?**
A3: Yes! The ASR transcription engine automatically detects the language spoken in the video (English, Spanish, French, German, Arabic, etc.) and processes it with high accuracy.

**Q4: Do I need personal credentials or TikTok cookies to run searches?**
A4: No. The API operates fully autonomously. It bypasses WAF blocks and handles TikTok stream retrieval internally, requiring only a video URL.

**Q5: Can I paginate or request specific segments?**
A5: The API returns the full transcript segmented into individual sentences with exact timestamps, allowing you to easily index or slice specific segments on your client side.

***

### 🏷️ Keywords:

`tiktok transcript api`, `tiktok subtitles scraper`, `video audio transcriber`, `tiktok caption downloader`, `speech to text api`, `social video text extractor`, `content repurposing tool`, `podcast transcription api`.

# Actor input Schema

## `url` (type: `string`):

TikTok video URL to transcribe (e.g. https://www.tiktok.com/@thrivetide/video/7281577182491725057).

## Actor input object example

```json
{
  "url": "https://www.tiktok.com/@thrivetide/video/7281577182491725057"
}
```

# 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 = {
    "url": "https://www.tiktok.com/@thrivetide/video/7281577182491725057"
};

// Run the Actor and wait for it to finish
const run = await client.actor("dev00/tiktok-transcript-api").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 = { "url": "https://www.tiktok.com/@thrivetide/video/7281577182491725057" }

# Run the Actor and wait for it to finish
run = client.actor("dev00/tiktok-transcript-api").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "url": "https://www.tiktok.com/@thrivetide/video/7281577182491725057"
}' |
apify call dev00/tiktok-transcript-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dev00/tiktok-transcript-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok AI Transcript Extractor",
        "description": "Extract structured timestamped transcripts from TikTok URLs using AI speech-to-text.",
        "version": "1.0",
        "x-build-id": "7o0Ka8BWNMiJ4jIAi"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/dev00~tiktok-transcript-api/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-dev00-tiktok-transcript-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/dev00~tiktok-transcript-api/runs": {
            "post": {
                "operationId": "runs-sync-dev00-tiktok-transcript-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/dev00~tiktok-transcript-api/run-sync": {
            "post": {
                "operationId": "run-sync-dev00-tiktok-transcript-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "url"
                ],
                "properties": {
                    "url": {
                        "title": "TikTok Video URL",
                        "type": "string",
                        "description": "TikTok video URL to transcribe (e.g. https://www.tiktok.com/@thrivetide/video/7281577182491725057)."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
