{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Videos Scraper - No API Key, Free",
    "description": "Free to run (you only pay Apify platform usage): export any channel's video list, long-form or Shorts, one row per video with view counts, durations, publish dates, descriptions and channel stats. No YouTube API key, no login, no residential proxy. Optional top comments, media URLs and captions.",
    "version": "0.1",
    "x-build-id": "1d4RVOoGlSyyUKPFI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/airy_armadillo~youtube-channel-video-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-airy_armadillo-youtube-channel-video-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/airy_armadillo~youtube-channel-video-scraper/runs": {
      "post": {
        "operationId": "runs-sync-airy_armadillo-youtube-channel-video-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/airy_armadillo~youtube-channel-video-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-airy_armadillo-youtube-channel-video-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": {
          "channelUrls": {
            "title": "Channel URLs",
            "maxItems": 20,
            "type": "array",
            "description": "Channels to scrape. Any form works: https://www.youtube.com/@NASA, @NASA, UC… channel ID, or a full channel URL. A video link (/shorts/<id>, /watch?v=…, youtu.be/…) or a bare 11-character video ID is also accepted — the Actor resolves it to the video's channel. Up to 20 channels per run; maxResults applies per channel.",
            "items": {
              "type": "string"
            }
          },
          "channelHandle": {
            "title": "Channel handle (single)",
            "type": "string",
            "description": "Shortcut for one channel, e.g. @NASA. Ignored when Channel URLs is filled."
          },
          "channelId": {
            "title": "Channel ID (single)",
            "type": "string",
            "description": "Shortcut for one channel by ID, e.g. UCLA_DiR1FfKNvjuUpBHmylQ."
          },
          "maxResults": {
            "title": "Max videos per channel",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit of videos per channel (total rows = channels × maxResults). One page of the upstream list holds ~30 videos, so larger values mean more requests and more compute time.",
            "default": 50
          },
          "videoType": {
            "title": "Video type",
            "enum": [
              "long",
              "short"
            ],
            "type": "string",
            "description": "Long-form videos come from the channel's Videos tab, Shorts from the Shorts tab.",
            "default": "long"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "latest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Same ordering as the channel page: visit the list and click the sort chip. Channels that don't offer a given chip fall back to latest (a note is written to the run summary).",
            "default": "latest"
          },
          "includeChannelHeader": {
            "title": "Repeat channel data in every row",
            "type": "boolean",
            "description": "Adds a `channel` object (name, ID, handle, subscribers, video count, avatar) to each row so the dataset joins nothing in CSV / BI tools.",
            "default": true
          },
          "includeVideoDetails": {
            "title": "Exact stats & description (1 request per video)",
            "type": "boolean",
            "description": "Adds exact view count, ISO publish date, canonical title and description for every video. Costs one extra request per video, so leave it off for big runs — YouTube throttles datacenter IPs that hammer the video endpoint, and the run slows down instead of failing.",
            "default": false
          },
          "includeMediaUrls": {
            "title": "Include media URLs (experimental, needs a non-datacenter IP)",
            "type": "boolean",
            "description": "Adds `mediaUrls`: every direct googlevideo stream (itag, mimeType, quality, bitrate, size, signed URL, ~6h expiry) plus keywords and category. Requires an IP that YouTube serves the player to: on shared datacenter IPs YouTube answers LOGIN_REQUIRED and this field stays empty (the run still succeeds, the reason is written to SUMMARY). Self-hosting or your own residential proxy restores it.",
            "default": false
          },
          "includeCaptions": {
            "title": "Include captions / transcript (experimental, needs a non-datacenter IP)",
            "type": "boolean",
            "description": "Adds `captions`: available language tracks plus the transcript text of the best track. Same IP requirement as media URLs (it reads the player response); when YouTube requires sign-in the field is empty and the rest of the row is unaffected.",
            "default": false
          },
          "captionsLang": {
            "title": "Preferred caption language",
            "type": "string",
            "description": "Language code such as en, zh-Hans, ja. Leave empty to prefer English, then Chinese, then Japanese.",
            "default": ""
          },
          "includeCommentsTopN": {
            "title": "Top comments per video",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "0 = off. Each video with comments costs 1 page request plus ~1 request per 20 comments, which is the most expensive option here — keep it small (5–20).",
            "default": 0
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Throttle between the per-video enrichment requests. Raising it lowers the risk of rate limiting on huge runs.",
            "default": 700
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Not needed for the channel list, exact stats or comments — YouTube accepts datacenter IPs for those. Only the media/captions switches benefit from it, and it requires a plan that includes Apify Proxy (the FREE plan has none: the Actor then continues without a proxy instead of failing).",
            "default": {
              "useApifyProxy": false
            }
          },
          "enrichBudgetSecs": {
            "title": "Enrichment time budget per channel (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Hard cap for the optional per-video enrichment phase. When it is reached the remaining rows are emitted without the optional fields (a note is written to SUMMARY) — this keeps a throttled run cheap instead of stalling for tens of minutes.",
            "default": 240
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}