{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Transcript Scraper",
    "description": "⚡ From $1.00/1K — Zero-Cookie YouTube Transcript, SRT & Heatmap Scraper: Extract clean multi-language transcripts, timestamped JSON segments, ready-to-save .SRT subtitles, and Top 5 Most-Replayed Heatmap Golden Peaks matched to exact spoken sentences. MCP-ready for LLMs & RAG.",
    "version": "2.0",
    "x-build-id": "qVpZvG1GDIH2zHjF4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jistudio~youtube-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jistudio-youtube-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/jistudio~youtube-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jistudio-youtube-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/jistudio~youtube-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jistudio-youtube-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": {
          "mode": {
            "title": "1. Extraction Mode",
            "enum": [
              "video_download",
              "transcript_and_heatmap",
              "youtube_search",
              "music_search_and_lyrics"
            ],
            "type": "string",
            "description": "Select the YouTube extraction mode to run.",
            "default": "transcript_and_heatmap"
          },
          "videoUrls": {
            "title": "2. YouTube Video / Shorts / Music URLs or Video IDs",
            "type": "array",
            "description": "Paste one or more YouTube URLs (youtube.com/watch?v=..., youtu.be/..., youtube.com/shorts/..., music.youtube.com/watch?v=...) or 11-character Video IDs.",
            "default": [
              "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
            ],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "3. Search Keywords / Song Queries (for Search or Music modes)",
            "type": "array",
            "description": "Keywords to search on YouTube or YouTube Music (e.g. 'python web scraping tutorial', 'Blinding Lights The Weeknd').",
            "default": [
              "python web scraping tutorial"
            ],
            "items": {
              "type": "string"
            }
          },
          "downloadFormat": {
            "title": "4. Media Download Format (for Video Downloader & Music modes)",
            "enum": [
              "muxed_mp4",
              "audio_m4a",
              "best_video_only",
              "urls_only"
            ],
            "type": "string",
            "description": "Choose which stream to download into Apify Key-Value Store (eliminates IP-locked 403 errors so you can download directly from any browser or server), or 'urls_only' for instant metadata & stream URLs.",
            "default": "muxed_mp4"
          },
          "maxDownloadSizeMB": {
            "title": "5. Max Download Size per File (MB)",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Safety limit per downloaded media file saved to Apify Key-Value Store (default 50 MB).",
            "default": 50
          },
          "preferredLanguage": {
            "title": "6. Preferred Transcript / Caption Language (ISO Code)",
            "type": "string",
            "description": "Preferred caption track language (e.g. 'en', 'es', 'de', 'fr', 'ja', 'vi', 'auto'). Falls back to first available caption track if not present.",
            "default": "en"
          },
          "country": {
            "title": "7. Region / Country Code (ISO-2)",
            "type": "string",
            "description": "Country context for YouTube search & regional catalog (e.g. US, GB, DE, JP, VN).",
            "default": "US"
          },
          "maxResults": {
            "title": "8. Max Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of videos / tracks / search results to return (1 - 5,000, supports automatic pagination).",
            "default": 10
          },
          "enrichDetails": {
            "title": "9. Enrich Search Results with Exact Views, Captions & Streams",
            "type": "boolean",
            "description": "When enabled in Search mode, enriches top results with exact numeric view counts, duration, keywords, and available caption languages.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "10. Proxy Configuration (Auto-Fallback on YouTube Datacenter Bot-Checks)",
            "type": "object",
            "description": "Optional Apify Proxy or custom proxy URL. Used automatically if YouTube triggers a datacenter IP bot check ('Sign in to confirm you're not a bot'). Apify Proxy (default) or Residential proxy achieves ~100% success across all videos & VEVO music tracks.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}