{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Chapters & Shorts Clip Finder - AI Video Timestamps",
    "description": "YouTube chapters and ranked Shorts clips for your own videos: send the file, YouTube Studio captions (SRT/VTT) or a transcript scraper's dataset. Hooks, titles, tags. 🎬",
    "version": "1.0",
    "x-build-id": "aKZMljN0frw70mbQO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~youtube-chapters-clip-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-youtube-chapters-clip-finder",
        "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/helenisapi~youtube-chapters-clip-finder/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-youtube-chapters-clip-finder",
        "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/helenisapi~youtube-chapters-clip-finder/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-youtube-chapters-clip-finder",
        "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": {
          "datasetId": {
            "title": "Transcript dataset (from a YouTube transcript scraper)",
            "type": "string",
            "description": "ID of an Apify dataset whose items carry a timestamped transcript, e.g. the dataset of a YouTube transcript scraper run: their transcript, captions, timestamped, data or segments arrays, or an SRT/VTT text field, work as is. One row per video; items without a transcript are skipped. Required unless `transcriptUrls` or `mediaUrls` is set. This actor takes no YouTube video links."
          },
          "transcriptUrls": {
            "title": "Transcript file links",
            "type": "array",
            "description": "Links to transcript files, one per item: SRT, WebVTT, timestamped TXT ('[01:23] words') or JSON segments, up to 5 MB each, e.g. [\"https://example.com/episode-12.srt\"]. Captions downloaded from YouTube Studio (.srt or .vtt) work. Required unless `datasetId` or `mediaUrls` is set. Not YouTube page links.",
            "items": {
              "type": "string"
            }
          },
          "mediaUrls": {
            "title": "Audio or video file links",
            "type": "array",
            "description": "Direct links to your own audio or video files, one per item: MP4, MOV, WEBM, MP3, M4A, WAV..., up to 150 MB and 90 minutes each, e.g. [\"https://example.com/my-video.mp4\"]. Transcribed first (audio-minute events), then analysed. Required unless `datasetId` or `transcriptUrls` is set. YouTube, TikTok or Instagram page links do not work. Apify free plan: files up to 10 minutes.",
            "items": {
              "type": "string"
            }
          },
          "clips": {
            "title": "Clips per video",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Short-form clip suggestions per video, 0-10, best first. Default 5. Each clip has a start and end, a verbatim hook, an on-screen title, a caption with hashtags and a 0-100 virality score. 0 returns chapters, titles and tags only.",
            "default": 5
          },
          "clipMinSeconds": {
            "title": "Shortest clip (seconds)",
            "minimum": 5,
            "maximum": 170,
            "type": "integer",
            "description": "Shortest clip, in seconds, 5-170. Default 15. Clips start and end on sentence boundaries. Must be lower than `clipMaxSeconds`, else both fall back to 15 and 60.",
            "default": 15
          },
          "clipMaxSeconds": {
            "title": "Longest clip (seconds)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Longest clip, in seconds, 10-180. Default 60. YouTube Shorts allow up to 180 seconds, TikTok and Reels more. Must be higher than `clipMinSeconds`, else both fall back to 15 and 60.",
            "default": 60
          },
          "language": {
            "title": "Output language",
            "type": "string",
            "description": "Language of the chapter titles, summary, title ideas, description, tags and clip captions, as an ISO code or an English name, e.g. \"en\" or \"Spanish\". Leave empty to write in the video's own language. Quotes and hooks stay verbatim."
          },
          "maxConcurrency": {
            "title": "Parallel videos",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many videos are analysed at the same time, 1-5. Default 3. Only changes the speed, not the results.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}