{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels Transcript Scraper API + AI Hook Analyzer",
    "description": "Instagram transcript scraper: reels to text with Whisper on a GPU. Usernames or reel links in; transcript, 3-second hook, SRT/VTT, plays and likes out. Optional AI hook score, beats, CTA and rewrites, on-screen text for music-only reels, and new-reels-only watchlists. No login.",
    "version": "1.1",
    "x-build-id": "72F7ZZeqOwK163eVO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hayleai~instagram-reels-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hayleai-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/hayleai~instagram-reels-transcript/runs": {
      "post": {
        "operationId": "runs-sync-hayleai-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/hayleai~instagram-reels-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-hayleai-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": {
          "profiles": {
            "title": "Instagram usernames, profile links or reel links",
            "type": "array",
            "description": "Usernames (natgeo), profile links, or direct reel links. Public reels only, no login. Reels are collected with Apify's Instagram Reel Scraper in your account: about $0.0026 per reel on the Free plan (less on paid plans), shown as its own line on your Apify bill. All-in that is about $0.0126 per transcribed reel.",
            "items": {
              "type": "string"
            }
          },
          "maxReelsPerProfile": {
            "title": "Maximum reels per profile",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many of the latest reels to transcribe for each username or profile link. Ignored for direct reel links.",
            "default": 10
          },
          "onlyReelsNewerThan": {
            "title": "Only reels newer than",
            "type": "string",
            "description": "A date (2026-10-01) or a relative time such as 7 days or 2 months. Leave empty for no date filter."
          },
          "datasetId": {
            "title": "Dataset from Instagram Reel Scraper (optional)",
            "type": "string",
            "description": "Already scraped the reels? Pick the dataset from Instagram Reel Scraper or Instagram Scraper and every video in it is transcribed. Scrape and transcribe on the same day, because Instagram's video links expire."
          },
          "videoUrls": {
            "title": "Direct video or audio links (optional)",
            "type": "array",
            "description": "Direct links to reel video or audio files, for example the videoUrl values from another scraper.",
            "items": {
              "type": "string"
            }
          },
          "analyzeScripts": {
            "title": "AI script analysis (hook type, beats, CTA, rewrite ideas)",
            "type": "boolean",
            "description": "Adds a strategist's breakdown to every transcribed reel: hook type and a 1-10 hook score, the script's beats in order, the call to action, why it works, 3 ideas for a stronger version and search keywords. Charged per analyzed reel (see Pricing). Turn off for transcripts only.",
            "default": true
          },
          "profileReport": {
            "title": "Profile strategy report",
            "type": "boolean",
            "description": "For each username with at least 3 analyzed reels, writes one report: content pillars, winning hook patterns, what top reels do that weak ones don't, content gaps and 5 new reel ideas with hooks. Saved as a row with status profile_report and in the key-value store as PROFILE_REPORTS. Charged once per profile (see Pricing). Needs AI script analysis.",
            "default": true
          },
          "includeOnScreenText": {
            "title": "Read on-screen text when nobody speaks",
            "type": "boolean",
            "description": "Many Instagram reels are music with captions on screen. Switch this on and the text shown in the video is read from its frames and delivered as the transcript (textSource: on_screen). Such a reel is charged as one reel transcript, the same price as a spoken one. Off (default): reels without speech stay free.",
            "default": false
          },
          "newReelsOnly": {
            "title": "Only new reels (watchlist)",
            "type": "boolean",
            "description": "Remembers every reel this Actor already transcribed and skips it on later runs. Put this Actor on a daily or weekly schedule to track creators: you only pay for reels posted since the last run. Skipped reels are never charged.",
            "default": false
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Keep separate lists with different names, for example one per client. Saved in your own account, in the key-value store hayleai-instagram-watchlist.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum reels in total",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many reels across all inputs. Use it to cap what one run can cost.",
            "default": 200
          },
          "maxMinutesPerReel": {
            "title": "Skip videos longer than (minutes)",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Videos longer than this are returned as skipped rows and are not charged.",
            "default": 15
          },
          "language": {
            "title": "Language (optional)",
            "type": "string",
            "description": "Two-letter language code such as en, es, de. Leave empty to detect it automatically for each reel."
          },
          "translateToEnglish": {
            "title": "Translate to English",
            "type": "boolean",
            "description": "Output English text for reels spoken in another language.",
            "default": false
          },
          "includeSegments": {
            "title": "Include timestamped segments",
            "type": "boolean",
            "description": "Adds a list of segments with start and end times to each row.",
            "default": true
          },
          "includeSubtitles": {
            "title": "Include SRT and VTT subtitles",
            "type": "boolean",
            "description": "Adds ready-to-use SRT and VTT subtitle text to each row.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}