Instagram Video Metadata
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/instagram/video/metadata \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://www.instagram.com/reels/DLlGZiCOBQ0/",
"channel": "apify"
}
'import requests
url = "https://mavi-backend.memories.ai/serve/api/v2/instagram/video/metadata"
payload = {
"video_url": "https://www.instagram.com/reels/DLlGZiCOBQ0/",
"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.instagram.com/reels/DLlGZiCOBQ0/', channel: 'apify'})
};
fetch('https://mavi-backend.memories.ai/serve/api/v2/instagram/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/instagram/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://www.instagram.com/reels/DLlGZiCOBQ0/',
'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/instagram/video/metadata"
payload := strings.NewReader("{\n \"video_url\": \"https://www.instagram.com/reels/DLlGZiCOBQ0/\",\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/instagram/video/metadata")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://www.instagram.com/reels/DLlGZiCOBQ0/\",\n \"channel\": \"apify\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mavi-backend.memories.ai/serve/api/v2/instagram/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://www.instagram.com/reels/DLlGZiCOBQ0/\",\n \"channel\": \"apify\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"data": {
"xdt_shortcode_media": {
"__typename": "XDTGraphVideo",
"id": "3667365614373573684",
"shortcode": "DLlGZiCOBQ0",
"thumbnail_src": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"dimensions": {
"height": 1136,
"width": 640
},
"display_url": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"display_resources": [
{
"src": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"config_width": 640,
"config_height": 1136
}
],
"dash_info": {
"is_dash_eligible": true,
"video_dash_manifest": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...",
"number_of_qualities": 1
},
"has_audio": true,
"video_url": "https://scontent-jnb2-1.cdninstagram.com/o1/v/t2/f2/m86/...",
"video_view_count": 27040,
"video_play_count": 1799817,
"product_type": "clips",
"video_duration": 41.125,
"clips_music_attribution_info": {
"artist_name": "humansofny",
"song_name": "Original audio",
"uses_original_audio": true,
"audio_id": "24313369781619226"
},
"is_video": true,
"owner": {
"id": "242598499",
"username": "humansofny",
"is_verified": true,
"profile_pic_url": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-19/...",
"full_name": "Humans of New York",
"edge_followed_by": {
"count": 12804266
}
},
"edge_media_to_caption": {
"edges": [
{
"node": {
"text": "I have the moves that they're looking for.",
"created_at": "1751404145"
}
}
]
},
"edge_media_to_parent_comment": {
"count": 487,
"edges": [
{
"node": {
"id": "18094151056886709",
"text": "Go for it sweetie!!!",
"created_at": 1762011704,
"owner": {
"username": "iam_carrongrazette"
}
}
}
]
},
"edge_media_preview_like": {
"count": 27791
},
"taken_at_timestamp": 1751404144
}
},
"extensions": {
"is_final": true
},
"status": "ok"
},
"failed": false,
"success": true
}
Instagram
Instagram Video Metadata
Get Instagram video metadata.
POST
/
instagram
/
video
/
metadata
Instagram Video Metadata
curl --request POST \
--url https://mavi-backend.memories.ai/serve/api/v2/instagram/video/metadata \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://www.instagram.com/reels/DLlGZiCOBQ0/",
"channel": "apify"
}
'import requests
url = "https://mavi-backend.memories.ai/serve/api/v2/instagram/video/metadata"
payload = {
"video_url": "https://www.instagram.com/reels/DLlGZiCOBQ0/",
"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.instagram.com/reels/DLlGZiCOBQ0/', channel: 'apify'})
};
fetch('https://mavi-backend.memories.ai/serve/api/v2/instagram/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/instagram/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://www.instagram.com/reels/DLlGZiCOBQ0/',
'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/instagram/video/metadata"
payload := strings.NewReader("{\n \"video_url\": \"https://www.instagram.com/reels/DLlGZiCOBQ0/\",\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/instagram/video/metadata")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://www.instagram.com/reels/DLlGZiCOBQ0/\",\n \"channel\": \"apify\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mavi-backend.memories.ai/serve/api/v2/instagram/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://www.instagram.com/reels/DLlGZiCOBQ0/\",\n \"channel\": \"apify\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"data": {
"xdt_shortcode_media": {
"__typename": "XDTGraphVideo",
"id": "3667365614373573684",
"shortcode": "DLlGZiCOBQ0",
"thumbnail_src": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"dimensions": {
"height": 1136,
"width": 640
},
"display_url": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"display_resources": [
{
"src": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"config_width": 640,
"config_height": 1136
}
],
"dash_info": {
"is_dash_eligible": true,
"video_dash_manifest": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...",
"number_of_qualities": 1
},
"has_audio": true,
"video_url": "https://scontent-jnb2-1.cdninstagram.com/o1/v/t2/f2/m86/...",
"video_view_count": 27040,
"video_play_count": 1799817,
"product_type": "clips",
"video_duration": 41.125,
"clips_music_attribution_info": {
"artist_name": "humansofny",
"song_name": "Original audio",
"uses_original_audio": true,
"audio_id": "24313369781619226"
},
"is_video": true,
"owner": {
"id": "242598499",
"username": "humansofny",
"is_verified": true,
"profile_pic_url": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-19/...",
"full_name": "Humans of New York",
"edge_followed_by": {
"count": 12804266
}
},
"edge_media_to_caption": {
"edges": [
{
"node": {
"text": "I have the moves that they're looking for.",
"created_at": "1751404145"
}
}
]
},
"edge_media_to_parent_comment": {
"count": 487,
"edges": [
{
"node": {
"id": "18094151056886709",
"text": "Go for it sweetie!!!",
"created_at": 1762011704,
"owner": {
"username": "iam_carrongrazette"
}
}
}
]
},
"edge_media_preview_like": {
"count": 27791
},
"taken_at_timestamp": 1751404144
}
},
"extensions": {
"is_final": true
},
"status": "ok"
},
"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 instagram_video_metadata(video_url: str, channel: str):
url = f"{BASE_URL}/instagram/video/metadata"
data = {"video_url": video_url, "channel": channel}
resp = requests.post(url, headers=HEADERS, json=data)
return resp.json()
# Usage example
result = instagram_video_metadata("https://www.instagram.com/reels/DLlGZiCOBQ0/", "apify")
print(result)
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| video_url | string | Yes | The Instagram video URL. Must be a Reel URL (/reels/<shortcode>/ or /reel/<shortcode>/). Post URLs (/p/<shortcode>/) are rejected with HTTP 400 "instagram url error" — even when the post is a video. |
| 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 and TikTok siblings. Verified live:channel: "apify"—datais an array of flat metadata objects with{inputUrl, id, type, shortCode, caption, hashtags, ...}. May return{url, error: "restricted_page", errorDescription}for posts behind login walls.channel: "memories.ai"—datais an object wrapping Instagram’s internal GraphQL shape:{data: {xdt_shortcode_media: {...}}, extensions, status}.channel: "rapid"— same alternative shape asmemories.ai.
memories.ai GraphQL shape, not the apify shape the code example requests. Pick a channel per integration and expect to write a small adapter when switching.{
"code": 200,
"msg": "success",
"data": {
"data": {
"xdt_shortcode_media": {
"__typename": "XDTGraphVideo",
"id": "3667365614373573684",
"shortcode": "DLlGZiCOBQ0",
"thumbnail_src": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"dimensions": {
"height": 1136,
"width": 640
},
"display_url": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"display_resources": [
{
"src": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-15/...",
"config_width": 640,
"config_height": 1136
}
],
"dash_info": {
"is_dash_eligible": true,
"video_dash_manifest": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...",
"number_of_qualities": 1
},
"has_audio": true,
"video_url": "https://scontent-jnb2-1.cdninstagram.com/o1/v/t2/f2/m86/...",
"video_view_count": 27040,
"video_play_count": 1799817,
"product_type": "clips",
"video_duration": 41.125,
"clips_music_attribution_info": {
"artist_name": "humansofny",
"song_name": "Original audio",
"uses_original_audio": true,
"audio_id": "24313369781619226"
},
"is_video": true,
"owner": {
"id": "242598499",
"username": "humansofny",
"is_verified": true,
"profile_pic_url": "https://scontent-jnb2-1.cdninstagram.com/v/t51.2885-19/...",
"full_name": "Humans of New York",
"edge_followed_by": {
"count": 12804266
}
},
"edge_media_to_caption": {
"edges": [
{
"node": {
"text": "I have the moves that they're looking for.",
"created_at": "1751404145"
}
}
]
},
"edge_media_to_parent_comment": {
"count": 487,
"edges": [
{
"node": {
"id": "18094151056886709",
"text": "Go for it sweetie!!!",
"created_at": 1762011704,
"owner": {
"username": "iam_carrongrazette"
}
}
}
]
},
"edge_media_preview_like": {
"count": 27791
},
"taken_at_timestamp": 1751404144
}
},
"extensions": {
"is_final": true
},
"status": "ok"
},
"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 | object | Response data object containing Instagram metadata |
| data.data | object | Instagram data object |
| data.data.xdt_shortcode_media | object | Instagram video media object |
| data.data.xdt_shortcode_media.id | string | Video ID |
| data.data.xdt_shortcode_media.shortcode | string | Instagram short code |
| data.data.xdt_shortcode_media.thumbnail_src | string | Thumbnail image URL |
| data.data.xdt_shortcode_media.dimensions | object | Video dimensions (height, width) |
| data.data.xdt_shortcode_media.display_url | string | Display image URL |
| data.data.xdt_shortcode_media.video_url | string | Direct video URL |
| data.data.xdt_shortcode_media.video_view_count | number | Number of video views |
| data.data.xdt_shortcode_media.video_play_count | number | Number of video plays |
| data.data.xdt_shortcode_media.video_duration | number | Video duration in seconds |
| data.data.xdt_shortcode_media.product_type | string | Product type (e.g., “clips”) |
| data.data.xdt_shortcode_media.owner | object | Video owner information |
| data.data.xdt_shortcode_media.owner.username | string | Owner username |
| data.data.xdt_shortcode_media.owner.full_name | string | Owner full name |
| data.data.xdt_shortcode_media.edge_media_to_caption | object | Video caption information |
| data.data.xdt_shortcode_media.edge_media_to_parent_comment | object | Comments information |
| data.data.xdt_shortcode_media.edge_media_preview_like | object | Likes information |
| data.status | string | Response status |
| 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 Instagram data
Response code indicating the result status
Example:
200
Response message describing the operation result
Example:
"success"
Response data object containing Instagram metadata
Show child attributes
Show child attributes
Indicates whether the operation was successful
Example:
true
Indicates whether the operation failed
Example:
false
⌘I
