{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Scraper All-in-One: Videos & Transcripts",
    "description": "The all-in-one YouTube scraper: videos, Shorts, live streams, channels and playlists with full details, plus comments and transcripts in the same run. Search with every YouTube filter or paste links. Date filter and channel data included. Export via API, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "ccy2ZdTTHmyo7SzYE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/t800solutions~youtube-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-t800solutions-youtube-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/t800solutions~youtube-scraper/runs": {
      "post": {
        "operationId": "runs-sync-t800solutions-youtube-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/t800solutions~youtube-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-t800solutions-youtube-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": {
          "search_terms": {
            "title": "🔍 Search terms",
            "type": "array",
            "description": "What to search for on YouTube, one term per line (up to 20), exactly as you would type it in the YouTube search box. Example: web scraping tutorial.",
            "items": {
              "type": "string"
            }
          },
          "start_urls": {
            "title": "🔗 YouTube links",
            "type": "array",
            "description": "Links to videos, channels (@name), playlists, Shorts or YouTube search pages, one per line (up to 1,000). A channel link returns its videos; a playlist link returns its videos; a video link returns that video.",
            "items": {
              "type": "string"
            }
          },
          "max_videos": {
            "title": "💯 Max videos per search or link",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "How many regular videos to get for each search term or link (default 50, up to 20,000). Channels and playlists are read from the newest video on.",
            "default": 50
          },
          "max_shorts": {
            "title": "🎬 Max Shorts per search or link",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "How many Shorts to get for each search term or channel (0 = none). Shorts count as videos in the price.",
            "default": 0
          },
          "max_live_streams": {
            "title": "🔴 Max live streams per search or link",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "How many live streams (current and past) to get for each search term or channel (0 = none). Live streams count as videos in the price.",
            "default": 0
          },
          "details": {
            "title": "📋 Details",
            "enum": [
              "full",
              "list"
            ],
            "type": "string",
            "description": "Full details opens each video and gets everything: likes, full description, exact publish date, comment count, keywords, category and the channel's subscribers and totals. List only keeps what the YouTube list shows and costs less. Comments and transcripts always use Full details.",
            "default": "full"
          },
          "only_newer_than": {
            "title": "📅 Only videos newer than",
            "type": "string",
            "description": "Keep only videos published after this date, for channels and playlists. A date like 2026-01-15, or a number of days like 30 days. Included in the price (no add-on)."
          },
          "channel_sort": {
            "title": "↕️ Sort channel videos",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of a channel's videos. Newest first is the YouTube default.",
            "default": "newest"
          },
          "search_sort": {
            "title": "↕️ Sort search results",
            "enum": [
              "relevance",
              "upload_date",
              "view_count",
              "rating"
            ],
            "type": "string",
            "description": "Order of the search results.",
            "default": "relevance"
          },
          "upload_date": {
            "title": "📆 Upload date",
            "enum": [
              "any",
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only videos uploaded in this period.",
            "default": "any"
          },
          "duration": {
            "title": "⏱️ Duration",
            "enum": [
              "any",
              "short",
              "medium",
              "long"
            ],
            "type": "string",
            "description": "Only videos of this length.",
            "default": "any"
          },
          "features": {
            "title": "✨ Features",
            "type": "array",
            "description": "Only videos with these features (all of them).",
            "items": {
              "type": "string",
              "enum": [
                "live",
                "4k",
                "hd",
                "subtitles",
                "creative_commons",
                "360",
                "vr180",
                "3d",
                "hdr",
                "location",
                "purchased"
              ],
              "enumTitles": [
                "Live",
                "4K",
                "HD",
                "Subtitles/CC",
                "Creative Commons",
                "360°",
                "VR180",
                "3D",
                "HDR",
                "Location",
                "Purchased"
              ]
            },
            "default": []
          },
          "comments": {
            "title": "💬 Add-on: Comments ($)",
            "type": "boolean",
            "description": "Get the comments of each video, charged per comment delivered. Turns on Full details.",
            "default": false
          },
          "max_comments": {
            "title": "Max comments per video",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many top-level comments to get for each video (default 100).",
            "default": 100
          },
          "comments_sort": {
            "title": "Comments order",
            "enum": [
              "top",
              "newest"
            ],
            "type": "string",
            "description": "Top comments is the YouTube default.",
            "default": "top"
          },
          "comment_replies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Also get the replies to each comment, up to 'Max replies per comment', charged as comments.",
            "default": false
          },
          "max_replies_per_comment": {
            "title": "Max replies per comment",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "With replies on, how many replies to get for each comment (default 10).",
            "default": 10
          },
          "comments_newer_than": {
            "title": "Only comments newer than",
            "type": "string",
            "description": "Keep only comments after this date: 2026-01-15 or 30 days. Works best with Newest first."
          },
          "transcript": {
            "title": "📝 Add-on: Transcript ($)",
            "type": "boolean",
            "description": "Get the spoken text of each video from YouTube's own captions (manual or auto-generated), charged per started hour of video (a video up to 60 minutes counts 1). Videos without captions are not charged. Turns on Full details.",
            "default": false
          },
          "transcript_languages": {
            "title": "Transcript languages",
            "type": "array",
            "description": "Language codes in order of preference, e.g. en, pt, es. A short code finds regional captions too (pt finds pt-BR). Use any to take whatever the video has.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "transcript_format": {
            "title": "Transcript format",
            "enum": [
              "text",
              "timestamped",
              "srt",
              "vtt",
              "json"
            ],
            "type": "string",
            "description": "How the transcript is delivered in the transcript column.",
            "default": "text"
          },
          "transcript_prefer_manual": {
            "title": "Prefer manual captions",
            "type": "boolean",
            "description": "Use captions written by the creator when they exist; fall back to YouTube's auto-generated ones.",
            "default": true
          },
          "language": {
            "title": "🌍 Language",
            "enum": [
              "en",
              "pt",
              "es",
              "fr",
              "de",
              "it",
              "nl",
              "pl",
              "tr",
              "ru",
              "uk",
              "ar",
              "hi",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "vi",
              "id",
              "th"
            ],
            "type": "string",
            "description": "Language of the YouTube interface used to read titles, dates and counts.",
            "default": "en"
          },
          "country": {
            "title": "🌎 Country",
            "type": "string",
            "description": "Two-letter country code (US, BR, GB, DE...). Search results depend on the country.",
            "default": "US"
          },
          "max_total_videos": {
            "title": "🧮 Max videos per run",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Safety cap for the whole run, across all searches and links (default 100,000).",
            "default": 100000
          },
          "concurrency": {
            "title": "⚡ Videos at the same time",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many videos are opened at the same time for Full details, comments and transcripts (default 8).",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}