{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts & Video Transcript, Subtitles & Hook [$0.50/1K]",
    "description": "[$0.50/1K] Ultra-fast, no-browser YouTube Shorts & Video Transcript, SRT Subtitles & 3s Viral Hook API. Extract clean text, timestamps, SRT, views, WPM & hooks by URL, @channel, or keyword in 256 MB RAM.",
    "version": "1.3",
    "x-build-id": "92KBbGkFjN2nM66D2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/appropriate_ideal_ksi~youtube-shorts-transcript-subtitles-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-appropriate_ideal_ksi-youtube-shorts-transcript-subtitles-pro",
        "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/appropriate_ideal_ksi~youtube-shorts-transcript-subtitles-pro/runs": {
      "post": {
        "operationId": "runs-sync-appropriate_ideal_ksi-youtube-shorts-transcript-subtitles-pro",
        "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/appropriate_ideal_ksi~youtube-shorts-transcript-subtitles-pro/run-sync": {
      "post": {
        "operationId": "run-sync-appropriate_ideal_ksi-youtube-shorts-transcript-subtitles-pro",
        "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": "YouTube Video or Shorts URLs / IDs",
            "type": "array",
            "description": "Direct YouTube Shorts URLs (youtube.com/shorts/...), watch URLs (youtube.com/watch?v=...), youtu.be links, or 11-character video IDs.",
            "default": [
              "https://www.youtube.com/shorts/H1rbG6TGfO0",
              "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
            ],
            "items": {
              "type": "string"
            }
          },
          "bulkUrlsText": {
            "title": "Bulk Video / Shorts URLs Paste (Up to 10,000)",
            "type": "string",
            "description": "Optional newline- or comma-separated YouTube/Shorts URLs or video IDs."
          },
          "channelHandles": {
            "title": "Creator @Handles or Channel URLs (Optional)",
            "type": "array",
            "description": "Extract transcripts from the newest Shorts or Videos of any YouTube creator (e.g. ['@nateherk', '@veritasium']).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "YouTube Search Keywords (Optional)",
            "type": "array",
            "description": "Discover videos or Shorts matching search keywords and extract their transcripts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "shortsOnly": {
            "title": "Shorts Only (<= 60s) When Scraping Channels or Search",
            "type": "boolean",
            "description": "When using channelHandles or searchQueries, restrict discovery to YouTube Shorts (<= 60 seconds).",
            "default": false
          },
          "preferredLanguage": {
            "title": "Preferred Subtitle Language (ISO Code)",
            "type": "string",
            "description": "Preferred transcript language code (e.g. 'en', 'es', 'de', 'fr', 'pt', 'hi', 'ja'). Falls back to first available track if missing.",
            "default": "en"
          },
          "translateToLanguage": {
            "title": "Auto-Translate Transcript To Language (Optional)",
            "type": "string",
            "description": "Optional target ISO language code (e.g. 'en') using YouTube's built-in caption translation (`tlang`)."
          },
          "includeTimestamps": {
            "title": "Include Millisecond Timestamp Segments",
            "type": "boolean",
            "description": "Include structured `segments` array (`start_ms`, `duration_ms`, `text`).",
            "default": true
          },
          "includeSrt": {
            "title": "Include Ready-to-Use .SRT Subtitle File String",
            "type": "boolean",
            "description": "Generate formatted SubRip (`.srt`) subtitle output in `srt_subtitles`.",
            "default": false
          },
          "stripMusicTags": {
            "title": "Strip [Music] / ♪ Sound Cues From Clean Text",
            "type": "boolean",
            "description": "Clean `[Music]`, `[Applause]`, and `♪` markers out of `transcript_text` and `hook_first_3s`.",
            "default": true
          },
          "onlyWithTranscript": {
            "title": "Only Emit Videos With Non-Empty Transcript (Zero Waste)",
            "type": "boolean",
            "description": "Skip and never charge for videos that have captions disabled.",
            "default": true
          },
          "maxVideosPerSource": {
            "title": "Max Videos Per @Channel or Keyword",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum videos/Shorts to collect per channel handle or search keyword.",
            "default": 15
          },
          "maxResults": {
            "title": "Maximum Total Transcripts",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum total video transcripts to output in this run (up to 10,000).",
            "default": 25
          },
          "onlyNewVideos": {
            "title": "Only New Videos (Stateful Deduplication)",
            "type": "boolean",
            "description": "Skip video IDs already processed in prior scheduled runs via a named Key-Value Store.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Deduplication Key-Value Store Name",
            "type": "string",
            "description": "Named Apify Key-Value Store used when onlyNewVideos is enabled.",
            "default": "youtube-transcripts-seen-ids"
          },
          "concurrency": {
            "title": "HTTP/2 Worker Concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Parallel HTTP/2 Innertube workers (auto-tuned safely for 256 MB RAM).",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Direct-First + Residential Fallback)",
            "type": "object",
            "description": "Tries $0 direct HTTP/2 first and automatically falls back to Residential Proxy only when YouTube challenges shared cloud IPs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}