Skip to main content
POST
YouTube Video Transcript
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 transcript 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.02 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

Response shape depends on the channel parameter — same pattern as /youtube/video/metadata. Verified live:
  • channel: "apify"data is an array containing one object whose data field is the array of {start, dur, text} segments (the shape documented below).
  • channel: "memories.ai"data is an object with lang, availableLangs, and content keys (a different transcript representation).
  • channel: "rapid" — same shape as memories.ai ({lang, availableLangs, content}).
If you need the timestamped segment format below, pass channel: "apify" explicitly.

Response Parameters

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 transcript

code
string

Response code indicating the result status

Example:

200

msg
string

Response message describing the operation result

Example:

"success"

data
object[]

Array containing transcript data objects

success
boolean

Indicates whether the operation was successful

Example:

true

failed
boolean

Indicates whether the operation failed

Example:

false