{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels Transcript — Reel to Text + Hooks",
    "description": "Instagram Reels and video transcript: give usernames, profile or reel URLs and get the full transcript, timecoded sentences and the typed, scored opening hook from one charge per reel, plus on-screen text, keywords and chapters. Whisper speech-to-text, up to 5 minutes per reel. Unofficial.",
    "version": "0.2",
    "x-build-id": "w8JlBF76fbXsGn8pR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ntriqpro~instagram-reels-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ntriqpro-instagram-reels-transcript",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ntriqpro~instagram-reels-transcript/runs": {
      "post": {
        "operationId": "runs-sync-ntriqpro-instagram-reels-transcript",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ntriqpro~instagram-reels-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-ntriqpro-instagram-reels-transcript",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "reels": {
            "title": "Instagram usernames, profile URLs or reel URLs",
            "type": "array",
            "description": "One per line, up to 50: usernames (nike), profile URLs, or reel URLs. The official Instagram Reel Scraper runs as a child run in your account (its price, about $0.0023 per reel + $0.001 per run, is billed to you by Apify, not by this Actor) and this Actor adds its own per-reel price on top: the run writes a free `cost-plan` row with both before collecting. Collection is sized to your run's maximum charge (video row + transcript per reel). Free plan: only the first reel is collected. Only submit reels you have the right to process; you are responsible for how you use the output and for Instagram's terms.",
            "items": {
              "type": "string"
            }
          },
          "resultsLimit": {
            "title": "Reels per username or URL",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Reels per username or URL, up to 50 (default 10). On a free plan only 1 reel is collected in total.",
            "default": 10
          },
          "mediaUrls": {
            "title": "Signed video links (direct files)",
            "type": "array",
            "description": "One per line, up to 200: direct video file links from an official Instagram scraper's `videoUrl` field (hosts ending in cdninstagram.com or fbcdn.net, https only, no redirects). The file is downloaded and transcribed; nothing is fetched from Instagram pages. These links are signed and expire (in a 10-link sample 32 to 108 hours after they were issued): run soon after collecting. A link that expired or was revoked returns a free notice. Only submit videos you have the right to process.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID from another Actor",
            "type": "string",
            "description": "Dataset of an official reel scraper run in your account (for example `apify/instagram-reel-scraper`). Every row's `videoUrl` is processed like a `mediaUrls` entry, and the row's caption, owner, play and like counts fill the video row. Up to 200 rows count; the rest is dropped."
          },
          "datasetVideoField": {
            "title": "Video link field in that dataset",
            "type": "string",
            "description": "Name of the field that holds the file link.",
            "default": "videoUrl"
          },
          "layers": {
            "title": "Layers",
            "type": "array",
            "description": "Which rows to produce for each reel. Leave empty for all. The metadata row is always delivered. The transcript charge covers the full text row, the timecoded sentence rows and the hook row together: switching sentences off does not make the transcription cheaper, and a run with only `onscreenText` skips the speech (and its charge) entirely.",
            "items": {
              "type": "string",
              "enum": [
                "transcriptSegments",
                "transcriptFull",
                "hook",
                "onscreenText",
                "keywords",
                "chapters"
              ],
              "enumTitles": [
                "Timecoded transcript sentences (included in the transcript charge)",
                "Full transcript (the transcript charge)",
                "Hook: first N seconds, typed and scored (included in the transcript charge)",
                "On-screen text from frames (per block)",
                "Keywords and hashtags (per reel)",
                "Chapters (per chapter)"
              ]
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "auto detects the spoken language. Or give a two-letter code (en, es, ko, ja, ...) to force Whisper to that language. Accuracy is best for English; rare words in other languages (for example Japanese) can come out as a similar-sounding word."
          },
          "hookSeconds": {
            "title": "Hook window (seconds)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many opening seconds count as the hook. Sentences that start inside the window are kept whole."
          },
          "whisperModel": {
            "title": "Speech-to-text model (when a video has no captions)",
            "enum": [
              "small",
              "base",
              "tiny"
            ],
            "type": "string",
            "description": "small reads the whole reel and is the recommended setting; base is cheaper to run but stopped halfway through a 28 s reel in our test; tiny is fastest and least accurate. All three are built into the image (no download wait)."
          },
          "ocrMaxVideoSeconds": {
            "title": "On-screen text: longest video to scan (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "On-screen text is read from one frame every 2 seconds (English OCR) and costs us about as much compute as the transcription (24-second reel: $0.0033 of OCR next to $0.0021 of speech), so it is off for reels longer than this (default 60). Everything else is still delivered. Reels longer than 300 seconds are not processed at all (free notice)."
          },
          "timeoutPerVideo": {
            "title": "Time limit per video (seconds)",
            "minimum": 60,
            "maximum": 1800,
            "type": "integer",
            "description": "Transcription stops after this many seconds per reel; the transcript delivered so far is marked truncated. Measured on 2 GB: a 24 s reel takes about 20 s, a 137 s reel about 300 s and a 290 s reel about 460 s, so the default is 600."
          },
          "maxScrapeUsd": {
            "title": "Most the official scraper may charge you (USD)",
            "minimum": 0.01,
            "maximum": 50,
            "type": "number",
            "description": "Optional cap on the child run of the official Instagram Reel Scraper (billed to you by Apify, separate from this Actor's maximum charge). Empty = about $0.0035 per requested reel + $0.05. If the cap is reached the scraper stops and only the reels it collected are processed."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}