{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels Transcript Scraper & Hook Analyzer",
    "description": "Instagram Reels transcript scraper and hook analyzer: spoken transcript, on-screen text (OCR), hook and its type, timed beats, CTA and views against the creator's median. Add your own checklist, new scripts and AI-content checks. Pay only for results. No login.",
    "version": "0.2",
    "x-build-id": "0SlQt25W6zcssXhvg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datapi~instagram-reels-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datapi-instagram-reels-transcript-scraper",
        "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/datapi~instagram-reels-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datapi-instagram-reels-transcript-scraper",
        "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/datapi~instagram-reels-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datapi-instagram-reels-transcript-scraper",
        "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": {
          "reelUrls": {
            "title": "Reel links",
            "type": "array",
            "description": "Mode 1. Links like https://www.instagram.com/reel/XXXX/ or bare shortcodes. One row per reel. A reel you paid for in the last 90 days is delivered again for free.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsMode1": {
            "title": "Max reels (Mode 1)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stops after this many reels.",
            "default": 50
          },
          "datasetId": {
            "title": "Reels from a dataset",
            "type": "string",
            "description": "ID of a dataset from another actor (for example an Instagram scraper). Rows with url, inputUrl, postUrl or shortCode are read; rows that already carry the video are analyzed without reading Instagram again."
          },
          "usernames": {
            "title": "Creator handles",
            "type": "array",
            "description": "Mode 2. Public Instagram handles without @. The run reads the creator's recent reels, computes their median views, then analyzes the reels you asked for.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Which reels to analyze",
            "enum": [
              "top",
              "newest"
            ],
            "type": "string",
            "description": "Top performing = most viewed first. Newest = most recent first.",
            "default": "top"
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "A date (2026-03-01) or a span back from today (\"3 weeks\", \"10 days\", \"2 months\"). Creator catalogs stop reading at this date; search results are filtered."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "A date (2026-06-30) or a span back from today (\"1 week\"). Reels newer than this are skipped."
          },
          "postedWithinDays": {
            "title": "Only reels posted in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Older form of \"Posted after\" in days. Leave empty for the whole recent catalog."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip reels with fewer views."
          },
          "maxItemsMode2": {
            "title": "Max reels per creator (Mode 2)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many reels to analyze per handle. Reels beyond this are listed in NOT_ANALYZED, free.",
            "default": 20
          },
          "maxCatalogReels": {
            "title": "Creator catalog depth (Mode 2)",
            "minimum": 5,
            "maximum": 5000,
            "type": "integer",
            "description": "How many of each creator's latest reels to read for the median and to pick the top ones. The first 60 are included in the reel price; each further page of 12 reels costs $0.015 (catalog-page). Leave empty for about 3× the reels you analyze (24–60)."
          },
          "searchQueries": {
            "title": "Search words or phrases",
            "type": "array",
            "description": "Mode 3. Words or short phrases, one per row — the reels Instagram's search returns for them, from any creator. A #tag typed here is searched as a hashtag.",
            "items": {
              "type": "string"
            }
          },
          "searchHashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Mode 3. Hashtags, with or without #.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSearch": {
            "title": "Max reels per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Per word or hashtag. Reels found beyond it are listed in NOT_ANALYZED, free.",
            "default": 10
          },
          "maxItemsMode3": {
            "title": "Max reels in total (Mode 3)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Across every search. The searches take turns, so a small total still covers each one. A reel found by two searches is analyzed and charged once.",
            "default": 50
          },
          "sortByMode3": {
            "title": "Which found reels to analyze",
            "enum": [
              "top",
              "newest",
              "instagram"
            ],
            "type": "string",
            "description": "Most viewed first, newest first, or the order Instagram returned them in.",
            "default": "top"
          },
          "minViewsMode3": {
            "title": "Minimum views (Mode 3)",
            "minimum": 0,
            "type": "integer",
            "description": "Only found reels with at least this many views."
          },
          "newOutliersOnly": {
            "title": "Only new outliers (monitoring)",
            "type": "boolean",
            "description": "Mode 2. For scheduled runs: analyze only reels you have never received that beat the creator's median views by the threshold below and are old enough to judge. A run with nothing new returns no rows. Charged per creator checked.",
            "default": false
          },
          "outlierThreshold": {
            "title": "Outlier threshold (× creator median)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "A reel counts as an outlier at this multiple of the creator's median views.",
            "default": 2
          },
          "outlierMinAgeDays": {
            "title": "Judge reels older than (days)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Reels younger than this have not collected their views yet and are skipped.",
            "default": 2
          },
          "outlierMaxAgeDays": {
            "title": "Judge reels younger than (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Older reels are not news anymore and are skipped.",
            "default": 14
          },
          "scriptsPerReel": {
            "title": "Script variants per reel",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Write new scripts that reuse the structure (hook type, beats, CTA) of the best reels in this run, on your topic. 0 = off. Charged per variant.",
            "default": 0
          },
          "scriptsFromTopReels": {
            "title": "From the top N reels",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "The best reels by multiple of the creator's median (then by views) are used as sources.",
            "default": 3
          },
          "scriptTopic": {
            "title": "Topic of the new scripts",
            "type": "string",
            "description": "Your product, offer or subject. Empty = same niche, different angle."
          },
          "scriptTone": {
            "title": "Tone",
            "type": "string",
            "description": "For example: friendly, expert, funny. Empty = same as the source."
          },
          "scriptLanguage": {
            "title": "Script language",
            "type": "string",
            "description": "ISO 639-1 code (en, es, ru …). Empty = the source reel's language."
          },
          "report": {
            "title": "Comparison report",
            "type": "boolean",
            "description": "After the reels are analyzed: compare creators (median views, outlier share, hook types, formats, CTAs, length, posting cadence), a niche benchmark and short insights, as REPORT.html and REPORT (JSON). Needs at least 3 analyzed reels. Charged once per run.",
            "default": false
          },
          "reportLanguage": {
            "title": "Report language",
            "type": "string",
            "description": "ISO 639-1 code. Empty = the most common language of the reels."
          },
          "checklist": {
            "title": "Checklist questions",
            "type": "array",
            "description": "Yes/no questions each reel is checked against, with evidence and the second it happens. Example: Is the product shown? Is there an #ad disclosure? Does it open with a question? Up to 15. Charged per scored reel.",
            "items": {
              "type": "string"
            }
          },
          "brief": {
            "title": "Creative brief",
            "type": "string",
            "description": "Paste a brief (audience, message, tone, must-show, must-say). Every requirement is marked yes / partly / no / unclear with evidence and the second it happens; the 1–10 fit score is computed from those marks (1 + 9 × average, yes = 1, partly = 0.5)."
          },
          "aiSignals": {
            "title": "AI signals in the video",
            "type": "boolean",
            "description": "For each reel: signs of a synthetic voice, an AI avatar or AI-generated footage seen or heard in the video, each with evidence. Signals, not a verdict. Charged per reel ($0.02).",
            "default": false
          },
          "aiTextCheck": {
            "title": "AI-written text check",
            "type": "boolean",
            "description": "Probability that the transcript and the caption were written by AI. Texts under 300 characters are not checked and not charged; longer texts are checked on their first 3,000 characters. Charged per reel only when a text was checked ($0.05).",
            "default": false
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "full",
              "compact"
            ],
            "type": "string",
            "description": "Full = every field. Compact = short rows for AI agents and automations (hook, CTA, summary, views, scores), without transcripts.",
            "default": "full"
          },
          "analyzeLongVideos": {
            "title": "Analyze videos longer than 3 minutes",
            "type": "boolean",
            "description": "Videos up to 20 minutes are analyzed and charged as one reel plus an Extra minute for each started minute beyond the first 3. Off: they come back as free too_long rows.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel analyses",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many reels are analyzed at the same time.",
            "default": 5
          },
          "carousels": {
            "title": "Carousel posts",
            "enum": [
              "skip",
              "analyze",
              "only"
            ],
            "type": "string",
            "description": "Skip carousels (default), analyze them along with reels, or analyze only carousels. A carousel costs $0.22 with up to 10 images, $0.03 per 5 more images and $0.07 per video slide; only what was analyzed is charged.",
            "default": "skip"
          },
          "maxCarouselSlides": {
            "title": "Slides per carousel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "At most this many slides of each carousel are analyzed (Instagram allows 20). Slides left out are not charged.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}