TikTok Video Transcript
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://www.tiktok.com/@cutshall73/video/7543017294226558221",
"channel": "apify"
}
'import requests
url = "https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript"
payload = {
"video_url": "https://www.tiktok.com/@cutshall73/video/7543017294226558221",
"channel": "apify"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video_url: 'https://www.tiktok.com/@cutshall73/video/7543017294226558221',
channel: 'apify'
})
};
fetch('https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_url' => 'https://www.tiktok.com/@cutshall73/video/7543017294226558221',
'channel' => 'apify'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript"
payload := strings.NewReader("{\n \"video_url\": \"https://www.tiktok.com/@cutshall73/video/7543017294226558221\",\n \"channel\": \"apify\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://www.tiktok.com/@cutshall73/video/7543017294226558221\",\n \"channel\": \"apify\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_url\": \"https://www.tiktok.com/@cutshall73/video/7543017294226558221\",\n \"channel\": \"apify\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": [
{
"credits_remaining": "9997665621",
"id": "7543017294226558221",
"url": "https://www.tiktok.com/@cutshall73/video/7543017294226558221",
"transcript": "WEBVTT\n\n\n00:00:00.140 --> 00:00:01.600\nSay hi. Hi.\n\n00:00:01.700 --> 00:00:03.560\nSay. Say I'm alive.\n\n00:00:03.660 --> 00:00:06.280\nI'm alive. We're gonna do a little OOTD.\n\n00:00:07.460 --> 00:00:09.380\nI've got on my pretty,\n\n00:00:09.381 --> 00:00:14.401\ncute little cheetah print dress I got from my friend on Facebook.\n\n00:00:16.780 --> 00:00:18.460\nHair up in a clip. It's brush.\n\n00:00:18.461 --> 00:00:21.281\nNo makeup because I'm tired.\n\n00:00:21.580 --> 00:00:23.640\nI'm tired. Are you tired?\n\n00:00:24.140 --> 00:00:25.360\nSay, I'm alive.\n\n00:00:25.380 --> 00:00:27.480\nI'm alive! And I'm crazy.\n\n00:00:27.500 --> 00:00:28.300\nI'm crazy.\n\n00:00:28.820 --> 00:00:30.920\nSay bye. Bye.\n\n00:00:31.180 --> 00:00:31.980\nMwah! Mwah.\n\n00:00:32.660 --> 00:00:33.720\nSay hi, river.\n\n00:00:33.860 --> 00:00:35.280\nYou showing your lip gloss?\n"
}
],
"failed": false,
"success": true
}
TikTok
TikTok Video Transcript
Get TikTok video transcript.
POST
/
tiktok
/
video
/
transcript
TikTok Video Transcript
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://www.tiktok.com/@cutshall73/video/7543017294226558221",
"channel": "apify"
}
'import requests
url = "https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript"
payload = {
"video_url": "https://www.tiktok.com/@cutshall73/video/7543017294226558221",
"channel": "apify"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video_url: 'https://www.tiktok.com/@cutshall73/video/7543017294226558221',
channel: 'apify'
})
};
fetch('https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_url' => 'https://www.tiktok.com/@cutshall73/video/7543017294226558221',
'channel' => 'apify'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript"
payload := strings.NewReader("{\n \"video_url\": \"https://www.tiktok.com/@cutshall73/video/7543017294226558221\",\n \"channel\": \"apify\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://www.tiktok.com/@cutshall73/video/7543017294226558221\",\n \"channel\": \"apify\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mavi-backend.memories.ai/serve/api/v2/tiktok/video/transcript")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_url\": \"https://www.tiktok.com/@cutshall73/video/7543017294226558221\",\n \"channel\": \"apify\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": [
{
"credits_remaining": "9997665621",
"id": "7543017294226558221",
"url": "https://www.tiktok.com/@cutshall73/video/7543017294226558221",
"transcript": "WEBVTT\n\n\n00:00:00.140 --> 00:00:01.600\nSay hi. Hi.\n\n00:00:01.700 --> 00:00:03.560\nSay. Say I'm alive.\n\n00:00:03.660 --> 00:00:06.280\nI'm alive. We're gonna do a little OOTD.\n\n00:00:07.460 --> 00:00:09.380\nI've got on my pretty,\n\n00:00:09.381 --> 00:00:14.401\ncute little cheetah print dress I got from my friend on Facebook.\n\n00:00:16.780 --> 00:00:18.460\nHair up in a clip. It's brush.\n\n00:00:18.461 --> 00:00:21.281\nNo makeup because I'm tired.\n\n00:00:21.580 --> 00:00:23.640\nI'm tired. Are you tired?\n\n00:00:24.140 --> 00:00:25.360\nSay, I'm alive.\n\n00:00:25.380 --> 00:00:27.480\nI'm alive! And I'm crazy.\n\n00:00:27.500 --> 00:00:28.300\nI'm crazy.\n\n00:00:28.820 --> 00:00:30.920\nSay bye. Bye.\n\n00:00:31.180 --> 00:00:31.980\nMwah! Mwah.\n\n00:00:32.660 --> 00:00:33.720\nSay hi, river.\n\n00:00:33.860 --> 00:00:35.280\nYou showing your lip gloss?\n"
}
],
"failed": false,
"success": true
}
Product: Visual Intelligence — Social Media Scraping
Use case: Fetch video metadata, transcripts, captions, and comments from YouTube, Instagram, TikTok, and Twitter/X
Host:
https://mavi-backend.memories.ai/serve/api/v2
Auth: Authorization: sk-mavi-... (no Bearer prefix)Channel routing guide: see Social Media Scraping Overview. Endpoints with a
channel request field let you choose apify, rapid, or memories.ai; endpoints without this field use managed routing.Pricing:
- rapid channel: $0.01 per video
- memories.ai channel: $0.01 per video
- apify channel: Charged at Apify’s actual cost (higher and variable pricing)
Code Example
import requests
BASE_URL = "https://mavi-backend.memories.ai/serve/api/v2"
API_KEY = "sk-mavi-..."
HEADERS = {
"Authorization": f"{API_KEY}"
}
def tiktok_video_transcript(video_url: str, channel: str):
url = f"{BASE_URL}/tiktok/video/transcript"
data = {"video_url": video_url, "channel": channel}
resp = requests.post(url, headers=HEADERS, json=data)
return resp.json()
# Usage example
result = tiktok_video_transcript("https://www.tiktok.com/@cutshall73/video/7543017294226558221", "apify")
print(result)
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| video_url | string | Yes | The TikTok video URL |
| channel | string | Yes | The channel name. Supported values: apify, rapid, memories.ai |
Response
Response shape depends on the
channel parameter — same channel-dependent split as the other scraping endpoints. Verified live:channel: "apify"—datais an array with one item:{success, credits_remaining, id, url, transcript}. The example below is this shape.channel: "memories.ai"—datais an object:{status, data}(TikTok’s native response).channel: "rapid"— same alternative shape asmemories.ai.
{
"code": 200,
"msg": "success",
"data": [
{
"credits_remaining": "9997665621",
"id": "7543017294226558221",
"url": "https://www.tiktok.com/@cutshall73/video/7543017294226558221",
"transcript": "WEBVTT\n\n\n00:00:00.140 --> 00:00:01.600\nSay hi. Hi.\n\n00:00:01.700 --> 00:00:03.560\nSay. Say I'm alive.\n\n00:00:03.660 --> 00:00:06.280\nI'm alive. We're gonna do a little OOTD.\n\n00:00:07.460 --> 00:00:09.380\nI've got on my pretty,\n\n00:00:09.381 --> 00:00:14.401\ncute little cheetah print dress I got from my friend on Facebook.\n\n00:00:16.780 --> 00:00:18.460\nHair up in a clip. It's brush.\n\n00:00:18.461 --> 00:00:21.281\nNo makeup because I'm tired.\n\n00:00:21.580 --> 00:00:23.640\nI'm tired. Are you tired?\n\n00:00:24.140 --> 00:00:25.360\nSay, I'm alive.\n\n00:00:25.380 --> 00:00:27.480\nI'm alive! And I'm crazy.\n\n00:00:27.500 --> 00:00:28.300\nI'm crazy.\n\n00:00:28.820 --> 00:00:30.920\nSay bye. Bye.\n\n00:00:31.180 --> 00:00:31.980\nMwah! Mwah.\n\n00:00:32.660 --> 00:00:33.720\nSay hi, river.\n\n00:00:33.860 --> 00:00:35.280\nYou showing your lip gloss?\n"
}
],
"failed": false,
"success": true
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code indicating the result status |
| msg | string | Response message describing the operation result |
| data | array[object] | Array containing transcript data objects |
| data[].credits_remaining | string | Remaining API credits |
| data[].id | string | TikTok video ID |
| data[].url | string | TikTok video URL |
| data[].transcript | string | Video transcript in WEBVTT format with timing information |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
Authorizations
Body
application/json
Response
200 - application/json
Video transcript in WEBVTT format
Response code indicating the result status
Example:
200
Response message describing the operation result
Example:
"success"
Array containing transcript data objects
Show child attributes
Show child attributes
Indicates whether the operation was successful
Example:
true
Indicates whether the operation failed
Example:
false
⌘I
