> ## Documentation Index
> Fetch the complete documentation index at: https://api-tools.memories.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram Video Transcript

> Get Instagram video transcript.

<Info>
  **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)
</Info>

This endpoint allows you to retrieve transcript for an Instagram video.

<Note>
  Channel routing guide: see [Social Media Scraping Overview](/visual-intelligence/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.
</Note>

<Note>
  **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)
</Note>

### Code Example

<CodeGroup>
  ```python Python theme={null}
  import requests

  BASE_URL = "https://mavi-backend.memories.ai/serve/api/v2"
  API_KEY = "sk-mavi-..."
  HEADERS = {
      "Authorization": f"{API_KEY}"
  }

  def instagram_video_transcript(video_url: str, channel: str):
      url = f"{BASE_URL}/instagram/video/transcript"
      data = {"video_url": video_url, "channel": channel}
      resp = requests.post(url, headers=HEADERS, json=data)
      return resp.json()

  # Usage example
  result = instagram_video_transcript("https://www.instagram.com/reels/DLlGZiCOBQ0/", "apify")
  print(result)
  ```
</CodeGroup>

### Request Body

| Field      | Type   | Required | Description                                                         |
| ---------- | ------ | -------- | ------------------------------------------------------------------- |
| video\_url | string | Yes      | The Instagram video URL                                             |
| channel    | string | Yes      | The channel name. Supported values: `apify`, `rapid`, `memories.ai` |

### Response

<Warning>
  **Response shape depends on the `channel` parameter** — same channel-dependent split as the other scraping endpoints. Verified live:

  * `channel: "apify"` — `data` is an **array** with one object: `{transcript, segments, words, detected_language, url, instagramUrl}`. The example below is this shape.
  * `channel: "memories.ai"` — `data` is an **object**: `{success, credits_remaining, transcripts}`.
  * `channel: "rapid"` — same alternative shape as `memories.ai`.

  The example and Response Parameters table below describe the **apify** shape.
</Warning>

Same Reel-URL-only restriction as `/instagram/video/metadata` — `/p/<shortcode>/` URLs return `HTTP 400` `"instagram url error"`.

<ResponseExample>
  ```json theme={null}
  {
    "code": 200,
    "msg": "success",
    "data": [
      {
        "transcript": "I'm gonna get a little personal. I had gastric bypass 10 years ago...",
        "segments": [
          {
            "text": "I'm gonna get a little personal.",
            "start": 0,
            "end": 2
          },
          {
            "text": "I had gastric bypass 10 years ago.",
            "start": 2.54,
            "end": 5.5
          },
          {
            "text": "Thank you.",
            "start": 34.32,
            "end": 36.46
          }
        ],
        "words": [
          {
            "word": "I'm",
            "start": 0,
            "end": 0.02
          },
          {
            "word": "gonna",
            "start": 0.02,
            "end": 0.24
          }
        ],
        "displayUrl": "https://scontent-ord5-3.cdninstagram.com/v/t51.2885-15/...",
        "instagramUrl": "https://www.instagram.com/reel/DLlGZiCOBQ0/",
        "shortCode": "DLlGZiCOBQ0",
        "caption": "I have the moves that they're looking for.",
        "hashtags": "",
        "ownerUsername": "humansofny",
        "ownerFullName": "Humans of New York",
        "videoDuration": 41.125,
        "timestamp": "2025-07-01T21:09:04.000Z",
        "videoUrl": "https://scontent-ord5-2.cdninstagram.com/o1/v/t16/f2/m86/...",
        "likesCount": 27791,
        "videoViewCount": 27040,
        "videoPlayCount": 1799817,
        "commentsCount": 487,
        "musicArtist": "humansofny",
        "musicSong": "Original audio",
        "usesOriginalAudio": true,
        "locationName": "",
        "mentions": "",
        "firstComment": "Go for it sweetie!!!",
        "id": "3667365614373573684",
        "type": "Video",
        "url": "https://www.instagram.com/p/DLlGZiCOBQ0/",
        "ownerId": "242598499",
        "locationId": "",
        "productType": "clips",
        "isSponsored": false,
        "audioId": "24313369781619226",
        "isCommentsDisabled": false,
        "dimensionsHeight": 1136,
        "dimensionsWidth": 640,
        "processedAt": "2025-12-30T06:12:24.581Z",
        "status": "success",
        "metadata": {
          "runId": "R5tnfCOZ6KueHW6uI",
          "actorId": "3C7L8IMQOkq3isV2Y",
          "processingType": "single-processing",
          "urlIndex": 1,
          "totalUrls": 1,
          "userTier": "PAID",
          "processingSpeed": "standard"
        }
      }
    ],
    "failed": false,
    "success": true
  }
  ```
