{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Video List Scraper: Shorts & Lives",
    "description": "Get the video list of any YouTube channel: uploads, Shorts and live streams with title, URL, views, duration and publish time. No API key, no login.",
    "version": "0.1",
    "x-build-id": "7yLKNcUrudIAgnorc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/viktorov_aa~youtube-channel-videos/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-viktorov_aa-youtube-channel-videos",
        "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/viktorov_aa~youtube-channel-videos/runs": {
      "post": {
        "operationId": "runs-sync-viktorov_aa-youtube-channel-videos",
        "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/viktorov_aa~youtube-channel-videos/run-sync": {
      "post": {
        "operationId": "run-sync-viktorov_aa-youtube-channel-videos",
        "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": "Channels",
            "type": "array",
            "description": "Channel URLs (`https://www.youtube.com/@handle`, `/channel/UC…`, `/c/…`, `/user/…`), @handles or `UC…` channel IDs, one per line. The form example is two public channels that returned a full videos page with no login and no proxy.",
            "items": {
              "type": "string"
            }
          },
          "contentTypes": {
            "title": "What to list",
            "type": "array",
            "description": "Channel tabs to export: regular videos, Shorts, live streams (current and past). Each tab is listed separately. Ignored when maxVideos, maxShorts or maxStreams is set, and when the leader's maxResultsShorts or maxResultStreams is set.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "shorts",
                "streams"
              ],
              "enumTitles": [
                "Videos",
                "Shorts",
                "Live streams"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Same as the sort chips on the Videos, Shorts and Live tabs. sortVideosBy values NEWEST, POPULAR and OLDEST are accepted when sortBy is omitted. A date filter forces newest.",
            "default": "newest"
          },
          "oldestPostDate": {
            "title": "Uploads after date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Keep videos and streams published on or after this date. Use YYYY-MM-DD, or a relative age such as \"100 days\" or \"2 weeks\". \"1 day\" means today (UTC) and \"2 days\" means yesterday and today. The time is estimated from YouTube's relative label. Shorts on the Shorts tab have no date, so this filter does not drop them. Setting this switches the sort to newest. Leave empty to keep every item."
          },
          "maxVideos": {
            "title": "Max videos per channel",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Per-channel cap for the Videos tab. 0 skips the tab. When this, maxShorts or maxStreams is set, contentTypes is ignored. The leader's maxResults is this cap when maxResultsShorts or maxResultStreams is also sent; otherwise maxResults stays the cap for the whole run."
          },
          "maxShorts": {
            "title": "Max Shorts per channel",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Per-channel cap for the Shorts tab. 0 skips the tab. maxResultsShorts is the same cap."
          },
          "maxStreams": {
            "title": "Max streams per channel",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Per-channel cap for the Live tab, current and past. 0 skips the tab. maxResultStreams is the same cap. Set all three caps to 0 to return one channel-info row and no videos."
          },
          "maxResultsPerChannel": {
            "title": "Max items per channel and tab",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Used when maxVideos, maxShorts and maxStreams are all omitted. The same cap for every selected tab. YouTube returns about 30 items per request, so 30 is one page and the form example.",
            "default": 30
          },
          "maxResults": {
            "title": "Max items in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap for the whole run. When the input also contains maxResultsShorts or maxResultStreams, this field is the per-channel video cap instead, and the run cap is maxItems or 10000. Use it together with your Apify spending limit to keep the cost predictable.",
            "default": 10000
          },
          "maxRetriesOnBlock": {
            "title": "Retries on block",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "On HTTP 429 or a bot check, retry this many times before the channel is reported as failed. With a proxy on, each retry uses a new session.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Off unless you turn it on, including when an API call omits the field. A datacenter IP listed these channels with no login and no sign-in wall. Enable Apify Proxy if a run is blocked. Choose residential proxy only if a bot check persists.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}