Twitter Video Metadata
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/twitter/video/metadata \
--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/metadata"
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/metadata', 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/metadata",
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/metadata"
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/metadata")
.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/metadata")
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": [
{
"type": "tweet",
"id": "1989901761650323606",
"url": "https://x.com/NBCOlympics/status/1989901761650323606",
"twitterUrl": "https://twitter.com/NBCOlympics/status/1989901761650323606",
"text": "France's Kevin Aymoz couldn't believe his 159.97 free skate score that led to his first-ever ISU Grand Prix GOLD. 🤯 https://t.co/901FxyK1Jc",
"fullText": "France's Kevin Aymoz couldn't believe his 159.97 free skate score that led to his first-ever ISU Grand Prix GOLD. 🤯 https://t.co/901FxyK1Jc",
"source": "Wildmoka",
"retweetCount": 257,
"replyCount": 139,
"likeCount": 5002,
"quoteCount": 39,
"viewCount": 43099524,
"createdAt": "Sun Nov 16 03:42:05 +0000 2025",
"lang": "en",
"bookmarkCount": 607,
"isReply": false,
"conversationId": "1989901761650323606",
"possiblySensitive": false,
"isPinned": false,
"author": {
"type": "user",
"userName": "NBCOlympics",
"url": "https://x.com/NBCOlympics",
"twitterUrl": "https://twitter.com/NBCOlympics",
"id": "14955353",
"name": "NBC Olympics & Paralympics",
"isVerified": false,
"verifiedType": "Business",
"isBlueVerified": true,
"profilePicture": "https://pbs.twimg.com/profile_images/1889684530245554177/hNcrFUJ0_normal.jpg",
"coverPicture": "https://pbs.twimg.com/profile_banners/14955353/1762962343",
"description": "The official home of NBC's coverage of the Olympics and Paralympics.",
"followers": 1077295,
"following": 2809,
"createdAt": "Fri May 30 15:20:31 +0000 2008"
},
"extendedEntities": {
"media": [
{
"display_url": "pic.x.com/901FxyK1Jc",
"expanded_url": "https://x.com/NBCOlympics/status/1989901761650323606/video/1",
"id_str": "1989901699746516992",
"type": "video",
"media_url_https": "https://pbs.twimg.com/media/G52NGsBXMAAniJV.jpg",
"video_info": {
"aspect_ratio": [16, 9],
"duration_millis": 18261,
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/1989901699746516992/pl/Y7hhhkSJzh19OnTV.m3u8?tag=14&v=19e"
},
{
"bitrate": 2176000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/1989901699746516992/vid/avc1/1280x720/OSp0AyG0fnyvfjZP.mp4?tag=14"
}
]
}
}
]
},
"isRetweet": false,
"isQuote": false,
"media": ["https://pbs.twimg.com/media/G52NGsBXMAAniJV.jpg"],
"isConversationControlled": false
}
],
"failed": false,
"success": true
}
Twitter
Twitter Video Metadata
Get Twitter video metadata.
POST
/
twitter
/
video
/
metadata
Twitter Video Metadata
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/twitter/video/metadata \
--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/metadata"
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/metadata', 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/metadata",
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/metadata"
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/metadata")
.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/metadata")
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": [
{
"type": "tweet",
"id": "1989901761650323606",
"url": "https://x.com/NBCOlympics/status/1989901761650323606",
"twitterUrl": "https://twitter.com/NBCOlympics/status/1989901761650323606",
"text": "France's Kevin Aymoz couldn't believe his 159.97 free skate score that led to his first-ever ISU Grand Prix GOLD. 🤯 https://t.co/901FxyK1Jc",
"fullText": "France's Kevin Aymoz couldn't believe his 159.97 free skate score that led to his first-ever ISU Grand Prix GOLD. 🤯 https://t.co/901FxyK1Jc",
"source": "Wildmoka",
"retweetCount": 257,
"replyCount": 139,
"likeCount": 5002,
"quoteCount": 39,
"viewCount": 43099524,
"createdAt": "Sun Nov 16 03:42:05 +0000 2025",
"lang": "en",
"bookmarkCount": 607,
"isReply": false,
"conversationId": "1989901761650323606",
"possiblySensitive": false,
"isPinned": false,
"author": {
"type": "user",
"userName": "NBCOlympics",
"url": "https://x.com/NBCOlympics",
"twitterUrl": "https://twitter.com/NBCOlympics",
"id": "14955353",
"name": "NBC Olympics & Paralympics",
"isVerified": false,
"verifiedType": "Business",
"isBlueVerified": true,
"profilePicture": "https://pbs.twimg.com/profile_images/1889684530245554177/hNcrFUJ0_normal.jpg",
"coverPicture": "https://pbs.twimg.com/profile_banners/14955353/1762962343",
"description": "The official home of NBC's coverage of the Olympics and Paralympics.",
"followers": 1077295,
"following": 2809,
"createdAt": "Fri May 30 15:20:31 +0000 2008"
},
"extendedEntities": {
"media": [
{
"display_url": "pic.x.com/901FxyK1Jc",
"expanded_url": "https://x.com/NBCOlympics/status/1989901761650323606/video/1",
"id_str": "1989901699746516992",
"type": "video",
"media_url_https": "https://pbs.twimg.com/media/G52NGsBXMAAniJV.jpg",
"video_info": {
"aspect_ratio": [16, 9],
"duration_millis": 18261,
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/1989901699746516992/pl/Y7hhhkSJzh19OnTV.m3u8?tag=14&v=19e"
},
{
"bitrate": 2176000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/1989901699746516992/vid/avc1/1280x720/OSp0AyG0fnyvfjZP.mp4?tag=14"
}
]
}
}
]
},
"isRetweet": false,
"isQuote": false,
"media": ["https://pbs.twimg.com/media/G52NGsBXMAAniJV.jpg"],
"isConversationControlled": false
}
],
"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_metadata(video_url: str, channel: str):
url = f"{BASE_URL}/twitter/video/metadata"
data = {"video_url": video_url, "channel": channel}
resp = requests.post(url, headers=HEADERS, json=data)
return resp.json()
# Usage example
result = twitter_video_metadata("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 YouTube / TikTok / Instagram siblings. Verified live:channel: "apify"—datais an array. On a tweet with no scrapable video it returns[{ "noResults": ... }]; on a tweet with video it returns the rich apify-shaped object below.channel: "memories.ai"—datais an object wrapping Twitter’s native shape:{ result: { ... } }.channel: "rapid"— same alternative shape asmemories.ai.
{
"code": 200,
"msg": "success",
"data": [
{
"type": "tweet",
"id": "1989901761650323606",
"url": "https://x.com/NBCOlympics/status/1989901761650323606",
"twitterUrl": "https://twitter.com/NBCOlympics/status/1989901761650323606",
"text": "France's Kevin Aymoz couldn't believe his 159.97 free skate score that led to his first-ever ISU Grand Prix GOLD. 🤯 https://t.co/901FxyK1Jc",
"fullText": "France's Kevin Aymoz couldn't believe his 159.97 free skate score that led to his first-ever ISU Grand Prix GOLD. 🤯 https://t.co/901FxyK1Jc",
"source": "Wildmoka",
"retweetCount": 257,
"replyCount": 139,
"likeCount": 5002,
"quoteCount": 39,
"viewCount": 43099524,
"createdAt": "Sun Nov 16 03:42:05 +0000 2025",
"lang": "en",
"bookmarkCount": 607,
"isReply": false,
"conversationId": "1989901761650323606",
"possiblySensitive": false,
"isPinned": false,
"author": {
"type": "user",
"userName": "NBCOlympics",
"url": "https://x.com/NBCOlympics",
"twitterUrl": "https://twitter.com/NBCOlympics",
"id": "14955353",
"name": "NBC Olympics & Paralympics",
"isVerified": false,
"verifiedType": "Business",
"isBlueVerified": true,
"profilePicture": "https://pbs.twimg.com/profile_images/1889684530245554177/hNcrFUJ0_normal.jpg",
"coverPicture": "https://pbs.twimg.com/profile_banners/14955353/1762962343",
"description": "The official home of NBC's coverage of the Olympics and Paralympics.",
"followers": 1077295,
"following": 2809,
"createdAt": "Fri May 30 15:20:31 +0000 2008"
},
"extendedEntities": {
"media": [
{
"display_url": "pic.x.com/901FxyK1Jc",
"expanded_url": "https://x.com/NBCOlympics/status/1989901761650323606/video/1",
"id_str": "1989901699746516992",
"type": "video",
"media_url_https": "https://pbs.twimg.com/media/G52NGsBXMAAniJV.jpg",
"video_info": {
"aspect_ratio": [16, 9],
"duration_millis": 18261,
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/1989901699746516992/pl/Y7hhhkSJzh19OnTV.m3u8?tag=14&v=19e"
},
{
"bitrate": 2176000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/1989901699746516992/vid/avc1/1280x720/OSp0AyG0fnyvfjZP.mp4?tag=14"
}
]
}
}
]
},
"isRetweet": false,
"isQuote": false,
"media": ["https://pbs.twimg.com/media/G52NGsBXMAAniJV.jpg"],
"isConversationControlled": false
}
],
"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 Twitter/X tweet metadata objects |
| data[].type | string | Content type (e.g., “tweet”) |
| data[].id | string | Tweet ID |
| data[].url | string | X.com URL |
| data[].twitterUrl | string | Twitter.com URL |
| data[].text | string | Tweet text |
| data[].fullText | string | Full tweet text |
| data[].source | string | Source of the tweet |
| data[].retweetCount | number | Number of retweets |
| data[].replyCount | number | Number of replies |
| data[].likeCount | number | Number of likes |
| data[].quoteCount | number | Number of quotes |
| data[].viewCount | number | Number of views |
| data[].createdAt | string | Creation timestamp |
| data[].lang | string | Language code |
| data[].bookmarkCount | number | Number of bookmarks |
| data[].author | object | Author/user information |
| data[].author.userName | string | Author username |
| data[].author.name | string | Author display name |
| data[].author.isVerified | boolean | Whether the author is verified |
| data[].author.isBlueVerified | boolean | Whether the author has blue verification |
| data[].author.followers | number | Number of followers |
| data[].author.following | number | Number of users following |
| data[].extendedEntities | object | Extended media entities |
| data[].extendedEntities.media | array[object] | Array of media objects |
| data[].extendedEntities.media[].type | string | Media type (e.g., “video”) |
| data[].extendedEntities.media[].video_info | object | Video information |
| data[].extendedEntities.media[].video_info.duration_millis | number | Video duration in milliseconds |
| data[].extendedEntities.media[].video_info.variants | array[object] | Array of video variants with different bitrates |
| data[].isRetweet | boolean | Whether the tweet is a retweet |
| data[].isQuote | boolean | Whether the tweet is a quote |
| data[].media | array[string] | Array of media URLs |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
Authorizations
Body
application/json
Response
200 - application/json
Video metadata information with detailed Twitter/X data
Response code indicating the result status
Example:
200
Response message describing the operation result
Example:
"success"
Array containing Twitter/X tweet metadata objects
Show child attributes
Show child attributes
Indicates whether the operation was successful
Example:
true
Indicates whether the operation failed
Example:
false
⌘I