</ResponseExample>

### 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\[].transcript         | string         | Complete transcript text                             |
| data\[].segments           | array\[object] | Array of transcript segments with timing information |
| data\[].segments\[].text   | string         | Text content of the segment                          |
| data\[].segments\[].start  | number         | Start time of the segment in seconds                 |
| data\[].segments\[].end    | number         | End time of the segment in seconds                   |
| data\[].words              | array\[object] | Array of individual words with timing information    |
| data\[].words\[].word      | string         | The word text                                        |
| data\[].words\[].start     | number         | Start time of the word in seconds                    |
| data\[].words\[].end       | number         | End time of the word in seconds                      |
| data\[].displayUrl         | string         | Display image URL                                    |
| data\[].instagramUrl       | string         | Instagram video URL                                  |
| data\[].shortCode          | string         | Instagram short code                                 |
| data\[].caption            | string         | Video caption                                        |
| data\[].ownerUsername      | string         | Instagram owner username                             |
| data\[].ownerFullName      | string         | Instagram owner full name                            |
| data\[].videoDuration      | number         | Video duration in seconds                            |
| data\[].timestamp          | string         | Video timestamp                                      |
| data\[].videoUrl           | string         | Direct video URL                                     |
| data\[].likesCount         | number         | Number of likes                                      |
| data\[].videoViewCount     | number         | Number of video views                                |
| data\[].videoPlayCount     | number         | Number of video plays                                |
| data\[].commentsCount      | number         | Number of comments                                   |
| data\[].musicArtist        | string         | Music artist name                                    |
| data\[].musicSong          | string         | Music song name                                      |
| data\[].usesOriginalAudio  | boolean        | Whether the video uses original audio                |
| data\[].firstComment       | string         | First comment text                                   |
| data\[].id                 | string         | Video ID                                             |
| data\[].type               | string         | Content type                                         |
| data\[].url                | string         | Video URL                                            |
| data\[].ownerId            | string         | Owner ID                                             |
| data\[].productType        | string         | Product type                                         |
| data\[].isSponsored        | boolean        | Whether the video is sponsored                       |
| data\[].isCommentsDisabled | boolean        | Whether comments are disabled                        |
| data\[].dimensionsHeight   | number         | Video height in pixels                               |
| data\[].dimensionsWidth    | number         | Video width in pixels                                |
| data\[].processedAt        | string         | Processing timestamp                                 |
| data\[].status             | string         | Processing status                                    |
| data\[].metadata           | object         | Additional metadata information                      |
| success                    | boolean        | Indicates whether the operation was successful       |
| failed                     | boolean        | Indicates whether the operation failed               |


## OpenAPI

````yaml POST /instagram/video/transcript
openapi: 3.1.0
info:
  title: Video Metadata & Transcript API Reference
  description: >-
    REST APIs for retrieving video metadata and transcripts from YouTube,
    Instagram, TikTok, and Twitter
  version: v1.0.1
servers:
  - url: https://mavi-backend.memories.ai/serve/api/v2
security:
  - ApiKeyAuth: []
