Skip to main content
POST
YouTube Video Metadata
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)
This endpoint allows you to retrieve metadata for a YouTube video.
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

Request Body

Response

The response shape depends on which channel you pass. Each channel passes through a different upstream provider’s schema essentially unchanged, so the three channels are not drop-in interchangeable. Verified live:
  • channel: "apify" — the canonical shape documented below. data is an array of flat metadata objects with title, duration, view_count, downloadable_video_link, etc. This is the only channel that returns direct downloadable video / audio URLs.
  • channel: "memories.ai" — YouTube Data API v3 nested shape. data is an object (data.items[]), each item having snippet.title, snippet.thumbnails.{maxres,standard,high,medium,default}.url, and contentDetails.duration (ISO 8601). No download links.
  • channel: "rapid" — flat shape but different field names: id, title, description, view_count, plus an errorId: "Success" marker. No download links.
The documented example below is the apify shape. If you switch channels, expect to write a small adapter; consider sticking with one channel for a given integration.

Response Parameters (apify channel)

The table below documents the apify channel shape. For the other two channels see the Warning above.

Authorizations

Authorization
string
header
required

Body

application/json
video_url
string
required

The YouTube video URL

Example:

"https://www.youtube.com/watch?v=Y2y4OpzKIK4"

channel
enum<string>
required

The channel name. Supported values: apify, rapid, memories.ai

Available options:
apify,
rapid,
memories.ai
Example:

"apify"

Response

200 - application/json

Video metadata information

code
string

Response code indicating the result status

Example:

200

msg
string

Response message describing the operation result

Example:

"success"

data
object[]

Array of video metadata objects

success
boolean

Indicates whether the operation was successful

Example:

true

failed
boolean

Indicates whether the operation failed

Example:

false