{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Scraper - Transcripts, Videos, Comments [NO API KEY] ✅",
    "description": "Extract videos, channels, comments, and full timestamped transcripts in one tool - without YouTube Data API quota limits. Get metadata, comment threads with reply chains, and transcripts in any available language. Built for AI/RAG engineers, content strategists, and SEO researchers.",
    "version": "0.0",
    "x-build-id": "dQnYU3SW6CbJ5X4dg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unseenuser~Youtube-all-in-one-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unseenuser-Youtube-all-in-one-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/unseenuser~Youtube-all-in-one-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unseenuser-Youtube-all-in-one-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/unseenuser~Youtube-all-in-one-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unseenuser-Youtube-all-in-one-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "STEP 1 - Pick what you want to scrape",
            "enum": [
              "channel_intelligence",
              "channel_videos",
              "channel_shorts",
              "video_details",
              "search",
              "hashtag_search",
              "comments_extraction",
              "trending_shorts",
              "playlist",
              "community"
            ],
            "type": "string",
            "description": "Each mode below tells you exactly which input section to fill in (in step 2).",
            "default": "channel_intelligence"
          },
          "channelInputs": {
            "title": "Channels",
            "type": "array",
            "description": "Add channels in any format - the actor figures out which is which: full URL (https://www.youtube.com/@MrBeast), @handle (@MrBeast), bare handle (MrBeast), or channel ID (UC-9-kyTW8ZkZNDHQJ6FgpwQ).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeChannelVideoExtras": {
            "title": "Enrich each video with full details (Channel Videos mode only)",
            "type": "boolean",
            "description": "ONLY APPLIES TO 'Channel Videos' MODE - ignored in every other mode. When ON: every video row carries description, likeCount, and commentCount, fetched via a per-video API call. Adds +$0.003 per video. When OFF: those three fields are null but the run is much cheaper. Default ON.",
            "default": true
          },
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "One full YouTube URL per line. Both regular videos and Shorts work. Examples: https://www.youtube.com/watch?v=dQw4w9WgXcQ or https://www.youtube.com/shorts/abc123",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeTranscripts": {
            "title": "(Video Details only) Also fetch transcripts",
            "type": "boolean",
            "description": "Adds an extra API call per video. +$0.005 per video. Returns null if the video has no captions.",
            "default": false
          },
          "transcriptLanguage": {
            "title": "(Video Details only) Transcript language",
            "type": "string",
            "description": "Two-letter ISO code: en, es, fr, de, pt, ja, etc. Falls back to null if that language isn't available.",
            "default": "en"
          },
          "maxCommentsPerVideo": {
            "title": "(Comments only) Max comments per video",
            "minimum": 1,
            "maximum": 7000,
            "type": "integer",
            "description": "Cap on top-level comments per video. Provider limits: ~1,000 top comments and ~7,000 newest comments.",
            "default": 100
          },
          "maxCommentReplies": {
            "title": "(Comments only) Max replies per comment",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on replies per comment thread. Set to 0 to skip replies entirely.",
            "default": 50
          },
          "sortComments": {
            "title": "(Comments only) Sort comments by",
            "enum": [
              "top",
              "newest"
            ],
            "type": "string",
            "description": "Top = highest engagement first. Newest = most recent first.",
            "default": "top"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keyword search queries, one per line. Example: 'react tutorial 2026'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "contentFilter": {
            "title": "(Search only) Filter results by type",
            "enum": [
              "all",
              "videos",
              "shorts",
              "live",
              "playlists"
            ],
            "type": "string",
            "description": "All = mixed videos / shorts / channels / playlists / live. Pick a specific type to narrow.",
            "default": "all"
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Hashtags WITHOUT the # prefix, one per line. Example: coding, ai, mrbeast.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code. Examples: US, GB, DE, BR, IN, JP, MX, FR, CA, AU.",
            "default": "US"
          },
          "playlistUrls": {
            "title": "Playlist URLs",
            "type": "array",
            "description": "Full YouTube playlist URLs, one per line. Example: https://www.youtube.com/playlist?list=PL...",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "communityPostUrls": {
            "title": "Community post URLs",
            "type": "array",
            "description": "Full YouTube community post URLs, one per line. Example: https://www.youtube.com/post/UgkxvzJ...",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerChannel": {
            "title": "(Channel Videos / Shorts only) Max items per channel",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stops paginating once this many videos / shorts have been collected for a channel.",
            "default": 100
          },
          "sortVideos": {
            "title": "(Channel Videos only) Sort order",
            "enum": [
              "latest",
              "popular"
            ],
            "type": "string",
            "description": "Latest = most recent first. Popular = highest view count first.",
            "default": "latest"
          },
          "searchResultsPerQuery": {
            "title": "(Search / Hashtag Search only) Max results per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap per query. Pagination stops once this many results are collected.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}