# Best Tiktok Ai Transcript Extractor (`sian.agency/best-tiktok-ai-transcript-extractor`) Actor

TikTok transcript and metadata extractor. Returns AI transcription with SRT and VTT subtitles, timestamped segments and speaker diarization, plus 45 data fields per video — views, likes, creator stats, hashtags, music, location and content categories.

- **URL**: https://apify.com/sian.agency/best-tiktok-ai-transcript-extractor.md
- **Developed by:** [SIÁN OÜ](https://apify.com/sian.agency) (community)
- **Categories:** AI, Social media, Automation
- **Stats:** 870 total users, 158 monthly users, 99.7% runs succeeded, 22 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 - Extract Speech-to-Text Transcripts from Videos 🚀

[![SIÁN Agency Store](https://img.shields.io/badge/Store-SI%C3%81N%20Agency-97cc64)](https://apify.com/sian.agency?fpr=sian)
[![Instagram AI Transcript Extractor](https://img.shields.io/badge/Store-Instagram%20AI%20Transcript%20Extractor-E4405F)](https://apify.com/sian.agency/instagram-ai-transcript-extractor?fpr=sian)
[![Incredibly Fast Audio Transcriber](https://img.shields.io/badge/Store-Incredibly%20Fast%20Audio%20Transcriber-FF6B35)](https://apify.com/sian.agency/incredibly-fast-audio-transcriber?fpr=sian)
[![YouTube Shorts AI Transcript Extractor](https://img.shields.io/badge/Store-YouTube%20Shorts%20AI%20Transcript%20Extractor-FF0000)](https://apify.com/sian.agency/youtube-shorts-ai-transcript-and-metadata-extractor?fpr=sian)

#### 🎉 NEW: 💬 Comment extraction — grab the pinned comment (where recipes, links & details live) alongside the transcript. Plus built-in English translation, watermark-free downloads & 3x faster processing!

##### Built for recipe & content apps, social media analysts, and agencies analyzing international short-form content

⚡ **Transform TikTok videos into searchable data** - Extract AI-powered transcripts with 99%+ accuracy and 40+ comprehensive data fields including engagement metrics, creator information, hashtags, music details, and video metadata.

**Perfect for:** Content researchers, social media analysts, competitor monitoring, viral script extraction, trend tracking, and automated content workflow automation.

***

### 🔎 What is the TikTok AI Transcript Extractor — and when should you use it?

The **TikTok AI Transcript Extractor** turns public TikTok videos and their spoken audio into clean, structured rows you can filter, export and feed straight into a spreadsheet, database or AI agent. No account, no portal API key, no browser automation to maintain.

**Use it when you need:** the spoken transcript with speaker labels and word-level timestamps, plus SRT and WebVTT subtitle files you can load straight into a video editor. Rows carry the view, like, comment, share and bookmark counts, the creator's handle, bio, follower and video counts, and the caption, hashtags, music title and artist. You also get video duration and resolution, content categories, POI name and address, and watermark-free download URLs.

**Use something else when:** the video lives on another platform. Use [Instagram AI Transcript Extractor](https://apify.com/sian.agency/instagram-ai-transcript-extractor?fpr=sian) for Instagram reels and video posts, including whole-profile scraping by username. Use [YouTube AI Transcript Extractor](https://apify.com/sian.agency/youtube-ai-transcript-extractor?fpr=sian) for YouTube long-form videos, Shorts and live streams. Use [Facebook Video & Reel AI Transcript Extractor](https://apify.com/sian.agency/facebook-ai-transcript-extractor?fpr=sian) for Facebook videos and Reels. Only public TikTok videos work; private and deleted ones are skipped and flagged in the status field, and the run continues with the rest of the batch.

### 🤖 Use with AI agents

Already connected to the [Apify MCP server](https://mcp.apify.com)? Just ask for this Actor by name: sian.agency/best-tiktok-ai-transcript-extractor

**Your agent can pay for its own runs.** This Actor is eligible for [agentic payments](https://docs.apify.com/platform/actors/publishing/monetize), so an agent can discover it, run it and settle the bill over [x402](https://www.x402.org/) (USDC on Base) or [Skyfire](https://www.skyfire.xyz/) — without an Apify account or API token of its own. Billing is the same either way: per successful row, never for errors.

Otherwise copy this prompt into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```text
I want transcripts and metadata from TikTok videos using the Apify Actor `sian.agency/best-tiktok-ai-transcript-extractor`.

Use it when I need: the spoken transcript with speaker labels and word-level timestamps, plus SRT and WebVTT subtitle files you can load straight into a video editor. Rows carry the view, like, comment, share and bookmark counts, the creator's handle, bio, follower and video counts, and the caption, hashtags, music title and artist. You also get video duration and resolution, content categories, POI name and address, and watermark-free download URLs.

Don't use it when: the video lives on another platform — use instagram-ai-transcript-extractor or youtube-ai-transcript-extractor or facebook-ai-transcript-extractor instead.

How to call it: give `tiktokUrl` for one video or `bulkUrls` for a batch (full links, `vm.tiktok.com` short links and mobile URLs all resolve). Set `translateToEnglish: true` to get the transcript, segments and SRT/VTT subtitles in English, and `includeComments: true` on a paid plan to also return `comments`, `pinnedComments` and `creatorComments`.

Start with this input:
{
  "tiktokUrl": "https://www.tiktok.com/@thatdudecancook/video/7649086431641521421",
  "translateToEnglish": false,
  "includeComments": false
}

Ask me which TikTok video URLs to process, and whether the transcript should be translated to English, then run the Actor and summarise the results as a table.
```

**Things you can ask your agent for:**

- *Pull the full recipe from this cooking TikTok, including what the creator pinned in the comments.*
- *Transcribe these 20 TikTok URLs and list the opening hook each one uses.*
- *Translate a batch of Spanish TikToks into English and export the SRT files for subtitling.*

Machine-readable API, MCP config and OpenAPI definition for this Actor are published at [apify.com/sian.agency/best-tiktok-ai-transcript-extractor.md](https://apify.com/sian.agency/best-tiktok-ai-transcript-extractor.md).

### 🚀 Quick Start

1. **Copy TikTok URL** - Paste any TikTok video link (vm.tiktok.com, mobile, or desktop URLs)
2. **Run Actor** - Single URL or bulk processing (100+ videos)
3. **Get Results** - Complete transcript + 40+ data fields in JSON/CSV format

**Start extracting TikTok content in minutes!**

***

### 💡 Success Tips

- **Bulk Processing**: Process unlimited TikTok videos with PAID tier for large-scale content analysis
- **URL Formats**: All TikTok URL formats supported (short links, mobile, desktop)
- **Data Quality**: 4-level validation ensures accurate transcripts and metadata
- **Export Options**: JSON for APIs, CSV for spreadsheets, direct webhook delivery

***

### 🚀 Features

- ✅ **AI-Powered Transcription**: 99%+ accuracy speech-to-text with speaker diarization and word-level timestamps
- 🌍 **NEW — English Translation**: One toggle translates any spoken language to English — transcript, segments, and subtitles included
- 📥 **NEW — Watermark-Free Downloads**: Clean, directly usable video download URLs in every result
- 💬 **NEW — Comments (PAID add-on)**: Grabs the video's comments — pinned ones first (where recipes, links, and key details often live) — plus the creator's own
- 🎯 **Tier-Based Processing**:
  - **PAID**: Unlimited videos, instant processing, bulk operations
  - **FREE**: Test with 5 videos, full feature access, same quality
- ⚡ **Bulk Processing**: Handle 100+ TikTok videos in a single run
- 📊 **40+ Data Fields**: Comprehensive extraction including views, likes, comments, shares, creator info, hashtags, music metadata, video specs, and download URLs
- 📜 **SRT & VTT Subtitles**: Ready-to-use subtitle files generated for every video
- 🔍 **All URL Formats**: Supports tiktok.com, vm.tiktok.com short links, mobile URLs
- 🛡️ **Built-In Redundancy**: Automatic fallback data sources keep success rates high even when TikTok changes
- 🔄 **Webhook Integration**: Direct delivery to your automation workflows

***

### 📋 Input

#### Single TikTok Video

```json
{
  "tiktokUrl": "https://www.tiktok.com/@username/video/1234567890"
}
```

#### Bulk TikTok Videos

```json
{
  "bulkUrls": [
    "https://www.tiktok.com/@user1/video/1234567890",
    "https://vm.tiktok.com/ZM6abc123/",
    "https://www.tiktok.com/@user2/video/0987654321"
  ]
}
```

**Or upload a text file** with TikTok URLs (one per line or comma-separated).

#### 🌍 Translate to English (NEW)

```json
{
  "tiktokUrl": "https://www.tiktok.com/@username/video/1234567890",
  "translateToEnglish": true
}
```

Works with any spoken language — Spanish, German, Japanese, Arabic, and 90+ more. The transcript, segments, and SRT/VTT subtitles all come back in English, while the original caption and hashtags stay untouched.

#### 💬 Include Pinned & Creator Comments (NEW, add-on)

```json
{
  "tiktokUrl": "https://www.tiktok.com/@username/video/1234567890",
  "includeComments": true
}
```

**Paid plans only.** Some creators put the full recipe, links, or key details only in a **pinned comment** — not the caption or the spoken video. Enable `includeComments` to return the video's `comments` (pinned ones first, then top comments — each with text, author, like count, and pinned/creator flags), plus ready-made `pinnedComments` and `creatorComments` shortlists. A small add-on fee applies **only** when enabled and the video has comments — transcript-only runs cost nothing extra.

**Supported URL Formats:**

- Full links: `https://www.tiktok.com/@username/video/1234567890`
- Short links: `https://vm.tiktok.com/ZM6abc123/`
- Mobile URLs: All mobile TikTok formats

***

### 📊 Output

Results are saved to the Apify dataset with comprehensive TikTok data:

```json
{
  "transcript": "Complete AI-generated transcript of the TikTok video content...",
  "segments": [
    {
      "id": 0,
      "text": "First segment of the video...",
      "start": 0.08,
      "end": 6.82,
      "language": "en",
      "speaker": "SPEAKER_00",
      "words": [
        {
          "word": "First",
          "start": 0.08,
          "end": 0.36,
          "speaker": "SPEAKER_00"
        }
      ]
    }
  ],
  "coverImageUrl": "https://...",
  "viewsCount": 485000,
  "likesCount": 25420,
  "commentsCount": 892,
  "sharesCount": 1543,
  "collectCount": "11719",
  "videoDescription": "Original video caption and description text",
  "tiktokUrl": "https://www.tiktok.com/@username/video/1234567890",
  "hashtags": "#viral #trending #howto",
  "comments": [
    { "text": "Full recipe is pinned below! 👇 2 cups flour...", "author": "creatorname", "likes": 1240, "isPinned": true, "isCreator": true },
    { "text": "Making this tonight!", "author": "fan_123", "likes": 18, "isPinned": false, "isCreator": false }
  ],
  "pinnedComments": [
    { "text": "Full recipe is pinned below! 👇 2 cups flour...", "author": "creatorname", "likes": 1240, "isPinned": true, "isCreator": true }
  ],
  "creatorComments": [],
  "diversificationLabels": "Home & Garden, Daily Life, Lifestyle",
  "musicTitle": "Original Sound - Username",
  "musicAuthor": "Creator Name",
  "isOriginalSound": true,
  "videoDuration": 45,
  "fileSize": 54445201,
  "authorDisplayName": "Creator Display Name",
  "authorUsername": "@username",
  "authorId": "123456789",
  "authorBio": "Creator's profile biography text",
  "authorVerified": false,
  "followerCount": 150300,
  "authorHeartCount": 771500,
  "authorVideoCount": 56,
  "videoId": "1234567890",
  "videoHeight": 1920,
  "videoWidth": 1080,
  "textLanguage": "en",
  "locationCreated": "US",
  "isAd": false,
  "poiName": "Houston",
  "poiAddress": "Texas, United States",
  "scrapingDate": "2026-04-03",
  "srtSubtitles": "1\n00:00:00,080 --> 00:00:06,820\nFirst segment of the video...",
  "vttSubtitles": "WEBVTT\n\n1\n00:00:00.080 --> 00:00:06.820\nFirst segment of the video...",
  "createTime": "2026-01-31 01:58",
  "processedAt": "2026-04-03T14:25:30.000Z",
  "status": "success",
  "shareUrl": "https://www.tiktok.com/@username/video/1234567890",
  "downloadUrl": "https://...",
  "downloadUrlNoWatermark": "https://...",
  "playUrl": "https://...",
  "musicUrl": "https://..."
}
```

**40+ Data Fields Including:**

- 🤖 AI transcript with speaker diarization and word-level timestamps
- 📸 Cover image URL
- 📊 Engagement metrics (views, likes, comments, shares, bookmarks)
- 👤 Creator information (name, username, ID, bio, verified status)
- 👥 Creator stats (followers, total likes, video count)
- 🎵 Music metadata (title, artist, original sound)
- 📝 Video details (description, hashtags, duration, file size)
- 🏷️ Content classification (categories, language, ad detection)
- 📍 Location data (country, POI name, POI address)
- 🎥 Technical specs (resolution, dimensions)
- 📥 Watermark-free download URLs
- 📜 SRT & VTT subtitles for video editing
- 🌍 Optional English translation of the full transcript

***

### 💰 Pricing & Performance

#### FREE Tier (Testing & Learning)

- **Processing**: 5 TikTok videos per run
- **Speed**: 8-second delay between videos
- **Features**: Full feature access, same 99%+ accuracy as PAID
- **Cost**: No credit card required

#### PAID Tier (Production Ready)

- **Processing**: Unlimited TikTok videos per run
- **Speed**: Instant processing, no delays
- **Features**: Priority processing, higher throughput, bulk operations
- **Cost**: Pay-per-event pricing

#### Performance

- **Accuracy**: 99%+ transcription precision
- **Speed**: Sequential processing with configurable delays
- **Reliability**: 4-level validation ensures data quality
- **Scalability**: Automatic scaling for large batches

***

### 💡 Use Cases

#### 1. Content Research & Analysis

Extract transcripts from 100+ TikTok videos to analyze trending topics, viral scripts, and content patterns. Build searchable transcript databases for SEO and content strategy research. Save 15+ hours weekly of manual transcription.

#### 2. Competitor Monitoring

Track competitor content at scale. Monitor their video topics, engagement metrics, hashtags, and posting frequency. Get AI transcripts to understand messaging strategies without watching every video. Analyze 50+ competitors automatically.

#### 3. Social Media Analytics

Build comprehensive TikTok analytics dashboards. Correlate transcripts with engagement metrics to identify high-performing content types. Export to visualization tools (Tableau, Power BI) for client reporting. Process 1000+ videos daily.

#### 4. Viral Script Extraction

Identify viral content patterns by extracting successful video scripts. Analyze transcript structure, hooks, and calls-to-action that drive engagement. Build swipe file of proven scripts. Access 500+ viral scripts in minutes.

#### 5. Trend Monitoring & Alerts

Monitor TikTok trends by processing video transcripts for keywords, hashtags, and topics. Set up webhook alerts for emerging trends in your niche. Track hashtag performance and music usage. Analyze 1000+ videos per trend cycle.

#### 6. Content Repurposing

Extract transcripts to repurpose TikTok content into blog posts, LinkedIn articles, or email newsletters. Automatically generate subtitles for video editing. Transform short-form video content into long-form written content 10x faster.

#### 7. International Content Analysis 🌍

Research viral TikTok content from any market without language barriers. Enable English translation to analyze Spanish, German, Japanese, or Korean creators alongside English ones — one searchable English transcript database across all markets. Perfect for global brands and cross-market trend research.

***

### ❓ Frequently Asked Questions

#### **What does this actor do?**

This actor extracts AI-powered transcripts from TikTok videos along with 40+ data fields including engagement metrics, creator information, hashtags, music details, and video metadata. It converts short-form video content into searchable text data.

#### **Can it translate videos to English?**

Yes! Set `translateToEnglish: true` and the transcript, segments, and SRT/VTT subtitles come back in English, no matter what language is spoken in the video. The detected original language is still reported in the `textLanguage` field, and the video's caption and hashtags stay in their original language.

#### **Can it grab the pinned comment?**

Yes. Set `includeComments: true` and the actor returns the creator's pinned comment(s) and their own comments in the `pinnedComments` and `creatorComments` fields. This is ideal when a video is music-only or the caption is empty but the full recipe, links, or details are in a pinned comment. It's a small add-on, charged only when enabled and at least one comment is found.

#### **What's the difference between FREE and PAID tiers?**

- **FREE Tier**: Process 5 TikTok videos per run with 8-second delays. Perfect for testing and learning.
- **PAID Tier**: Unlimited video processing with instant processing and no delays. Best for production use and bulk operations.

#### **What URL formats are supported?**

All TikTok URL formats work:

- Full links: `https://www.tiktok.com/@username/video/1234567890`
- Short links: `https://vm.tiktok.com/ZM6abc123/`
- Mobile URLs: All mobile TikTok formats

#### **How accurate are the transcripts?**

The actor achieves 99%+ transcription accuracy using state-of-the-art speech-to-text AI. It includes 4-level validation (input, response, structure, completeness) to ensure data quality.

#### **Can I process multiple videos at once?**

Yes! The actor supports bulk processing of 100+ videos in a single run. Simply upload a text file with URLs (one per line) or use the `bulkUrls` input field. PAID tier is recommended for large-scale processing.

#### **How long does processing take?**

Processing time varies by video length, but typically ranges from 10-30 seconds per video. FREE tier includes 8-second delays between videos, while PAID tier processes instantly.

#### **What output formats are available?**

Results are provided in JSON format with 40+ data fields. You can export to:

- JSON (for APIs and databases)
- CSV (for spreadsheets and analysis)
- Direct webhook delivery to your automation workflows

#### **Do I need technical skills to use this?**

No! Simply:

1. Copy a TikTok URL
2. Paste it into the actor
3. Run the actor
4. Get your transcript and data

Advanced users can integrate with webhooks and APIs for automation.

#### **Can I use this for commercial purposes?**

Yes! The actor is perfect for:

- Content research and analysis
- Competitor monitoring
- Social media analytics
- Trend tracking
- Content repurposing

Just ensure you comply with TikTok's Terms of Service and applicable data protection laws.

#### **What happens if a video is private or deleted?**

The actor will skip private or deleted videos and continue processing the remaining URLs. The status field will indicate any errors, and you'll still receive results for all successfully processed videos.

#### **How long is my data stored?**

Your extracted data is stored in Apify Datasets according to Apify's retention policy. You can export your data at any time in JSON or CSV format for permanent storage.

#### **Is there a limit on how many videos I can process?**

- **FREE tier**: 5 videos per run
- **PAID tier**: Unlimited videos per run

There's no limit on the number of runs you can perform.

***

### ⚖️ Is it legal to scrape TikTok data?

This actor extracts publicly available TikTok video data and transcriptions. It does not access private profiles or extract private user information such as email addresses, phone numbers, or private messages.

However, you should be aware that your results could contain personal data (e.g., usernames, display names). Personal data is protected by the **GDPR** in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

You can also read Apify's blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

**Important:** This actor is intended for ethical use cases such as public content research, competitive analysis, and trend monitoring. Respect TikTok's Terms of Service and applicable data protection laws.

***

### 📚 Documentation

- [Apify Actors Documentation](https://docs.apify.com/actors)
- [Apify Dataset Documentation](https://docs.apify.com/storage/dataset)
- [Webhook Integration Guide](https://docs.apify.com/actors/running/webhooks)

***

### 🤝 Support

- [![Telegram Support](https://img.shields.io/badge/Telegram-Support%20Group-0088cc?logo=telegram)](https://t.me/+vyh1sRE08sAxMGRi) **Join our active support community**
- For issues or questions, please open an issue in the actor's repository
- 📧 <apify@sian-agency.online>
- Check [SIÁN Agency Store](https://apify.com/sian.agency?fpr=sian) for more automation tools

***

### 🗝️ Keywords

TikTok scraper, TikTok transcript extractor, TikTok video downloader, TikTok API alternative, TikTok data export, TikTok to CSV, TikTok to JSON, bulk TikTok download, TikTok content analysis, TikTok analytics, TikTok hashtag extractor, TikTok engagement metrics, TikTok automation, TikTok transcription, TikTok speech to text, TikTok video metadata, TikTok trend analysis, social media automation, content scraping, video transcription API, TikTok translation, translate TikTok to English, TikTok video translator, TikTok subtitles generator, TikTok SRT subtitles, TikTok watermark free download, TikTok no watermark, international TikTok research, multilingual video transcription, TikTok speaker diarization, TikTok comments scraper, TikTok comment extractor, extract TikTok comments, TikTok pinned comment, pinned comment extraction, TikTok creator comments, recipe from TikTok comments, TikTok comment scraper API

# Actor input Schema

## `tiktokUrl` (type: `string`):

Paste any TikTok video URL (full links, vm.tiktok.com short URLs, mobile formats). Short URLs are automatically resolved. Only public videos supported.

## `bulkUrls` (type: `array`):

Process multiple TikTok videos in batch. Free tier: 5 reels/run | Paid tier: Unlimited reels/run (sequential, no delays). Use text file upload or paste URLs (line breaks or comma-separated). Free tier: 8s delay between reels | Paid tier: No delays

## `translateToEnglish` (type: `boolean`):

Translate the spoken content to English: transcript, segments, and SRT/VTT subtitles. Video metadata (caption, hashtags, music info) always stays in its original language. Leave off to get the transcript in the language spoken in the video.

## `includeComments` (type: `boolean`):

🔒 PAID PLANS ONLY — requires a paid Apify plan. Free-tier runs return the transcript only (no comments, no charge).

Some creators put the full recipe, links, or key details only in a PINNED comment — not the caption or the video. Enable this to extract the video's comments (pinned ones first, then top comments), each tagged with author, likes, and pinned/creator flags. You also get ready-made pinnedComments and creatorComments shortlists. Adds a small per-video fee only when enabled and the video has comments. Leave off for transcript-only runs at no extra cost.

## Actor input object example

```json
{
  "tiktokUrl": "https://www.tiktok.com/@thatdudecancook/video/7649086431641521421",
  "translateToEnglish": false,
  "includeComments": false
}
```

# Actor output Schema

## `tiktokVideos` (type: `string`):

Processed TikTok content with AI-generated transcripts, engagement metrics, creator details, and video metadata

## `scrapingSummary` (type: `string`):

HTML summary showing successful and failed results with key metrics, creator information, and processing statistics

# 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 = {
    "tiktokUrl": "https://www.tiktok.com/@thatdudecancook/video/7649086431641521421"
};

// Run the Actor and wait for it to finish
const run = await client.actor("sian.agency/best-tiktok-ai-transcript-extractor").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 = { "tiktokUrl": "https://www.tiktok.com/@thatdudecancook/video/7649086431641521421" }

# Run the Actor and wait for it to finish
run = client.actor("sian.agency/best-tiktok-ai-transcript-extractor").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 '{
  "tiktokUrl": "https://www.tiktok.com/@thatdudecancook/video/7649086431641521421"
}' |
apify call sian.agency/best-tiktok-ai-transcript-extractor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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