{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels Transcript Scraper + AI Hook Analysis",
    "description": "Instagram Reels → AI transcript + AI hook analysis, built for AI agents and LLMs. Username or link in → one clean JSON per Reel: transcript, timestamps, SRT, hook type & score, beats, CTA, summary, 3 new hooks, views. Whisper + Claude AI, 99 languages, no login. Pay only for delivered Reels.",
    "version": "0.1",
    "x-build-id": "UfyHhmtRiZZYYAkOF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tactful_anvil~instagram-reels-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tactful_anvil-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/tactful_anvil~instagram-reels-transcript/runs": {
      "post": {
        "operationId": "runs-sync-tactful_anvil-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/tactful_anvil~instagram-reels-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-tactful_anvil-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": {
          "usernames": {
            "title": "Instagram usernames or profile links",
            "type": "array",
            "description": "Instagram accounts to transcribe: @username, username or instagram.com/username link. The newest Reels of each profile are transcribed (set how many below). Public accounts only.",
            "items": {
              "type": "string"
            }
          },
          "maxReelsPerProfile": {
            "title": "Reels per profile",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many Reels to transcribe from each profile (newest first, or most viewed — see below). Up to 500.",
            "default": 10
          },
          "analyze": {
            "title": "AI analysis: hook, structure, CTA + 3 new hooks",
            "type": "boolean",
            "description": "Adds a Claude AI analysis to every transcribed Reel: the hook with its type and strength (1-10), structure beats with timestamps, call to action, format, topics, summary, key takeaways and 3 alternative hooks you can reuse. <b>+$0.012 per analysed Reel</b> (event <code>ai-analysis</code>), charged only when the analysis is delivered. Apify free plan: the first 10 Reels per run.",
            "default": false
          },
          "analysisLanguage": {
            "title": "AI analysis language",
            "type": "string",
            "description": "Write the analysis in this language — a code like <code>en</code>, <code>es</code>, <code>pt</code>, <code>id</code>. Empty = each Reel's own language. Quoted hooks and CTAs stay as spoken."
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "A date (<code>2026-10-01</code>) or a period (<code>7 days</code>, <code>24 hours</code>, <code>2 weeks</code>, <code>3 months</code>). Older Reels are skipped before download and never charged. Empty = no date filter.",
            "default": ""
          },
          "skipPinned": {
            "title": "Skip pinned Reels",
            "type": "boolean",
            "description": "Leave out the Reels a creator pinned to the top of the profile (they are often old).",
            "default": false
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Only transcribe Reels with at least this many views (0 = all). Reels whose views are not public are kept.",
            "default": 0
          },
          "sortBy": {
            "title": "Which Reels per profile",
            "enum": [
              "newest",
              "most_viewed"
            ],
            "type": "string",
            "description": "<b>Newest</b> = the most recent Reels. <b>Most viewed</b> = the top Reels by views among the latest ones listed (about 3× <i>Reels per profile</i>, at least 36).",
            "default": "newest"
          },
          "reelUrls": {
            "title": "Reel links (optional)",
            "type": "array",
            "description": "Single Instagram Reel or post links (instagram.com/reel/…, /p/…). Profile links pasted here are listed like usernames.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID from another scraper (optional)",
            "type": "string",
            "description": "Transcribe the Reels found by another Actor run (e.g. an Instagram profile, hashtag or post scraper) — paste its dataset ID. The post link is read from <code>url</code>, <code>postUrl</code>, <code>shortCode</code> and similar fields; rows with a <code>videoUrl</code> file are transcribed straight from that file. Photo posts are skipped."
          },
          "datasetItems": {
            "title": "Scraper rows (optional)",
            "type": "array",
            "description": "Same as Dataset ID, but with the rows pasted directly (any shape, e.g. <code>[{\"url\": \"https://www.instagram.com/reel/DeslCKORsEs/\"}]</code>)."
          },
          "onlyNew": {
            "title": "Only new Reels",
            "type": "boolean",
            "description": "Skip Reels that an earlier run of yours already transcribed (remembered in a key-value store named <code>short-video-transcript-seen</code> in your account). Ideal for a daily schedule that watches the same creators.",
            "default": false
          },
          "watchlistId": {
            "title": "Watchlist name (optional)",
            "type": "string",
            "description": "Give a monitoring job its own memory, e.g. <code>competitors</code> or <code>client-acme</code>. Every row then gets <code>isNew</code> and <code>firstSeenAt</code>; with <b>Only new Reels</b> on, Reels already on this list are skipped. Empty = the shared memory of <b>Only new Reels</b>."
          },
          "language": {
            "title": "Spoken language (optional)",
            "type": "string",
            "description": "Two-letter code such as <code>en</code>, <code>es</code>, <code>id</code>, <code>pt</code>. Leave empty to detect the language of every Reel automatically (99 languages).",
            "default": ""
          },
          "model": {
            "title": "Accuracy",
            "enum": [
              "base",
              "tiny"
            ],
            "type": "string",
            "description": "<b>base</b> = good accuracy, recommended. <b>tiny</b> = fastest, fine for clear English speech. Same price.",
            "default": "base"
          },
          "includeSegments": {
            "title": "Timestamped segments",
            "type": "boolean",
            "description": "Add a <code>segments</code> array (start, end, text) for subtitles, clipping and hooks.",
            "default": true
          },
          "includeSrt": {
            "title": "SRT subtitles",
            "type": "boolean",
            "description": "Add a ready-to-use <code>srt</code> subtitle string to every row.",
            "default": false
          },
          "includeVtt": {
            "title": "WebVTT subtitles",
            "type": "boolean",
            "description": "Add a ready-to-use <code>vtt</code> (WebVTT) subtitle string to every row — the web/HTML5 subtitle format.",
            "default": false
          },
          "wordTimestamps": {
            "title": "Per-word timestamps",
            "type": "boolean",
            "description": "Add <code>words</code> [{start, end, word}] inside every segment — for karaoke captions, precise clipping and word search. Uses speech recognition even when the platform has captions.",
            "default": false
          },
          "chunkWords": {
            "title": "Chunks for AI / RAG (words per chunk)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Also cut each transcript into <code>chunks</code> of about this many words, each with start / end seconds — ready for embeddings and retrieval. 0 = off.",
            "default": 0
          },
          "translateToEnglish": {
            "title": "Translate to English",
            "type": "boolean",
            "description": "Add <code>translationEn</code>: the spoken words translated to English by Whisper itself (non-English Reels only; English Reels get their transcript). Same price.",
            "default": false
          },
          "maxReels": {
            "title": "Max Reels per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of Reels in one run (all profiles and links together). Keeps the cost predictable.",
            "default": 100
          },
          "maxDurationSec": {
            "title": "Max Reel length (seconds)",
            "minimum": 10,
            "maximum": 600,
            "type": "integer",
            "description": "Audio after this point is not transcribed and the row is marked <code>truncated</code>. Reels are almost always shorter than 3 minutes.",
            "default": 180
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Not needed for most runs. If a platform starts blocking downloads (status <code>blocked</code>), a residential proxy can help.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}