{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Scraper — Videos, Playlists and Community Posts",
    "description": "Collect actionable insights from YouTube channels automatically. This scraper retrieves video metadata, views, likes, descriptions, and upload history. Useful for content strategy, competitive research, analytics dashboards, and large-scale data extraction.",
    "version": "0.1",
    "x-build-id": "wRAXghri8sKs0SgBP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/simpleapi~youtube-channel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-simpleapi-youtube-channel-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/simpleapi~youtube-channel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-simpleapi-youtube-channel-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/simpleapi~youtube-channel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-simpleapi-youtube-channel-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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "🔗 YouTube channels",
            "type": "array",
            "description": "Channel URLs (https://www.youtube.com/@Handle or .../channel/UC…), bare @handles, or bare UC… channel IDs. One per line. Keyword search is not supported — every entry must resolve to a channel.",
            "default": [
              "https://www.youtube.com/@MKBHD"
            ],
            "items": {
              "type": "string"
            }
          },
          "scrapePlaylists": {
            "title": "📚 Playlists tab",
            "type": "boolean",
            "description": "Emit one playlist row per playlist on the channel's Playlists tab: playlist id, playlist URL, title, item-count badge and cover image. Channels without a Playlists tab return no playlist rows.",
            "default": true
          },
          "scrapePodcasts": {
            "title": "🎙️ Podcasts tab",
            "type": "boolean",
            "description": "Podcast collections are playlists under the hood but live on their own tab. They arrive as playlist rows labelled collectionType = podcast. Skipped automatically when the channel has no Podcasts tab.",
            "default": true
          },
          "maxPlaylists": {
            "title": "🔢 Series per channel",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Applied to the Playlists tab and to the Podcasts tab separately. YouTube serves 30 collections per request and this Actor pages beyond that (measured: 65 playlists + 1 podcast = 66 unique rows from a 3-page tab).",
            "default": 20
          },
          "playlistDetails": {
            "title": "🗂️ Open each series for last-updated, visibility & lifetime views",
            "type": "boolean",
            "description": "Costs one extra request per playlist and fills lastUpdatedText, visibility (public/unlisted), totalViewsText plus the exact totalViews, videoCount and ownerName. The Playlists tab itself carries none of those.",
            "default": true
          },
          "expandPlaylistVideos": {
            "title": "📂 List the videos inside each series (child rows)",
            "type": "boolean",
            "description": "Emits one playlistVideo row per video in each playlist (isChild = true, parentId = the playlist id) with position, duration, views text and publish age. Reuses the detail request, then pages 100 videos at a time.",
            "default": false
          },
          "maxVideosPerPlaylist": {
            "title": "🎞️ Videos per series",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Own cap, independent of the per-tab cap below. YouTube returns 100 playlist videos per request.",
            "default": 50
          },
          "scrapeChannelInfo": {
            "title": "🏠 Channel profile & About",
            "type": "boolean",
            "description": "Emit one channel row per channel: description, join date, country, subscriber text, lifetime view count, video count, avatar, banner, external links and verification badge.",
            "default": true
          },
          "scrapeVideos": {
            "title": "🎬 Long-form videos",
            "type": "boolean",
            "description": "Emit one video row per upload from the Videos tab.",
            "default": true
          },
          "scrapeShorts": {
            "title": "📱 Shorts",
            "type": "boolean",
            "description": "Emit one short row per Short. Channels without a Shorts tab return no Shorts rows.",
            "default": true
          },
          "scrapeLiveStreams": {
            "title": "🔴 Live & past streams",
            "type": "boolean",
            "description": "Emit one livestream row per item on the Live tab. Channels without a Live tab return no livestream rows — YouTube silently serves the Home tab there, and this Actor detects that instead of mislabelling home videos as streams.",
            "default": true
          },
          "scrapePosts": {
            "title": "💬 Community posts",
            "type": "boolean",
            "description": "Emit one post row per community post, including image, poll and video attachments.",
            "default": true
          },
          "maxResults": {
            "title": "🔢 Items per section, per channel",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit for each enabled section (videos, Shorts, live streams, posts) on each channel. Every video-type item costs one extra request for its exact view/like count, so keep this small for quick runs. Playlists have their own two caps.",
            "default": 10
          },
          "sortOrderVideos": {
            "title": "🎥 Videos tab order",
            "enum": [
              "date",
              "viewCount",
              "oldest"
            ],
            "type": "string",
            "description": "Which of YouTube's own Videos-tab sort chips to use. Channels that do not offer Popular/Oldest chips fall back to newest-first, and the run log says so.",
            "default": "date"
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Apify Proxy is attached to every request the Actor makes (channel tabs, InnerTube calls, playlist pages and exact-count lookups). US residential is the most reliable option for YouTube; datacenter IPs are more likely to hit consent or bot interstitials.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}