paths:
  /instagram/video/transcript:
    post:
      summary: Instagram Video Transcript
      description: Get Instagram video transcript.
      operationId: instagram_video_transcript
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                video_url:
                  type: string
                  description: The Instagram video URL
                  example: https://www.instagram.com/reels/DLlGZiCOBQ0/
                channel:
                  type: string
                  description: >-
                    The channel name. Supported values: apify, rapid,
                    memories.ai
                  enum:
                    - apify
                    - rapid
                    - memories.ai
                  example: apify
              required:
                - video_url
                - channel
      responses:
        '200':
          description: Video transcript with detailed timing information and metadata
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: 200
                    description: Response code indicating the result status
                  msg:
                    type: string
                    example: success
                    description: Response message describing the operation result
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        transcript:
                          type: string
                          example: >-
                            I'm gonna get a little personal. I had gastric
                            bypass 10 years ago...
                          description: Complete transcript text
                        segments:
                          type: array
                          items:
                            type: object
                            properties:
                              text:
                                type: string
                                example: I'm gonna get a little personal.
                                description: Text content of the segment
                              start:
                                type: number
                                example: 0
                                description: Start time of the segment in seconds
                              end:
                                type: number
                                example: 2
                                description: End time of the segment in seconds
                          description: Array of transcript segments with timing information
                        words:
                          type: array
                          items:
                            type: object
                            properties:
                              word:
                                type: string
                                example: I'm
                                description: The word text
                              start:
                                type: number
                                example: 0
                                description: Start time of the word in seconds
                              end:
                                type: number
                                example: 0.02
                                description: End time of the word in seconds
                          description: Array of individual words with timing information
                        displayUrl:
                          type: string
                          example: >-
                            https://scontent-ord5-3.cdninstagram.com/v/t51.2885-15/...
                          description: Display image URL
                        instagramUrl:
                          type: string
                          example: https://www.instagram.com/reel/DLlGZiCOBQ0/
                          description: Instagram video URL
                        shortCode:
                          type: string
                          example: DLlGZiCOBQ0
                          description: Instagram short code
                        caption:
                          type: string
                          example: I have the moves that they're looking for.
                          description: Video caption
                        ownerUsername:
                          type: string
                          example: humansofny
                          description: Instagram owner username
                        ownerFullName:
                          type: string
                          example: Humans of New York
                          description: Instagram owner full name
                        videoDuration:
                          type: number
                          example: 41.125
                          description: Video duration in seconds
                        timestamp:
                          type: string
                          example: '2025-07-01T21:09:04.000Z'
                          description: Video timestamp
                        videoUrl:
                          type: string
                          example: >-
                            https://scontent-ord5-2.cdninstagram.com/o1/v/t16/f2/m86/...
                          description: Direct video URL
                        likesCount:
                          type: number
                          example: 27791
                          description: Number of likes
                        videoViewCount:
                          type: number
                          example: 27040
                          description: Number of video views
                        videoPlayCount:
                          type: number
                          example: 1799817
                          description: Number of video plays
                        commentsCount:
                          type: number
                          example: 487
                          description: Number of comments
                        musicArtist:
                          type: string
                          example: humansofny
                          description: Music artist name
                        musicSong:
                          type: string
                          example: Original audio
                          description: Music song name
                        usesOriginalAudio:
                          type: boolean
                          example: true
                          description: Whether the video uses original audio
                        firstComment:
                          type: string
                          example: Go for it sweetie!!!
                          description: First comment text
                        id:
                          type: string
                          example: '3667365614373573684'
                          description: Video ID
                        type:
                          type: string
                          example: Video
                          description: Content type
                        url:
                          type: string
                          example: https://www.instagram.com/p/DLlGZiCOBQ0/
                          description: Video URL
                        ownerId:
                          type: string
                          example: '242598499'
                          description: Owner ID
                        productType:
                          type: string
                          example: clips
                          description: Product type
                        isSponsored:
                          type: boolean
                          example: false
                          description: Whether the video is sponsored
                        isCommentsDisabled:
                          type: boolean
                          example: false
                          description: Whether comments are disabled
                        dimensionsHeight:
                          type: number
                          example: 1136
                          description: Video height in pixels
                        dimensionsWidth:
                          type: number
                          example: 640
                          description: Video width in pixels
                        processedAt:
                          type: string
                          example: '2025-12-30T06:12:24.581Z'
                          description: Processing timestamp
                        status:
                          type: string
                          example: success
                          description: Processing status
                        metadata:
                          type: object
                          description: Additional metadata information
                          properties:
                            runId:
                              type: string
                              example: R5tnfCOZ6KueHW6uI
                            actorId:
                              type: string
                              example: 3C7L8IMQOkq3isV2Y
                            processingType:
                              type: string
                              example: single-processing
                            urlIndex:
                              type: number
                              example: 1
                            totalUrls:
                              type: number
                              example: 1
                            userTier:
                              type: string
                              example: PAID
                            processingSpeed:
                              type: string
                              example: standard
                    description: Array containing transcript data objects
                  success:
                    type: boolean
                    example: true
                    description: Indicates whether the operation was successful
                  failed:
                    type: boolean
                    example: false
                    description: Indicates whether the operation failed
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````