{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Scraper: Videos, Shorts, Live, Playlists",
    "description": "Get YouTube channel stats (subscriber count, total views, video count, last upload, uploads per month) and list every video, Short, live stream and playlist of any channel: title, URL, views, duration and publish date. Newest, popular or oldest first; date filter. No API key.",
    "version": "0.4",
    "x-build-id": "olser4JX332gIcvQA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteacs~youtube-channel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteacs-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/siteacs~youtube-channel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-siteacs-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/siteacs~youtube-channel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-siteacs-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": [
          "channels"
        ],
        "properties": {
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "One per line: a channel URL (youtube.com/@handle, youtube.com/channel/UC..., /c/name or /user/name), an @handle or a channel id (UC...). A playlist URL lists that playlist's videos. Use Bulk edit to paste a long list. Video URLs are not channels: for one video's full details use YouTube Video Details. A video URL lists the channel that posted it. A channel given twice is listed once.",
            "items": {
              "type": "string"
            }
          },
          "videos": {
            "title": "Videos",
            "type": "boolean",
            "description": "List the channel's Videos tab (regular uploads).",
            "default": true
          },
          "shorts": {
            "title": "Shorts",
            "type": "boolean",
            "description": "List the channel's Shorts tab. The Shorts list shows no date or length, so the actor takes both from the channel's uploads list.",
            "default": true
          },
          "live": {
            "title": "Live streams",
            "type": "boolean",
            "description": "List the channel's Live tab: past streams, streams live now and scheduled ones.",
            "default": true
          },
          "playlists": {
            "title": "Playlists",
            "type": "boolean",
            "description": "List the channel's playlists (title, URL, number of videos). Charged as playlists, not videos.",
            "default": false
          },
          "includeAbout": {
            "title": "Channel About row",
            "type": "boolean",
            "description": "Add one row per channel with its About data: subscribers, total views, video count, join date, country, description and links. Charged as one channel event ($0.50 per 1,000).",
            "default": true
          },
          "maxItemsPerTab": {
            "title": "Max items per tab",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "For each channel and each tab chosen above: 100 means up to 100 videos, 100 Shorts, 100 live streams and 100 playlists per channel. 0 lists everything.",
            "default": 100
          },
          "maxVideos": {
            "title": "Max videos",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional: a cap on videos per channel that replaces \"Max items per tab\" for that tab. 0 lists every one; empty uses \"Max items per tab\". Also caps the videos of a playlist URL."
          },
          "maxShorts": {
            "title": "Max Shorts",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional: a cap on Shorts per channel that replaces \"Max items per tab\" for that tab. 0 lists every one; empty uses \"Max items per tab\"."
          },
          "maxStreams": {
            "title": "Max live streams",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional: a cap on live streams per channel that replaces \"Max items per tab\" for that tab. 0 lists every one; empty uses \"Max items per tab\"."
          },
          "maxPlaylists": {
            "title": "Max playlists",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional: a cap on playlists per channel that replaces \"Max items per tab\" for that tab. 0 lists every one; empty uses \"Max items per tab\"."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "The order YouTube's own Latest, Popular and Oldest buttons give. Playlists are always in the channel's own order.",
            "default": "newest"
          },
          "newerThan": {
            "title": "Published after",
            "type": "string",
            "description": "Only videos published after this date, e.g. 2026-01-01, or a span such as 30 days. With Newest first the list stops at the first older video, so a daily or weekly check reads only the new uploads."
          },
          "exactDetails": {
            "title": "Exact dates and view counts",
            "type": "boolean",
            "description": "Off: rows carry the date as YouTube lists it ('3 weeks ago', with a parsed date flagged as an estimate) and rounded views ('1.1M'). On: one extra small request per video, Short or live stream gives the exact publish time and view count. No extra charge; runs take longer, and YouTube refuses more of these requests on busy runs (they are retried on other IPs).",
            "default": false
          },
          "includeUploadsPlaylist": {
            "title": "Also check the uploads playlist",
            "type": "boolean",
            "description": "Off: videos come from the channel's Videos tab. On: after the Videos tab, YouTube's videos upload playlist is read too (one request per 100 videos), and any video the tab leaves out is added with source \"uploads_playlist\" (charged as a video). A safety net: on the channels tested it found none. Applies when the Videos tab is listed to its end or to the newerThan date.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Requests at a time",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many requests run in parallel; channels are read half as many at a time.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) works for most channels; requests YouTube refuses are retried on other IPs. Without a proxy YouTube refuses many requests from a cloud server.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Retry refused requests through residential proxy",
            "type": "boolean",
            "description": "On: a request YouTube still refuses after 6 datacenter IPs is tried through Apify residential proxy, at no extra charge to you. Off: such a tab ends with a free row with status blocked.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}