{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Transcript AI Analyzer: Clips, Quotes & Timestamps",
    "description": "Turn YouTube transcripts into timestamped moments: clip-worthy passages, claims and statistics, sponsor reads, brand mentions, audience questions, calls to action. Paste SRT/VTT/text or pick the dataset of any transcript Actor. Quotes are copied, never invented.",
    "version": "0.2",
    "x-build-id": "JzYobUsYmMan0kT8e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reliable_tools~youtube-transcript-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reliable_tools-youtube-transcript-extractor",
        "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/reliable_tools~youtube-transcript-extractor/runs": {
      "post": {
        "operationId": "runs-sync-reliable_tools-youtube-transcript-extractor",
        "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/reliable_tools~youtube-transcript-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-reliable_tools-youtube-transcript-extractor",
        "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": {
          "transcripts": {
            "title": "Transcripts to analyze",
            "type": "array",
            "description": "One entry per video. Each entry is either a string (SRT, WebVTT, lines like \"1:23 text\", or plain text) or an object with \"transcript\" (string or list of {text, start, duration}) plus optional \"videoUrl\", \"title\", \"channel\". Output rows of most YouTube transcript Actors can be pasted as they are. Timestamps give each moment a start time and a link that opens the video at that second. Up to 50 per run."
          },
          "transcriptDatasetId": {
            "title": "Transcript dataset ID",
            "type": "string",
            "description": "Optional: Pick an Apify dataset (or pass its ID over the API) in your account that holds transcripts, for example the default dataset of a run of any YouTube transcript Actor. The first 50 rows are analyzed; fields are matched automatically (videoId/url, title, transcript/segments/captions/text). The Actor only gets read access to this dataset."
          },
          "find": {
            "title": "Moments to find",
            "type": "array",
            "description": "Pick what the AI should look for in each transcript. Leave empty for transcripts only. Charged once per video that gets analyzed, no matter how many options you pick.",
            "items": {
              "type": "string",
              "enum": [
                "clip_worthy",
                "product_mentions",
                "claims_statistics",
                "audience_questions",
                "calls_to_action",
                "sponsor_segments"
              ],
              "enumTitles": [
                "Clip-worthy moments",
                "Product and brand mentions",
                "Claims and statistics",
                "Questions from the audience",
                "Calls to action",
                "Sponsor segments"
              ]
            }
          },
          "urls": {
            "title": "YouTube URLs",
            "type": "array",
            "description": "YouTube video, playlist or channel URLs. Note: YouTube currently serves caption text only to its own apps, so URL rows return video details and caption availability without transcript text (not charged). To get moments, supply the transcript under \"Transcripts\" or \"Transcript dataset ID\".",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerSource": {
            "title": "Max videos per playlist or channel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the newest videos to take from each playlist or channel URL (up to 50). Single video URLs are always included. A run processes at most 50 videos in total.",
            "default": 10
          },
          "language": {
            "title": "Preferred transcript language",
            "type": "string",
            "description": "Language code such as en, de, es. Creator subtitles in this language win, then auto-generated ones. If the language is missing, the original language track is used. The AI works best on English.",
            "default": "en"
          },
          "maxMomentsPerOption": {
            "title": "Max moments per option",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Upper limit of moments returned per selected option and video. The highest probability moments are kept.",
            "default": 5
          },
          "minProbabilityPercent": {
            "title": "Minimum probability (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return moments whose AI check probability is at least this value. Lower it to see more borderline moments.",
            "default": 60
          },
          "includeTranscript": {
            "title": "Include transcript lines",
            "type": "boolean",
            "description": "Adds the timestamped transcript lines to each result when a transcript is available. Off by default: results contain only the moments (short quotes with a timestamp link).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}