Twitter Video Transcript
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/twitter/video/transcript \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://x.com/NBCOlympics/status/1989901761650323606",
"channel": "apify"
}
'import requests
url = "https://mavi-backend.memories.ai/serve/api/v2/twitter/video/transcript"
payload = {
"video_url": "https://x.com/NBCOlympics/status/1989901761650323606",
"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://x.com/NBCOlympics/status/1989901761650323606',
channel: 'apify'
})
};
fetch('https://mavi-backend.memories.ai/serve/api/v2/twitter/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/twitter/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://x.com/NBCOlympics/status/1989901761650323606',
'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/twitter/video/transcript"
payload := strings.NewReader("{\n \"video_url\": \"https://x.com/NBCOlympics/status/1989901761650323606\",\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/twitter/video/transcript")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://x.com/NBCOlympics/status/1989901761650323606\",\n \"channel\": \"apify\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mavi-backend.memories.ai/serve/api/v2/twitter/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://x.com/NBCOlympics/status/1989901761650323606\",\n \"channel\": \"apify\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": [
{
"tweetId": "1989901761650323606",
"transcript_text": ">> 159.97 SO HE GOES. INTO THE LEAD AND THIS PLAY. LEAD AND THIS PLAY. >> HIS REACTION. >> HIS REACTION. >> YES. >> YES. >> FIRST PLACE ARE.",
"json_text": [],
"webvtt_text": "WEBVTT\n\n00:00:00.000 --> 00:00:05.696\n>> 159.97 SO HE GOES. INTO THE \nLEAD AND THIS PLAY.\n\n00:00:05.707 --> 00:00:07.974\nLEAD AND THIS PLAY. \n>> HIS REACTION.\n\n00:00:07.975 --> 00:00:08.208\n>> HIS REACTION. \n>> YES.\n\n00:00:08.242 --> 00:00:18.218\n>> YES. \n>> FIRST PLACE ARE.\n"
}
],
"failed": false,
"success": true
}
Twitter
Twitter Video Transcript
Get Twitter video transcript.
POST
/
twitter
/
video
/
transcript
Twitter Video Transcript
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/twitter/video/transcript \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://x.com/NBCOlympics/status/1989901761650323606",
"channel": "apify"
}
'import requests
url = "https://mavi-backend.memories.ai/serve/api/v2/twitter/video/transcript"
payload = {
"video_url": "https://x.com/NBCOlympics/status/1989901761650323606",
"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://x.com/NBCOlympics/status/1989901761650323606',
channel: 'apify'
})
};
fetch('https://mavi-backend.memories.ai/serve/api/v2/twitter/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/twitter/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://x.com/NBCOlympics/status/1989901761650323606',
'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/twitter/video/transcript"
payload := strings.NewReader("{\n \"video_url\": \"https://x.com/NBCOlympics/status/1989901761650323606\",\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/twitter/video/transcript")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://x.com/NBCOlympics/status/1989901761650323606\",\n \"channel\": \"apify\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mavi-backend.memories.ai/serve/api/v2/twitter/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://x.com/NBCOlympics/status/1989901761650323606\",\n \"channel\": \"apify\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": [
{
"tweetId": "1989901761650323606",
"transcript_text": ">> 159.97 SO HE GOES. INTO THE LEAD AND THIS PLAY. LEAD AND THIS PLAY. >> HIS REACTION. >> HIS REACTION. >> YES. >> YES. >> FIRST PLACE ARE.",
"json_text": [],
"webvtt_text": "WEBVTT\n\n00:00:00.000 --> 00:00:05.696\n>> 159.97 SO HE GOES. INTO THE \nLEAD AND THIS PLAY.\n\n00:00:05.707 --> 00:00:07.974\nLEAD AND THIS PLAY. \n>> HIS REACTION.\n\n00:00:07.975 --> 00:00:08.208\n>> HIS REACTION. \n>> YES.\n\n00:00:08.242 --> 00:00:18.218\n>> YES. \n>> FIRST PLACE ARE.\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 twitter_video_transcript(video_url: str, channel: str):
url = f"{BASE_URL}/twitter/video/transcript"
data = {"video_url": video_url, "channel": channel}
resp = requests.post(url, headers=HEADERS, json=data)
return resp.json()
# Usage example
result = twitter_video_transcript("https://x.com/NBCOlympics/status/1989901761650323606", "apify")
print(result)
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| video_url | string | Yes | The Twitter 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 object:{ transcript }(matches the example below).channel: "memories.ai"—datais an object:{ success, transcript }.channel: "rapid"— same alternative shape asmemories.ai.
{
"code": 200,
"msg": "success",
"data": [
{
"tweetId": "1989901761650323606",
"transcript_text": ">> 159.97 SO HE GOES. INTO THE LEAD AND THIS PLAY. LEAD AND THIS PLAY. >> HIS REACTION. >> HIS REACTION. >> YES. >> YES. >> FIRST PLACE ARE.",
"json_text": [],
"webvtt_text": "WEBVTT\n\n00:00:00.000 --> 00:00:05.696\n>> 159.97 SO HE GOES. INTO THE \nLEAD AND THIS PLAY.\n\n00:00:05.707 --> 00:00:07.974\nLEAD AND THIS PLAY. \n>> HIS REACTION.\n\n00:00:07.975 --> 00:00:08.208\n>> HIS REACTION. \n>> YES.\n\n00:00:08.242 --> 00:00:18.218\n>> YES. \n>> FIRST PLACE ARE.\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[].tweetId | string | Twitter/X tweet ID |
| data[].transcript_text | string | Plain text transcript without timing information |
| data[].json_text | array | JSON format transcript (may be empty array) |
| data[].webvtt_text | string | 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 multiple formats (plain text and WEBVTT)
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
