{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Intelligence Analyzer — AI Transcripts & Analysis",
    "description": "Turn YouTube, TikTok and Instagram speech into transcripts, source-linked summaries, chapters, claims, actions and answers. For research and content briefs. Speech analysis only; pay per delivered video plus usage. Failed analysis preserves an unbilled transcript.",
    "version": "0.1",
    "x-build-id": "QSYRCRVCi4qwUpDW5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~video-intelligence-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-video-intelligence-analyzer",
        "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/khadinakbar~video-intelligence-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-video-intelligence-analyzer",
        "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/khadinakbar~video-intelligence-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-video-intelligence-analyzer",
        "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": {
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Paste full YouTube, TikTok @creator/video/ID, or Instagram reel/post HTTPS URLs. Up to 20 combined inputs. Expand shortened TikTok share links first. Profiles and playlists are unsupported. YouTube needs public captions; short AI transcription on TikTok/Instagram is limited to 120 seconds.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Processing mode",
            "enum": [
              "analyze",
              "transcript"
            ],
            "type": "string",
            "description": "Choose analyze for a full transcript plus source-linked findings and question answers. Choose transcript to skip AI analysis. One corresponding result event per delivered video; failed analysis preserves an unbilled transcript.",
            "default": "analyze"
          },
          "questions": {
            "title": "Questions to answer",
            "type": "array",
            "description": "Ask up to 5 questions, each up to 300 characters. Answers cite exact transcript excerpts and segment IDs. Questions unsupported by speech return notInTranscript: true. These questions do not trigger web research.",
            "items": {
              "type": "string"
            }
          },
          "focus": {
            "title": "Analysis focus",
            "enum": [
              "general",
              "research",
              "marketing",
              "education"
            ],
            "type": "string",
            "description": "Select which spoken-content findings to emphasize. All focuses return the same output shape. Marketing analysis uses speech evidence and does not measure retention, engagement or visual creative performance.",
            "default": "general"
          },
          "outputLanguage": {
            "title": "Analysis output language",
            "type": "string",
            "description": "Name the language for generated analysis, such as English, Arabic or Urdu. Original transcript and evidence quotes remain in the source language. This setting does not translate captions or generate translated subtitles.",
            "default": "English"
          },
          "transcriptLanguage": {
            "title": "Preferred source caption language",
            "type": "string",
            "description": "Optional caption language code, for example en, es or en-US. Applied to supported YouTube/TikTok source routes. Omit to let the provider choose. Unavailable language tracks can return no transcript; this is not an automatic translation request."
          },
          "maxVideos": {
            "title": "Maximum delivered videos",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Deliver up to this many underlying videos, 1–20. Instagram carousel videos count separately and retain independent clocks. A cap stop is PARTIAL; no later analysis is dispatched. At most 20 combined URLs and supplied transcripts are accepted.",
            "default": 10
          },
          "maxProviderCostUsd": {
            "title": "Provider cost safety cap (USD)",
            "minimum": 0.001,
            "maximum": 1,
            "type": "number",
            "description": "Bound estimated upstream spend within this run ($0.001–$1). Reservations use published prices and include uncertain requests. This is separate from Apify event charges and platform usage, not a whole-run customer invoice cap. Set the run's Maximum cost per run to limit event spending.",
            "default": 0.1
          },
          "transcripts": {
            "title": "Supplied transcripts",
            "type": "array",
            "description": "Optional array of {id, text} or {id, segments:[{text,startSeconds,endSeconds}]}; title and sourceUrl are optional. Provide both times as null when unknown. IDs use letters, numbers, underscores and hyphens. Max 60,000 UTF-8 text bytes and 2,000 ordered segments per video; no silent truncation. Supplied speech skips source fetching.",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}